The one which is impossible to spell
Tags: webdev, learning, react, css
Published: 2019-11-29 02:38:53

---
title: The one which is impossible to spell
published: true
date: 2019-11-18 00:00:00 UTC
tags: webdev, learning, react, css
canonical_url: https://www.chenhuijing.com/blog/the-one-which-is-impossible-to-spell/
cover_image: https://thepracticaldev.s3.amazonaws.com/i/dbfz0hfjnm52lsln2ak4.png
---

Some people may be aware that I run the local CSS meetup in Singapore. A few more may know that we’ve recently celebrated 4 years of miraculous existence. I’ve always held the strong opinion that the Singapore tech community is one of the most unique and vibrant in the world.

This is the result of an amalgamation of factors, some of which were due to efforts by local community leaders, others simply a matter of good public infrastructure. But what we end up with is a highly conducive environment for sharing knowledge through tech meet-ups.

![Geekbrunch, where local geeks eat brunch at a hipster cafe](https://www.chenhuijing.com/assets/images/posts/rk/geekbrunch-1280.jpg)

Community leaders like [Michael Cheng](https://coderkungfu.com/), [Winston Teo](http://winstonyw.com/), [Chinmay Pendharkar](https://chinmay.audio/), [Sayanee Basu](https://sayan.ee/), just to name a few, made a lasting impression on me when I first joined the Singapore tech community back in 2013. The community they built was and still is inclusive, welcoming and open.

Earlier this year, I got to know [Gao Wei](https://uuei.io/), who is one of the most amazing human beings I’ve ever met. At the time she was running an internal sharing at [Shopee](https://shopee.sg) called React Knowledgeable or `<RK />`. I am unable to spell the word “Knowledgeable” without thinking hard, even now, hence the title of this post.

<figcaption>One of Shopee's internal sharing sessions</figcaption> ![Shopee's internal sharing session](https://www.chenhuijing.com/assets/images/posts/rk/internalrk-1280.jpg)

But anyway, she decided to make it public in August this year, and so [React Knowledgeable](https://reactknowledgeable.org/) AKA `<RK⚡️ />` was born. What does this have to do with me? Especially given that I clearly don’t do React (at least not since 2017). Well, I’m useless at many things, but I can CSS better than most people I know (and also design a little bit).

So my contribution to this endeavour is purely visual.

## Look and feel

I guess Wei also figured out I’m fairly useless on the React/Gatsby front but she did ask if I could come up with a logo for RK. That I could do. The base concept was the wordmark “`<RK />`”, and given the code-style syntax, I wanted a monospace font for this.

The website itself was typeset in [IBM Plex Mono](https://github.com/IBM/plex), which is a pretty nice monospace, but I thought having the same font in the logo and the website itself was a little monotonous. And it just so happened I came across [Fantasque Sans Mono](https://github.com/belluzj/fantasque-sans).

![Sample of Fantasque Sans Mono](https://www.chenhuijing.com/assets/images/posts/rk/fantasque@2x.jpg)

Personally, I have a soft spot for monospace fonts with a touch of handwriting-like style. And once I saw the glyph for “k” I was sold. Some people collect stamps, some people collect Pokémon, I collect fonts. Don’t judge.

I used to use Sketch but only had 1 license. Unfortunately I work on multiple machines, so I realised Figma was a good alternative, and it imported `.sketch` files beautifully.

<figcaption>Figma is free yo…</figcaption> ![RK visual assets working document](https://www.chenhuijing.com/assets/images/posts/rk/figma-1280.jpg)

A couple of ideas got thrown around but eventually the arcade cabinet design won. There’s an in-joke to that, so go ask Wei if you’re in town and attend one of the meetups. Once you have a logo, you have to make stickers out of it. Another idea was to have limited edition speaker stickers for people who spoke at the meetup.

For that I thought a glitch effect on the word “`<RKSpeaker />`” would be a fun effect to have inside the arcade cabinet frame. And that became the style for secondary graphics like the 404 page graphic or even the 302 page graphic (it’s a [Gatsby bug/issue](https://github.com/react-knowledgeable/rk-community-site/issues/8) thing)

My favourite sticker supplier, [GoodieSwag](https://www.goodieswag.com/), handled the designs without issue, so if you’re based in Southeast Asia, consider giving them a try for all your sticker printing needs. I print all my stickers with them, FYI.

<figcaption>Ask me for some when if you see me around</figcaption> ![Box of stickers, free for taking](https://www.chenhuijing.com/assets/images/posts/rk/stickers-1280.jpg)

## Site layout

The React Knowledgeable website is built with Gatsby, and is [completely open source on GitHub](https://github.com/react-knowledgeable/rk-community-site), so anyone can contribute. Like I mentioned, I’m just the CSS monkey here. So let’s talk about the CSS.

As of today (18 November 2019), the site’s layout has been modified a couple of times as content has been added, and additional features were introduced. The site was originally prototyped on Glitch before it got ported over to Gatsby, but I’ve kept the [Glitch prototype](https://glitch.com/~react-knowledgeable) updated, sort of like an archive of the site’s evolution.

The layout morphs quite a bit over different viewport widths because these breakpoints are not arbitrary values. Instead, they are based on content and how best to present all the content within the dimensions of available space.

![Different site layouts for different viewport sizes](https://www.chenhuijing.com/assets/images/posts/rk/layout-1280.png)

For all those people who immediately complain about scalability and component reuse and what-not, I say, this is as hipster an endeavour as you will ever find on the web. It’s hand-crafted CSS. So you can take your Bootstrap defined components and breakpoints and shove it up your…

Anyway, a lot of Grid and Flexbox in play here, but not exclusively, because the “old-school” display modes also come in handy for certain components at particular viewport sizes as well. I never understood why people only want to use a single method or technique to do all the things. Why colour with 1 crayon when you can use the whole box?

```scss
.homePageLayout {
  @media (min-width: 1145px) {
    display: grid;
    grid-template-columns: auto minmax(20em, 30%);
    grid-template-rows: min-content min-content 1fr auto;
    main {
      grid-column: 1;
      grid-row: 2 / span 2;
    }
    aside {
      grid-column: 2;
    }
  }
}

.upcomingMeetupInfo {
  @media (min-width: 748px) and (max-width: 1144px) {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-column-gap: 0.5em;
    h2 {
      grid-column: 1 / -1;
    }
    h3 {
      word-break: break-word;
    }
  }
}
```

I’m pretty fond of the footer, because it changes the most across the different viewports. Plus, it has a little bit of whimsy sprinkled on. Hopefully not too much that people with vestibular disorders are turned off by it. So there is a `prefers-reduced-motion` media query put in for that.

```css
@media (prefers-reduced-motion: reduce) {
  .friendLink:hover .friendIcon {
    transform: scale(1.2);
  }
}
```
{% twitter 1151206737472475137 %}

The latest edition of the site introduced a new block of content for past talks, so we now have a multi-column implementation for that bit as well.

```css
.topicListing {
  column-width: 20em;
}
.topicCard {
  padding-bottom: 2rem;
  break-inside: avoid;
}
.topicIntro {
  display: -webkit-box;
  /* autoprefixer: off */
  -webkit-box-orient: vertical;
  /* autoprefixer: on */
  -webkit-line-clamp: 3;
  overflow: hidden;
}
```

![Different site layouts for different viewport sizes](https://www.chenhuijing.com/assets/images/posts/rk/layout2-1280.png)

Again, all the code is [open-source on GitHub](https://github.com/react-knowledgeable/rk-community-site), or you can also take a peek at the [Glitch project](https://glitch.com/~react-knowledgeable) to see how it’s done.

The website is constantly being updated with new features, like a custom RSVP function (~~inspired by~~ serendipitously similar to the [QueerJS](https://queerjs.com/) website, clearly great minds think alike) and custom GitHub authentication (WIP stay tuned). Kudos to [Thomas Chia](https://twitter.com/th__chia) for working tirelessly on it. It's almost 2020 and websites are still cool, my friends.

## Wrapping up

The premise behind this meetup is to have an inclusive and welcoming environment for people to share knowledge and things they find interesting, and I love that. I also love that Singapore has a support structure that allows a burgeoning new meetup to find its feet in almost no time at all.

Anyway, if you’re ever in town when one is happening, just drop by and check it out. You won’t regret it. Also, follow [React Knowledgeable](https://reactknowledgeable.org/) on all the things (basically just [Twitter](https://twitter.com/reknowledgeable) and [GitHub](https://github.com/react-knowledgeable/rk-community-site) for now).