добавляет страницу /notes/*
All checks were successful
continuous-integration/drone/push Build is passing

- добавляет базовые стили для h1,h2, p, code
- добавляет подстветку синтаксиса
This commit is contained in:
2022-05-16 17:42:36 +03:00
parent 18852b9ce9
commit c847c611f4
8 changed files with 136 additions and 33 deletions

View File

@@ -0,0 +1,19 @@
.article-content {
@apply px-12;
}
.article-content h1 {
@apply text-5xl font-semibold py-4;
}
.article-content h2 {
@apply text-3xl py-4;
}
.article-content p {
@apply py-1;
}
.article-content code {
@apply font-mono;
}

View File

@@ -0,0 +1 @@
@import "article-content.css";

View File

@@ -1,4 +1,6 @@
@import "fonts.css";
@import "prismjs/themes/prism-okaidia.css";
@import "tailwindcss/base";
@import "tailwindcss/components";
@import "components";
@import "tailwindcss/utilities";

View File

@@ -1 +1,6 @@
{{ note.templateContent | safe }}
<main>
<article class="article-content">
<h1>{{ note.data.title | safe }}</h1>
{{ note.templateContent | safe }}
</article>
</main>