swecc-uw / swecc-website

Software Engineering Career Club Website
https://swecc.org
4 stars 29 forks source link

changed the previous events to same size #99

Open wena04 opened 1 week ago

wena04 commented 1 week ago

Author: Discord: wena04

What changes were made?

Issue #32 Limit number of past events shown on Events page #32 Made the posts display 3 at a time, and added a prev and next button so it would display the next set of previous events. Created 2 new files, 1 component for the posts and button and the CSS for that component. However, the state functions for the next and prev buttons still need a bit of fixing. Right now, no matter how you click it it only displays the first 3 posts and not the next set. I will have to figure that part out later on when I have more time. I split the posts part in the home.js into a new component file so that it's easier.

Don't merge the commented out firebase initialization in index.js I commented it out so its easier to run on my localhost

Why are these changes important/necessary?

the sizing for the posts were different, and the events were all over the place. this made it look a bit cleaner.

(If applicable) Screenshots of your changes. Providing an “old vs. new” comparison would be great!

Before

Old

After

New