jsparrow.uk

AstraGal – WYSIWYG and Style Changes
19 January 2020

AstraGal – WYSIWYG and Style Changes

Hello again, today I just wanted to record some minor changes I’ve made to AstraGal. There were a couple of issues with the styling I had noticed, mainly that the ‘Explore’ links started to look a bit janky on mobile devices. I fixed this by making them appear single-file, as well as removing the box-shadowing (I think it looks much better now).



As you can see, I also made the background colour for the main sections slightly transparent, and I think this really makes the design work better, especially since there is a user-defined background image that previously was only visible on the landing page and slightly in the title area.

I also added a WYSIWYG editor to the backend interface for creating and editing posts and albums. This allows for the description area on a posts page to display text in much more variety, as well as allowing for images and the like to be embedded in the section. This will be especially useful as a history of how the specific art piece came about with concept art and other snippets can be added directly to the description area of a given post. Along with this, YouTube videos can be embedded too, which will be useful as Astra might need to embed YouTube videos about a specific piece, especially if it is a 3d model or animation. I also increased the character limit to accommodate more content in the description area.

There are still some issues I would like to address, a major one being with image load time. Since a lot of the images uploaded are very high quality, and since I haven’t shrunk them down at all, loading the thumbnails for the images on the all posts section can take a while. I could easily fix this if I made the project in Laravel with the intervention image library, I might see if I can use it without Laravel. Other than that, the website is working as intended and the client seems very happy with it, which is always good 😅