This repo contains the public RoboCon website - robocon.uk
It has been built with a mixture of Astro and Svelte components, with Tailwind CSS and Bits UI.
Images are commited straight to this repo, so please make sure you compress all images, see the guide below.
- Make sure you have the latest version of
Nodeinstalled (tip: usenvm). - Run
npm installto install required dependencies. - Run
npm run devto run the live preview.
It should be that simple :)
- Head over to
src/pages/news. - Create a new markdown file, try and keep the same formatting as before.
- Copy the top of another markdown file (the bit before the
---), this will apply all the styling. Just change the bits you need to! - Write your markdown.
- Check the news section.
If one of your headings or styles is not being formatted correctly, change the Tailwind CSS values in the
tailwind.config.mjsfile under theProse:section. Some Markdown styles have not yet been written!
If you need to add images to your post (AFTER YOU HAVE COMPRESSED THEM), add them in public/images/<Relevant Folder>. Everything in the public directory is available straight away as a static endpoint.
To prevent issues with commiting lots of large files (and to speed up website load times), you must compress all images or large files so they are roughly less than 2MB each. Luckily, there's a built-in tool you can use for this.
- Place the uncompressed images into
public/images/images_for_compressionfolder. You might need to make theimages_for_compressionfolder if it doesn't already exist. Do not create any subfolders, as these images will be ignored (yes, known bug). - Run
npm run images:compress. - Your compressed images will now be in
public/images/compressed_images. Copy these wherever they should be.
Please remember to remove any images in images_for_compression or compressed_images to prevent them being accidentally added to the repo.
- Unable to compress subfolder images
- Homepage carousel text description is a bit too narrow.
- Navbar is a bit boring on mobile.
- No social links
- Home page could have some more content under the gallery carousel.