Skip to content

Commit c8564bc

Browse files
committed
refactor: update Astro configuration and add custom header component
- Changed the title in the Astro configuration to match the new site name "tutorials.angular.courses". - Introduced a new custom header component for improved navigation and branding. - Updated favicon and logo SVG files for better visual representation. - Added a new font "Geist" for enhanced typography across the site. - Adjusted global styles to reflect the new design elements and improve theme consistency.
1 parent d9d0acf commit c8564bc

File tree

7 files changed

+59
-62
lines changed

7 files changed

+59
-62
lines changed

astro.config.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@ export default defineConfig({
1010
site: "https://tutorials.angular.courses",
1111
integrations: [
1212
starlight({
13-
title: "Angular Tutorials",
13+
title: "tutorials.angular.courses",
1414
favicon: "/public/favicon.svg",
15-
logo: {
16-
src: "/public/logo.svg",
17-
},
1815
social: [
1916
{
2017
icon: "github",
@@ -27,6 +24,9 @@ export default defineConfig({
2724
href: "https://www.dolmen.tools/en/angular/angie/chat",
2825
},
2926
],
27+
components: {
28+
Header: "./src/components/ui/CustomHeader.astro",
29+
},
3030
sidebar: [
3131
{
3232
label: "Getting Started",

public/favicon.svg

Lines changed: 11 additions & 6 deletions
Loading

public/fonts/Geist-Bold.ttf

76.5 KB
Binary file not shown.

public/logo.svg

Lines changed: 11 additions & 6 deletions
Loading
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
import Search from "@astrojs/starlight/components/Search.astro";
3+
import SocialIcons from "@astrojs/starlight/components/SocialIcons.astro";
4+
import ThemeSelect from "@astrojs/starlight/components/ThemeSelect.astro";
5+
---
6+
7+
<nav class="flex items-center justify-between">
8+
<h1 class="font-[Geist] text-xl flex items-center">
9+
<span>tutorials.</span>
10+
<span class="text-[#02BCFF]">angular.</span>
11+
<span>courses</span>
12+
</h1>
13+
<Search />
14+
<div class="flex items-center gap-6">
15+
<div class="flex items-center gap-4">
16+
<SocialIcons />
17+
</div>
18+
<hr class="h-4 w-px bg-gray-400 dark:bg-gray-500" />
19+
<ThemeSelect />
20+
</div>
21+
</nav>

src/content/docs/index.mdx

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ hero:
66
title: |
77
<span class="font-[BungeeHairline]">Start learning</span>
88
<span
9-
class="text-7xl text-[var(--sl-color-accent)] uppercase font-bold font-[BungeeInline]">
9+
class="text-7xluppercase font-bold font-[BungeeInline]">
1010
Angular
1111
</span>
1212
tagline: Discover Angular with our community tutorial
13-
image:
14-
file: /public/favicon.svg
1513
actions:
1614
- text: Getting Started
1715
link: en/getting-started/introduction
@@ -22,14 +20,11 @@ hero:
2220
variant: minimal
2321
---
2422

25-
<div class="flex items-end text-3xl font-bold">
26-
<span class="font-[BungeeHairline] ">Angular Courses</span>
27-
<span class="text-[var(--sl-color-accent)] ml-2 font-[BungeeInline]">
28-
Lab
29-
</span>
30-
<span class="ml-2 text-base font-normal">Initiative</span>
23+
<div class="flex items-end text-3xl font-[Geist]">
24+
<span class="text-[#02BCFF]">angular.</span>
25+
<span>courses</span>
3126
</div>
3227

33-
This tutorial is part of the **Angular Courses Lab** initiative - a community-driven effort to create comprehensive, hands-on learning experiences for Angular developers of all skill levels. Our mission is to provide practical, real-world tutorials that bridge the gap between Angular concepts and actual application development.
28+
This tutorial is part of the **angular.courses** initiative - a community-driven effort to create comprehensive, hands-on learning experiences for Angular developers of all skill levels. Our mission is to provide practical, real-world tutorials that bridge the gap between Angular concepts and actual application development.
3429

3530
Through this initiative, we're building a collection of interactive tutorials that cover everything from basic Angular concepts to advanced patterns, helping developers master Angular through guided, project-based learning.

src/styles/global.css

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -21,41 +21,12 @@
2121
font-display: swap;
2222
}
2323

24-
/* Dark mode colors. */
25-
:root {
26-
--sl-color-accent-low: hwb(21 1% 73%);
27-
--sl-color-accent: #e4832a;
28-
--sl-color-accent-high: #e4832a;
29-
--sl-color-white: #ffffff;
30-
--sl-color-gray-1: #cad5e2;
31-
--sl-color-gray-2: #8fa1b9;
32-
--sl-color-gray-3: #62748e;
33-
--sl-color-gray-4: #46556c;
34-
--sl-color-gray-5: #324158;
35-
--sl-color-gray-6: #1e2938;
36-
--sl-color-bg-nav: #1e2938;
37-
--sl-color-bg-sidebar: #1e2938;
38-
--sl-color-bg-inline-code: #1e2938;
39-
--sl-color-hairline: #18181b;
40-
}
41-
/* Light mode colors. */
42-
:root[data-theme="light"] {
43-
--sl-color-accent-low: #fef3c7;
44-
--sl-color-accent: #e4832a;
45-
--sl-color-accent-high: #451a03;
46-
--sl-color-white: #1c1425;
47-
--sl-color-gray-1: #2f1c42;
48-
--sl-color-gray-2: #412e55;
49-
--sl-color-gray-3: #614e78;
50-
--sl-color-gray-4: #9581ae;
51-
--sl-color-gray-5: #c7bdd5;
52-
--sl-color-gray-6: #f2e9fd;
53-
--sl-color-gray-7: #f8f4fe;
54-
--sl-color-black: #ffffff;
55-
--sl-color-bg-nav: #f9fafc;
56-
--sl-color-bg-sidebar: #f9fafc;
57-
--sl-color-bg-inline-code: #f9fafc;
58-
--sl-color-hairline: #ffffff;
24+
@font-face {
25+
font-family: "Geist";
26+
src: url("/fonts/Geist-Bold.ttf") format("truetype");
27+
font-weight: normal;
28+
font-style: normal;
29+
font-display: swap;
5930
}
6031

6132
:root:not([data-theme="light"]) .expressive-code .frame pre {
@@ -79,5 +50,5 @@ https://tailwindcss.com/docs/adding-custom-styles#using-custom-css
7950
*/
8051

8152
.site-title {
82-
font-family: "BungeeInline", sans-serif;
53+
font-family: "Geist", sans-serif;
8354
}

0 commit comments

Comments
 (0)