Skip to content

Commit

Permalink
Improve style
Browse files Browse the repository at this point in the history
  • Loading branch information
afreismuth-ippon committed Oct 15, 2024
1 parent 0ab0b22 commit 5677999
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/atom/_atom.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@use 'paragraph/paragraph';
@use 'title/title';
4 changes: 3 additions & 1 deletion src/atom/atom.pug
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@ block content
.tikui-vertical-spacing--line
include /documentation/atomic-design/quote/atom
.tikui-vertical-spacing--line
// Atoms componentDoc
include:componentDoc(height=100) paragraph/paragraph.md
.tikui-vertical-spacing--line
include:componentDoc(height=100) title/title.md
5 changes: 5 additions & 0 deletions src/atom/paragraph/_paragraph.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.paragraph {
margin: 0;
font-family: sans-serif;
color: #223344;
}
3 changes: 3 additions & 0 deletions src/atom/paragraph/paragraph.code.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include paragraph.mixin.pug

+paragraph My paragraph
1 change: 1 addition & 0 deletions src/atom/paragraph/paragraph.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Paragraph
3 changes: 3 additions & 0 deletions src/atom/paragraph/paragraph.mixin.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mixin paragraph
p.paragraph
block
4 changes: 4 additions & 0 deletions src/atom/paragraph/paragraph.render.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends /layout

block body
include paragraph.code.pug
6 changes: 6 additions & 0 deletions src/atom/title/_title.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.title {
margin: 0;
color: #234;
font-size: 4rem;
font-family: sans-serif;
}
3 changes: 3 additions & 0 deletions src/atom/title/title.code.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
include title.mixin.pug

+title My title
1 change: 1 addition & 0 deletions src/atom/title/title.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Title
3 changes: 3 additions & 0 deletions src/atom/title/title.mixin.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
mixin title
h1.title
block
4 changes: 4 additions & 0 deletions src/atom/title/title.render.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
extends /layout

block body
include title.code.pug
8 changes: 8 additions & 0 deletions src/head.mixin.pug
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
mixin head
head
meta(charset='utf-8')
block title
title Mon site web
link(rel='icon' type='image/png' href='[[TIKUI_BASEPATH]]favicon.png')
link(href='[[TIKUI_BASEPATH]]tikui.css' rel='stylesheet')

14 changes: 12 additions & 2 deletions src/index.pug
Original file line number Diff line number Diff line change
@@ -1,2 +1,12 @@
block body
p Bonjour
include /head.mixin.pug
include /atom/title/title.mixin.pug
include /atom/paragraph/paragraph.mixin.pug

doctype html
html(lang='fr')
+head
body
+title Mon site web à déployer
+paragraph Mon site web fonctionne bien en local et j'en suis fier 💪
+paragraph Pendant ce live, voyons comment le déployer !
:reload
2 changes: 1 addition & 1 deletion src/tikui.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
// stylelint-disable-line no-empty-source
@use 'atom/atom';

0 comments on commit 5677999

Please sign in to comment.