From 67dbc490de261318f1190d1e7e46dd9272f51ef6 Mon Sep 17 00:00:00 2001 From: Indrajith K L Date: Sat, 27 Aug 2022 04:43:46 +0530 Subject: Initial Commit * MVP --- src/_includes/base.njk | 15 +++++ src/_includes/head.njk | 5 ++ src/_includes/header.njk | 16 +++++ src/_includes/posts.njk | 17 +++++ src/about.md | 5 ++ src/css/fonts/PPSupplyMono-Regular.otf | Bin 0 -> 23996 bytes src/css/fonts/PPSupplyMono-Ultralight.otf | Bin 0 -> 24808 bytes src/css/fonts/PPSupplySans-Regular.otf | Bin 0 -> 45632 bytes src/css/fonts/PPSupplySans-Ultralight.otf | Bin 0 -> 48160 bytes src/css/styles.css | 103 ++++++++++++++++++++++++++++++ src/cv.md | 5 ++ src/index.md | 5 ++ src/posts/index.njk | 20 ++++++ src/posts/posts.json | 5 ++ 14 files changed, 196 insertions(+) create mode 100644 src/_includes/base.njk create mode 100644 src/_includes/head.njk create mode 100644 src/_includes/header.njk create mode 100644 src/_includes/posts.njk create mode 100644 src/about.md create mode 100644 src/css/fonts/PPSupplyMono-Regular.otf create mode 100644 src/css/fonts/PPSupplyMono-Ultralight.otf create mode 100644 src/css/fonts/PPSupplySans-Regular.otf create mode 100644 src/css/fonts/PPSupplySans-Ultralight.otf create mode 100644 src/css/styles.css create mode 100644 src/cv.md create mode 100644 src/index.md create mode 100644 src/posts/index.njk create mode 100644 src/posts/posts.json (limited to 'src') diff --git a/src/_includes/base.njk b/src/_includes/base.njk new file mode 100644 index 0000000..0c9b0df --- /dev/null +++ b/src/_includes/base.njk @@ -0,0 +1,15 @@ + + + +{% include "head.njk" %} + + + {% include "header.njk" %} +
+ {{content | safe}} +
+ + + \ No newline at end of file diff --git a/src/_includes/head.njk b/src/_includes/head.njk new file mode 100644 index 0000000..50aacb9 --- /dev/null +++ b/src/_includes/head.njk @@ -0,0 +1,5 @@ + + + + +{{title}} \ No newline at end of file diff --git a/src/_includes/header.njk b/src/_includes/header.njk new file mode 100644 index 0000000..14f28c1 --- /dev/null +++ b/src/_includes/header.njk @@ -0,0 +1,16 @@ +
+ +
\ No newline at end of file diff --git a/src/_includes/posts.njk b/src/_includes/posts.njk new file mode 100644 index 0000000..8422f4c --- /dev/null +++ b/src/_includes/posts.njk @@ -0,0 +1,17 @@ + + + +{% include "head.njk" %} + + + {% include "header.njk" %} + +
+ {{content | safe}} + back to posts +
+ + + \ No newline at end of file diff --git a/src/about.md b/src/about.md new file mode 100644 index 0000000..3e0c069 --- /dev/null +++ b/src/about.md @@ -0,0 +1,5 @@ +--- +layout: base.njk +title: About +--- +About \ No newline at end of file diff --git a/src/css/fonts/PPSupplyMono-Regular.otf b/src/css/fonts/PPSupplyMono-Regular.otf new file mode 100644 index 0000000..dc66065 Binary files /dev/null and b/src/css/fonts/PPSupplyMono-Regular.otf differ diff --git a/src/css/fonts/PPSupplyMono-Ultralight.otf b/src/css/fonts/PPSupplyMono-Ultralight.otf new file mode 100644 index 0000000..0c55672 Binary files /dev/null and b/src/css/fonts/PPSupplyMono-Ultralight.otf differ diff --git a/src/css/fonts/PPSupplySans-Regular.otf b/src/css/fonts/PPSupplySans-Regular.otf new file mode 100644 index 0000000..192962e Binary files /dev/null and b/src/css/fonts/PPSupplySans-Regular.otf differ diff --git a/src/css/fonts/PPSupplySans-Ultralight.otf b/src/css/fonts/PPSupplySans-Ultralight.otf new file mode 100644 index 0000000..d7e9aea Binary files /dev/null and b/src/css/fonts/PPSupplySans-Ultralight.otf differ diff --git a/src/css/styles.css b/src/css/styles.css new file mode 100644 index 0000000..398a131 --- /dev/null +++ b/src/css/styles.css @@ -0,0 +1,103 @@ +@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap'); + +@font-face { + font-family: supplyRegular; + src: url(./fonts/PPSupplyMono-Regular.otf); +} + +@font-face { + font-family: supplyLight; + src: url(./fonts/PPSupplyMono-Ultralight.otf); +} + +* { + margin: 0; + box-sizing: border-box; +} + +html, +body { + display: flex; + flex-direction: column; + min-height: 100vh; +} + +main { + flex: 1; + font-family: 'Oswald', sans-serif; + margin: 20px; +} + +nav { + background: #1c1626; + color: #fefffb; +} + +.navs { + list-style-type: none; + padding-left: 0; +} + +.nav { + display: inline-block; +} + +.nav a { + display: inline-block; + color: #fefffb; + text-decoration: none; + padding: 10px; +} + +.logo { + font-family: "supplyRegular"; + font-size: 20px; +} + +.nav a.links{ + + font-family: "supplyLight"; +} + +footer { + background: #1c1626; + color: #fefffb; + font-family: "supplyLight"; + padding: 10px; + font-size: 15px; + text-align: center; +} + +.color-white { + color: #fefffb; +} + +.color-black { + color: #1c1626; +} + +.color-red { + color: #ff2961; +} + +.post-lists { + margin-top: 10px; +} + +.post-data { + margin-bottom: 10px; +} + +.post-date { + font-size: 15px; +} + +.post-title { + font-size: 20px; +} + +a { + color: #ff2961; + font-family: 'Oswald', sans-serif; +} + diff --git a/src/cv.md b/src/cv.md new file mode 100644 index 0000000..121ab1b --- /dev/null +++ b/src/cv.md @@ -0,0 +1,5 @@ +--- +layout: base.njk +title: CV +--- +CV \ No newline at end of file diff --git a/src/index.md b/src/index.md new file mode 100644 index 0000000..44b5def --- /dev/null +++ b/src/index.md @@ -0,0 +1,5 @@ +--- +layout: base.njk +title: Hello +--- +This is a page \ No newline at end of file diff --git a/src/posts/index.njk b/src/posts/index.njk new file mode 100644 index 0000000..cfa29b3 --- /dev/null +++ b/src/posts/index.njk @@ -0,0 +1,20 @@ +--- +layout: base.njk +eleventyExcludeFromCollections: true +title: Posts +--- +

Posts

+
+ {% for post in collections.posts %} +
+ +
+ {{post.data.title}} +
+
+ + {% endfor %} +
+ diff --git a/src/posts/posts.json b/src/posts/posts.json new file mode 100644 index 0000000..0cb18be --- /dev/null +++ b/src/posts/posts.json @@ -0,0 +1,5 @@ +{ + "layout": "posts", + "tags": "posts" + +} \ No newline at end of file -- cgit v1.2.3