Ingredients for the new Paystack site
A breakdown of how the new Paystack site was built
For a couple of weeks now, Iโve been working on a website refresh forย Paystack. I got my friendย Onyekachiย to help, and itโs been quite interesting. I decided to write about the process, but couldnโt figure out how best to. So I decided to just write pointers. Iโll be sharing
- Optimizations: Decisions we made regarding code, conventions, plugins and best practices
- Cool Stuff: Particular design elements that I really like about the final product
- Inspiration: Sites I looked at endlessly, and learned from to make this a reality
- Source code for anyone who cares to learn from it
Optimizations
No jquery, no bootstrap
Eventually, we realized this wasnโt as crazy an idea. Most things we wrote were easily done in vanilla js.
Clean, โstressfulโ HTML withย BEM
I decided we try some CSS architecture and we chose to use BEM. Itโs the more popular choice.
Pro: The code is really nice.ย Con: Oh hell, itโs really stressful. And then I decided all the CSS code must be alphabetical. *sigh, stresss*
Animations in codeโโโwith AnimatePlus
I wrote all the animations with CSS transitions usingย AnimatePlus, created by Benjamin De Cock (From Stripe). Hopefully one day, Iโll make something so useful.
Iconography: the noun project, figma,ย svgs
I created an icon sheet myself! I have aย Noun Projectย subscription, so I searched for icons myself, then recreated or optimized them.
I was going to use SVG code, but I couldnโt optimize it enough to keep the code clean. I donโt know enough about these things. So I just used SVG Sprites for most of the icons and loaded the others directly.
Overall, Iโm really impressed with how I managed to create the site using the most minimal external dependencies. Stressful, but worth it.
Cool Stuff
- Homepage Animation: The animated storyboard on the homepage was written all with CSS animations. Storyboarding and timing it was rather interesting and took about a week to perfect.
- Stack animations: Weirdly, these never made it to the site. I used blocks to create shapes for each section, all using CSS. Iโll be sharing some gifs onย Dribbbleย soon.
- Snapchat About Page:ย I had this weird idea to put a Snapchat-like video on our about page that would be updated every time someone has a birthday (while weโre still small) or when we hit milestones. Didnโt turn out too shabbily.
Inspiration
I decided to share all the sites I looked at endlessly to form my ideas in making this website a reality.
- Hero animation was inspired byย universe.openai.comย andย bold.co.
- Dropdown styling was inspired byย reuters.tv.
- The lines on the cards were inspired byย Plaid.
- This is a linkย to all 25 or so sites I was inspired by.
The code
If you want to learn from it, all the code is open to peek hereย https://github.com/PaystackHQ/website