Skip to content

Commit 1f5bc6f

Browse files
committed
style: update CustomHeader and documentation hero section
- Added a link to the homepage in the CustomHeader component for improved navigation. - Updated the hero section title in documentation to use a consistent color scheme and adjusted the variant for better visual hierarchy.
1 parent 987582c commit 1f5bc6f

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/components/ui/CustomHeader.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@ import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro";
55
---
66

77
<nav class="flex items-center justify-between">
8+
<a class="no-underline hover:underline text-inherit" href="/">
89
<h1 class="font-[Geist] text-base lg:text-xl flex items-center">
910
<span>tutorials.</span>
1011
<span class="text-[#02BCFF]">angular.</span>
1112
<span>courses</span>
1213
</h1>
14+
</a>
1315
<Search />
1416
<div class="flex items-center gap-6">
1517
<div class="flex items-center gap-4">

src/content/docs/en/index.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ hero:
66
title: |
77
Start learning
88
<span
9-
class="text-7xl text-[var(--sl-color-accent)] uppercase font-bold">
9+
class="text-7xl text-[#02BCFF] uppercase font-bold">
1010
Angular
1111
</span>
1212
tagline: Discover Angular with our community tutorial
@@ -16,10 +16,7 @@ hero:
1616
- text: Getting Started
1717
link: en/getting-started/introduction
1818
icon: right-arrow
19-
- text: Discover official tutorials
20-
link: https://angular.dev/tutorials
21-
icon: external
22-
variant: minimal
19+
variant: secondary
2320
---
2421

2522
<div class="flex items-end text-3xl font-bold">

src/content/docs/index.mdx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,15 @@ hero:
66
title: |
77
<span class="font-[BungeeHairline]">Start learning</span>
88
<span
9-
class="text-7xl uppercase font-bold font-[BungeeInline]">
9+
class="text-7xl uppercase font-bold font-[BungeeInline] text-[#02BCFF]">
1010
Angular
1111
</span>
1212
tagline: Discover Angular with our community tutorial
1313
actions:
1414
- text: Getting Started
1515
link: en/getting-started/introduction
1616
icon: right-arrow
17-
- text: Discover official tutorials
18-
link: https://angular.dev/tutorials
19-
icon: external
20-
variant: minimal
17+
variant: secondary
2118
---
2219

2320
<div class="flex items-end text-3xl font-[Geist]">

src/styles/global.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ html {
4242
--sl-icon-color: black;
4343
}
4444

45+
:root:not([data-theme="light"]) {
46+
--sl-icon-color: white;
47+
}
48+
4549
@theme {
4650
/*
4751
Configure your Tailwind theme that will be used by Starlight.

0 commit comments

Comments
 (0)