Skip to content

Commit c6f0e3e

Browse files
committed
Add details section to homepage
1 parent 47ffa82 commit c6f0e3e

2 files changed

Lines changed: 73 additions & 11 deletions

File tree

warduino/.vitepress/components/feature.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ article {
7070
padding: 0;
7171
letter-spacing: -0.02em;
7272
line-height: 24px;
73-
font-size: 18px;
73+
font-size: 16px;
7474
font-weight: 600;
7575
}
7676

warduino/.vitepress/components/home.vue

Lines changed: 72 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const {frontmatter: fm} = useData()
1515
<h1 v-if="fm.hero.name" class="name">
1616
<span v-html="fm.hero.name" class="clip"></span>
1717
</h1>
18-
<p v-if="fm.hero.text" v-html="fm.hero.text" class="text"></p>
18+
<p v-if="fm.hero.text" v-html="fm.hero.text" class="smaller"></p>
1919
<p v-if="fm.hero.tagline" v-html="fm.hero.tagline" class="tagline"></p>
2020
</div>
2121
</div>
@@ -65,7 +65,41 @@ const {frontmatter: fm} = useData()
6565
</div>
6666
</div>
6767

68-
<Content/>
68+
<!-- details -->
69+
<div class="details">
70+
<div class="container">
71+
<div class="vp-doc grow">
72+
<h2></h2>
73+
<div class="grow divider">
74+
<article class="list">
75+
<h4>Getting started</h4>
76+
<p><a href="./guide/get-started.html">-&gt; Get started</a></p>
77+
<p><a href="./guide/examples/index.html">-&gt; Examples</a></p>
78+
<p><a href="./guide/latch.html">-&gt; Automated testing</a></p>
79+
<p><a href="./guide/plugin.html">-&gt; Debugging in VS Code</a></p>
80+
</article>
81+
<article class="list">
82+
<h4>Developer's guide</h4>
83+
<p><a style="font-size: 14px" href="./reference/development.html">-&gt; Development</a></p>
84+
<p><a href="./reference/debug-protocol.html">-&gt; Debugger reference</a></p>
85+
<p><a href="./reference/platforms.html">-&gt; Supported platforms</a></p>
86+
<p><a href="./reference/primitives.html">-&gt; WARDuino primitives</a></p>
87+
<p><a href="./reference/edward/index.html">-&gt; EDWARD reference</a></p>
88+
</article>
89+
<article class="list">
90+
<h4>Examples</h4>
91+
<p><a href="./guide/examples/analog.html">-&gt; Analog Read Serial</a></p>
92+
<p><a href="./guide/examples/blink.html">-&gt; Blinking LED</a></p>
93+
<p><a href="./guide/examples/button.html">-&gt; Button</a></p>
94+
<p><a href="./guide/examples/index.html">-&gt; More ...</a></p>
95+
</article>
96+
</div>
97+
<h2></h2>
98+
99+
</div>
100+
</div>
101+
</div>
102+
69103
</div>
70104
</template>
71105

@@ -87,7 +121,7 @@ const {frontmatter: fm} = useData()
87121
padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 48px) 24px 48px;
88122
}
89123
90-
.features {
124+
.features, .details {
91125
padding: 0 24px;
92126
}
93127
@@ -96,7 +130,7 @@ const {frontmatter: fm} = useData()
96130
padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 48px 64px;
97131
}
98132
99-
.features {
133+
.features, .details {
100134
padding: 0 48px;
101135
}
102136
}
@@ -106,13 +140,13 @@ const {frontmatter: fm} = useData()
106140
padding: calc(var(--vp-nav-height) + var(--vp-layout-top-height, 0px) + 80px) 64px 64px;
107141
}
108142
109-
.features {
143+
.features, .details {
110144
padding: 0 64px;
111145
}
112146
}
113147
114148
.name,
115-
.text {
149+
.smaller {
116150
max-width: 392px;
117151
letter-spacing: -0.4px;
118152
line-height: 40px;
@@ -122,7 +156,7 @@ const {frontmatter: fm} = useData()
122156
}
123157
124158
.VPHero.has-image .name,
125-
.VPHero.has-image .text {
159+
.VPHero.has-image .smaller {
126160
margin: 0 auto;
127161
}
128162
@@ -141,7 +175,7 @@ const {frontmatter: fm} = useData()
141175
142176
@media (min-width: 640px) {
143177
.name,
144-
.text {
178+
.smaller {
145179
max-width: 576px;
146180
line-height: 56px;
147181
font-size: 48px;
@@ -150,13 +184,13 @@ const {frontmatter: fm} = useData()
150184
151185
@media (min-width: 960px) {
152186
.name,
153-
.text {
187+
.smaller {
154188
line-height: 64px;
155189
font-size: 56px;
156190
}
157191
158192
.hero.has-image .name,
159-
.hero.has-image .text {
193+
.hero.has-image .smaller {
160194
margin: 0;
161195
}
162196
}
@@ -255,4 +289,32 @@ const {frontmatter: fm} = useData()
255289
}
256290
}
257291
292+
/* details */
293+
294+
.grow {
295+
flex-grow: 1;
296+
}
297+
298+
.center {
299+
text-align: center;
300+
}
301+
302+
.divider {
303+
display: flex;
304+
align-items: flex-start;
305+
}
306+
307+
.divider > * {
308+
flex-grow: 1;
309+
}
310+
311+
.list > p {
312+
font-size: 14px;
313+
margin-top: 2px;
314+
margin-bottom: 0;
315+
padding-top: 8px;
316+
line-height: 24px;
317+
font-weight: 400;
318+
color: var(--vp-c-text-2);
319+
}
258320
</style>

0 commit comments

Comments
 (0)