Skip to content

Commit 88a7f38

Browse files
committed
Improve landing page plus overall view and structure.
Details: - Make landing page less spread out and responsive by reusing existing template. Remove vertical line and adjust image to have border. Add extra highlighting for first letters of full name to associate them more with backronym name and logo. - Make navbar monospace to stand out. - Make dark and light brands more in sync. - Move 'blog.qmd' into 'blog/index.qmd' for consistency.
1 parent 4f212c1 commit 88a7f38

File tree

5 files changed

+90
-73
lines changed

5 files changed

+90
-73
lines changed

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ website:
2020
left:
2121
- href: mini.nvim/index.md
2222
text: mini.nvim
23-
- href: blog.qmd
23+
- href: blog/index.qmd
2424
text: Blog
2525
right:
2626
- icon: github

blog.qmd renamed to blog/index.qmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: "Blog"
33
listing:
4-
contents: blog
5-
template: theme/blog-listing.ejs
4+
contents: .
5+
template: ../theme/blog-listing.ejs
66
sort-ui: true
77
filter-ui: true
88
date-format: iso

index.qmd

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
1-
::: {.grid}
1+
---
2+
title: "MINI"
3+
about:
4+
template: trestles
5+
image: assets/logo-mini.png
6+
image-shape: rectangle
7+
image-alt: "Word \"MINI\" written in 3x5 pixel font; \"MI\" over \"NI\""
8+
format:
9+
html:
10+
include-in-header:
11+
- text: "<style> .quarto-title > h1.title { display: none } </style>"
12+
---
213

3-
::: {.g-col-3}
4-
:::
5-
6-
::: {.g-col-4}
7-
<img src="assets/logo-mini.png" alt="MINI" style="max-width:100%;border:solid 2px"/>
8-
:::
9-
10-
::: {.g-col-5}
11-
<p style="font-size:2em"><b>M</b>odular</p>
12-
<p style="font-size:2em"><b>I</b>ndependent</p>
13-
<p style="font-size:2em"><b>N</b>eovim</p>
14-
<p style="font-size:2em"><b>I</b>mprovements</p>
15-
:::
16-
17-
:::
14+
<!-- Make it monospace to align bold letters and stand out-->
15+
<span style="font-size:2em; font-family:monospace">
16+
<!-- Add style of bold letters the same as in logo to show that this is backronym -->
17+
<b style="background:#00182a; color:#b3daf9">M</b>odular <b style="background:#00182a; color:#b3daf9">I</b>ndependent<br>
18+
<b style="background:#00182a; color:#d9d8aa">N</b>eovim &nbsp;<b style="background:#00182a; color:#d9d8aa">I</b>mprovements
19+
</span>
1820

1921
- <p style="font-size:1.5em"><b><a href="mini.nvim/index.html">mini.nvim</a></b></p>
2022
- [Modules](mini.nvim/index.md#modules)

theme/brand-dark.yml

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ typography:
4848
color: primary
4949
monospace:
5050
family: monospace
51+
background-color: bg-2
5152
monospace-inline:
5253
color: cyan
5354
background-color: bg-2
@@ -62,25 +63,7 @@ defaults:
6263
navbar-fg: "#E6E2DB"
6364
code-block-bg: "#11262D"
6465
rules: |
65-
p {
66-
margin-top: 0em;
67-
margin-bottom: 0.5em;
68-
}
69-
h1 { font-size: 2em }
70-
h2 { font-size: 1.8em; margin-top: 1em; margin-bottom: 0.25em; }
71-
h3 { font-size: 1.6em; margin-top: 1em; margin-bottom: 0.25em; }
72-
h4 { font-size: 1.4em; margin-top: 1em; margin-bottom: 0.25em; font-weight: normal }
73-
h5 { font-size: 1.2em; font-weight: normal }
74-
h6 { font-size: 1em; font-weight: normal }
75-
76-
p pre code:not(.sourceCode),
77-
li pre code:not(.sourceCode),
78-
pre code:not(.sourceCode) {
79-
background-color: #11262D;
80-
}
81-
.navbar {
82-
border-bottom: solid 1px #E6E2DB
83-
}
66+
/* General adjustments */
8467
.blockquote {
8568
border-left: solid #D9D8AA;
8669
color: #98948E;
@@ -89,9 +72,36 @@ defaults:
8972
color: #98948E;
9073
background: #222222;
9174
}
92-
div.category {
93-
font-size: 0.8rem;
75+
.about-image { border: solid 2px }
76+
div.quarto-about-trestles .about-contents { border-left: none }
77+
div.category { font-size: 0.8rem; }
78+
79+
p { margin-top: 0em; margin-bottom: 0.5em; }
80+
81+
p pre code:not(.sourceCode),
82+
li pre code:not(.sourceCode),
83+
pre code:not(.sourceCode) {
84+
background-color: #11262D;
85+
}
86+
87+
/* Headings */
88+
h1 { font-size: 2em }
89+
h2 { font-size: 1.75em; margin-top: 1em; margin-bottom: 0.25em; }
90+
h3 { font-size: 1.5em; margin-top: 1em; margin-bottom: 0.25em; }
91+
h4 { font-size: 1.35em; margin-top: 1em; margin-bottom: 0.25em; font-weight: normal; }
92+
h5 { font-size: 1.2em; font-weight: normal; }
93+
h6 { font-size: 1em; font-weight: normal; }
94+
95+
/* Navbar and offset when when navigating to the anchor*/
96+
.navbar {
97+
border-bottom: solid 1px #E6E2DB;
98+
min-height: 60px;
9499
}
100+
/* Using monospace font is just a visual preference */
101+
.navbar-title, .nav-item { font-family: monospace }
102+
:target { scroll-margin-top: 60px; }
103+
104+
/* Blog listing */
95105
.blog-listing-item {
96106
padding-top: 1em;
97107
padding-bottom: 1em;
@@ -119,9 +129,7 @@ defaults:
119129
border: solid 1px;
120130
border-radius: .25rem;
121131
}
122-
.help-syntax-keys {
123-
color: #EDC7E7
124-
}
125-
.help-syntax-special {
126-
color: #D9D8AA
127-
}
132+
133+
/* Help file custom syntax */
134+
.help-syntax-keys { color: #EDC7E7 }
135+
.help-syntax-special { color: #D9D8AA }

theme/brand-light.yml

Lines changed: 34 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -63,36 +63,45 @@ defaults:
6363
navbar-fg: "#1D1E23"
6464
code-block-bg: "#E9E1DD"
6565
rules: |
66-
p {
67-
margin-top: 0em;
68-
margin-bottom: 0.5em;
66+
/* General adjustments */
67+
.blockquote {
68+
border-left: solid #804E00;
69+
color: #64666C;
6970
}
70-
h1 { font-size: 2em }
71-
h2 { font-size: 1.8em; margin-top: 1em; margin-bottom: 0.25em; }
72-
h3 { font-size: 1.6em; margin-top: 1em; margin-bottom: 0.25em; }
73-
h4 { font-size: 1.4em; margin-top: 1em; margin-bottom: 0.25em; font-weight: normal }
74-
h5 { font-size: 1.2em; font-weight: normal }
75-
h6 { font-size: 1em; font-weight: normal }
71+
.cell-output {
72+
color: #64666C;
73+
background: #E2E2E2;
74+
}
75+
.about-image { border: solid 2px }
76+
div.quarto-about-trestles .about-contents { border-left: none }
77+
div.category { font-size: 0.8rem; }
78+
79+
p { margin-top: 0em; margin-bottom: 0.5em; }
7680
7781
p pre code:not(.sourceCode),
7882
li pre code:not(.sourceCode),
7983
pre code:not(.sourceCode) {
8084
background-color: #E9E1DD;
8185
}
86+
87+
/* Headings */
88+
h1 { font-size: 2em }
89+
h2 { font-size: 1.75em; margin-top: 1em; margin-bottom: 0.25em; }
90+
h3 { font-size: 1.5em; margin-top: 1em; margin-bottom: 0.25em; }
91+
h4 { font-size: 1.35em; margin-top: 1em; margin-bottom: 0.25em; font-weight: normal; }
92+
h5 { font-size: 1.2em; font-weight: normal; }
93+
h6 { font-size: 1em; font-weight: normal; }
94+
95+
/* Navbar and offset when when navigating to the anchor*/
8296
.navbar {
83-
border-bottom: solid 1px #1D1E23
84-
}
85-
.blockquote {
86-
border-left: solid #804E00;
87-
color: #64666C;
88-
}
89-
.cell-output {
90-
background: #E2E2E2;
91-
color: #64666C;
92-
}
93-
div.category {
94-
font-size: 0.8rem;
97+
border-bottom: solid 1px #1D1E23;
98+
min-height: 60px;
9599
}
100+
/* Using monospace font is just a visual preference */
101+
.navbar-title, .nav-item { font-family: monospace }
102+
:target { scroll-margin-top: 60px; }
103+
104+
/* Blog listing */
96105
.blog-listing-item {
97106
padding-top: 1em;
98107
padding-bottom: 1em;
@@ -120,9 +129,7 @@ defaults:
120129
border: solid 1px;
121130
border-radius: .25rem;
122131
}
123-
.help-syntax-keys {
124-
color: #370674
125-
}
126-
.help-syntax-special {
127-
color: #804E00
128-
}
132+
133+
/* Help file custom syntax */
134+
.help-syntax-keys { color: #370674 }
135+
.help-syntax-special { color: #804E00 }

0 commit comments

Comments
 (0)