Exemple de Post
23.07 2002
Par Calix Monnet.
23.07 2002
Par Calix Monnet.
Markdown is a lightweight markup language based on plain text. It’s used for writing formatted documents in plain text and is known for its easy and simple syntax compared to traditional markup languages.
This post documents how I utilize Markdown in this blog.
As a frontend developer, I want to convey something through layout. I hope the text feels comfortable to the reader.
That’s why I value the beauty of whitespace. Pages crammed with content make reading unpleasant. I often leave a page after just glancing at the title.
Here are some hidden details of the layout:
This blog uses only h2
and h3
titles.
It’s to maintain the beauty of Semantic HTML. (Occupational hazard)
h1
already exists as it represents the highest-level heading on the page
.h4
is a crime in itself. It’s evidence of a complex piece of writing.Quotations use Serif typeface. Even the font itself makes the quoted text seem significant!
Serif typeface can be used within the text too. However, it’s not recommended as it disrupts the balance of the text.
<mark></mark>
can be used to highlight text.
Links have a subtle underline and minimal hover
effects.
Bold links are more eye-catching.
External links generate an icon indicating “a new tab will open.”
https://github.com/bepyan By default, links are automatically parsed.
The division line is subtle and not too prominent. It’s not frequently used as there’s enough spacing overall.
List
Ordered List
inline code
[1, 2, 3]{:js}
Block code
import clsx, { type ClassValue } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
import '~/styles/globals.css';
import type { Metadata } from 'next';
import { fontMono, fontSans, fontSerif } from '~/libs/fonts';
import { cn } from '~/libs/utils';
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="ko" suppressHydrationWarning>
<body
className={cn(
'bg-background min-h-screen font-sans antialiased',
fontSans.variable,
fontSerif.variable,
fontMono.variable,
)}
>
<div className="blur" aria-hidden="true"></div>
<div className="max-w-page container mx-auto pt-32">
<div className="main-grid">{children}</div>
</div>
</body>
</html>
);
}
Emotion | Description |
---|---|
Joy | Pleasure, Joy, Happiness, Delight. The pleased and satisfied feeling when a desire is fulfilled. |
Sadness | Feeling heartache and pain upon encountering or witnessing a pitiable or regrettable event. |
Fun | A feeling of being cheerful and happy without any annoyance. |
Pleasure | Pleasantness and enjoyment. Or the feeling of it. |
Comfort | Comfort in both body and mind. |
Delight | Joy and pleasure. Or the act of being joyful and enjoying. |
Left | Center | Right |
---|---|---|
A | B | C |