vlang / website

MIT License
62 stars 96 forks source link

Display dist sizes correctly #178

Open alexesprit opened 3 years ago

alexesprit commented 3 years ago

This PR fixes display sizes of distributed files for the platform where a browser is running.

Also, to avoid duplicity I placed all information to a object, which is used to fill all DOM nodes with the proper data for each platform.

Screenshot (Click to expand) ## Before ![image](https://user-images.githubusercontent.com/1119267/103377001-2bf44500-4aef-11eb-8eec-ac8bbaf47dcf.png) ## After ![image](https://user-images.githubusercontent.com/1119267/103377238-e2f0c080-4aef-11eb-8b16-c71579d6dc20.png) **Note**: yes, fonts are different on the screenshots. I haven't figure out how to build the index page, so I used a hacky workaround to test my changes. :) And for some reason the font wasn't loaded for me.