Design things and logic on my website
Tags: gatsby, design, dark, javascript
Published: 2019-09-22 09:39:52

I recently [launched](https://twitter.com/dtroode/status/1173643274256572416?s=20) my portfolio blog site and decided to tell about the little things in the design of [website](https://davidkistauri.ru). Some things I peeked on other blogs, like Ilya Birman's [Aegea](https://blogengine.me), and adopted to my website.

> Every example in this articles is translated to English because my website is in Russian

## Thing with headers

The header is showing the hierarchy. If I am on the main page, the header is my name "David Kistauri", if I am on the blog page, it's main header + "Blog": "David Kistauri. Blog", if I am on the tags page, it's main header + "Blog" + "Tags": "David Kistauri. Blog. Tags".

This rule isn't for template pages like articles, product pages or pages for each tag, because of "David Kistauri. Blog. How to use VS Code if you are writing" is a mockery of the reader, especially those who come in from the phone — header is too long.

## Thing with links

![Links in the blog — the first two can be clicked, the third — no, because we are already in the blog, and two more — additional: the blog has tags and you can subscribe to it](https://thepracticaldev.s3.amazonaws.com/i/e6wu3od0p1nztioa5d81.png)

> Links in the blog — the first two can be clicked, the third — no, because we are already in the blog, and two more — additional: the blog has tags and you can subscribe to it

There are links above the header on every page. They are divided into two types: primary and secondary. There are three primary links: the main page, projects page and blog page — these are sections of the site.

### Primary links

If I am not on the page — link is blue if I am on the page — link isn't clickable and has a black (white in dark mode) background if I am on the page section — ex. `/blog/all/`, the link is clickable with black (white in dark mode) background and blue text. This complaint setting is for understanding hierarchy by looking at links.

### Secondary links

There are no constant secondary links. Sometimes there are no secondary links. It depends on the page. These links are _additional_. The blog has two secondary links: to list of tags and to RSS. These links have a blue text.

If you'll hover a primary link — this link change a _background_ color, if you'll hover a secondary link — this link change a _text_ color.

## Place of secondary links

Besides the header, there are secondary links in the list of [tags](https://davidkistauri.ru/blog/tags) and [notes](https://davidkistauri.ru/blog/all). These links are located differently — in tags list, they inlined, like bricks, in notes list each link starts with a new line.

![Tags with a "brick-link" design](https://thepracticaldev.s3.amazonaws.com/i/t25lnuavi6yf290c0qa9.jpg)

I have a [note](https://t.me/dtroode_channel/419) about "brick-link" design in my Telegram channel. Tags are located this way because there is a connection between them — one note may have a lot of tags; people often visit tags list to see a list of themes, not for find one tag.

Links to notes are located separately because every note is a separate content unit and "brick-link" design makes search harder. Also, notes names are long, so long bricks isn't cool.

## Thing with dividers

All sections are connected (or divided) with divider. There is a big margin above the divider and a small margin under the divider. I've read about this reception in Igor Shtang's [note](https://nobelfaik.livejournal.com/175918.html).

## Thing with a dark mode

You need a dark mode. Especially if you are building the blog — a product with long articles. Stop to torment _owl-readers_ with bright colors. The task isn't just to change white background to black background. You need to pick up good colors so that in the dark version all the elements can be seen and shadows worked.

Bright colors should not occupy a large area and should be properly substituted for the elements, background and text color. In the [list of posts](https://davidkistauri.ru/blog), I removed the colored background from the blocks and set its title - not much bright, darker. I will tell you more about the dark theme in the next note.

Visit my website — https://davidkistauri.ru
This article in Russian — https://davidkistauri.ru/blog/all/ya-u-mamy-designer/