Skip to content

Commit 50dc991

Browse files
committed
✨ Add welcome page to /docs
1 parent 1c9f408 commit 50dc991

File tree

2 files changed

+43
-8
lines changed

2 files changed

+43
-8
lines changed

src/routes/+layout.svelte

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454
console.error(error)
5555
}
5656
}
57-
5857
getCurrentRelease()
5958
6059
const { activeCategory } = createSidebarContext(data.sidebar)
60+
6161
$: category = $activeCategory ? `${$activeCategory} — ` : ''
6262
$: title = data.meta ? `Animated Java | ${category}${data.meta.title}` : 'Animated Java'
6363
$: description = data.meta?.description || SLOGAN
@@ -92,6 +92,17 @@
9292

9393
<div class="hide-parent" slot="navbar-right-alt"></div>
9494

95+
<ul
96+
slot="sidebar-top"
97+
class={'custom-sidebar-top' + ($page.url.pathname === '/docs' ? ' active' : '')}
98+
>
99+
<li>
100+
<a href="/docs">
101+
<h5 class="">Welcome!</h5>
102+
</a>
103+
</li>
104+
</ul>
105+
95106
<div class="logo" slot="navbar-left">
96107
<Button href="/">
97108
<div class="header-container">
@@ -148,6 +159,32 @@
148159
display: none;
149160
}
150161
162+
.custom-sidebar-top {
163+
display: flex;
164+
justify-content: flex-start;
165+
align-items: center;
166+
/* font-size: 1.125rem; */
167+
font-weight: 400;
168+
margin-bottom: 2rem;
169+
color: rgb(var(--kd-color-soft) / var(--tw-text-opacity));
170+
border-left: 1px solid rgb(var(--kd-color-elevate));
171+
padding-left: 1rem;
172+
padding-top: 0.25rem;
173+
padding-bottom: 0.25rem;
174+
}
175+
.custom-sidebar-top > li {
176+
flex-grow: 1;
177+
}
178+
.custom-sidebar-top:hover {
179+
color: rgb(var(--kd-color-inverse) / var(--tw-text-opacity));
180+
border-color: rgb(var(--kd-color-inverse) / var(--tw-border-opacity));
181+
}
182+
.custom-sidebar-top.active {
183+
color: rgb(var(--kd-color-brand));
184+
border-color: rgb(var(--kd-color-brand));
185+
font-weight: 600;
186+
}
187+
151188
.nav-links {
152189
display: flex;
153190
flex-direction: row;

src/routes/docs/+page.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
---
2-
title: Welcome to Animated Java!
2+
title: Documentation
3+
description: Learn how to use Animated Java
34
---
45

56
<div class="aj-welcome-page-header">
6-
<h1 style=" margin-top: 0px; margin-bottom: 0">Welcome to Animated Java!</h1>
7+
<h1 style=" margin-top: 0px; margin-bottom: 0">Welcome!</h1>
78
<img
89
src="/img/armor_stand_wave.gif"
910
alt="Armor Stand Waving"
1011
width="80px"
1112
style="margin-left: 16px"
1213
/>
13-
1414
</div>
1515

16-
Take your Map or Data Pack polish to the next level with Animated Java!
17-
18-
Animated Java empowers **you** 🫵 to easily create intricate entity animations with Blockbench, and seamlessly integrate them into your Minecraft projects!
16+
This documentation will help **you** 🫵 take your Map or Data Pack polish to the next level with Animated Java!
1917

20-
This documentation will guide you through the process of installing Animated Java, creating your first Blueprint, and using the API to summon, and control rig instances.
18+
You will be guided you through the process of installing Animated Java, creating your first Blueprint, and using the API to summon, and control rig instances.
2119

2220
Click the next page to get started!

0 commit comments

Comments
 (0)