Ingredients for the new Paystack site

A breakdown of how the new Paystack site was built

Article Feature Image

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

  1. Optimizations: Decisions we made regarding code, conventions, plugins and best practices
  2. Cool Stuff: Particular design elements that I really like about the final product
  3. Inspiration: Sites I looked at endlessly, and learned from to make this a reality
  4. 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

Image
Company page
  1. 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.
  2. 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.
  3. 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.

  1. Hero animation was inspired byย universe.openai.comย andย bold.co.
  2. Dropdown styling was inspired byย reuters.tv.
  3. The lines on the cards were inspired byย Plaid.
  4. 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

Ingredients for the new Paystack site - The Paystack Blog ๐Ÿšง Ingredients for the new Paystack site - The Paystack Blog