Skip to content

Commit 3296e6c

Browse files
committed
refactor: update favicon and integrate new fonts in documentation
- Replaced the Angular logo with a new favicon in the Astro configuration and documentation. - Added BungeeInline and BungeeHairline font styles to global CSS for enhanced typography. - Updated hero section in documentation to utilize the new fonts and improved layout. - Adjusted color variables in global CSS for better visual consistency across themes.
1 parent 2ea7170 commit 3296e6c

File tree

6 files changed

+85
-27
lines changed

6 files changed

+85
-27
lines changed

astro.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ export default defineConfig({
1111
integrations: [
1212
starlight({
1313
title: "Angular Tutorials",
14-
favicon: "/public/angular-logo.png",
14+
favicon: "/public/favicon.svg",
1515
logo: {
16-
src: "/public/angular-logo.png",
16+
src: "/public/favicon.svg",
1717
},
1818
social: [
1919
{

public/favicon.svg

Lines changed: 13 additions & 1 deletion
Loading
101 KB
Binary file not shown.
148 KB
Binary file not shown.

src/content/docs/index.mdx

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ description: Get started learning Angular with our community tutorial
44
template: splash
55
hero:
66
title: |
7-
Start learning
7+
<span class="font-[BungeeHairline]">Start learning</span>
88
<span
9-
class="text-7xl text-[var(--sl-color-accent)] uppercase font-bold">
9+
class="text-7xl text-[var(--sl-color-accent)] uppercase font-bold font-[BungeeInline]">
1010
Angular
1111
</span>
1212
tagline: Discover Angular with our community tutorial
1313
image:
14-
file: /public/angular-logo.png
14+
file: /public/favicon.svg
1515
actions:
1616
- text: Getting Started
1717
link: en/getting-started/introduction
@@ -21,3 +21,15 @@ hero:
2121
icon: external
2222
variant: minimal
2323
---
24+
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>
31+
</div>
32+
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.
34+
35+
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: 55 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,64 @@
44
@import "tailwindcss/theme.css" layer(theme);
55
@import "tailwindcss/utilities.css" layer(utilities);
66

7+
/* Font faces */
8+
@font-face {
9+
font-family: "BungeeInline";
10+
src: url("/fonts/BungeeInline-Regular.ttf") format("truetype");
11+
font-weight: normal;
12+
font-style: normal;
13+
font-display: swap;
14+
}
15+
16+
@font-face {
17+
font-family: "BungeeHairline";
18+
src: url("/fonts/BungeeHairline-Regular.ttf") format("truetype");
19+
font-weight: normal;
20+
font-style: normal;
21+
font-display: swap;
22+
}
23+
724
/* Dark mode colors. */
825
:root {
9-
--sl-color-accent-low: #36113e;
10-
--sl-color-accent: #a400c0;
11-
--sl-color-accent-high: #e3b6ed;
26+
--sl-color-accent-low: #451a03;
27+
--sl-color-accent: #f59e0b;
28+
--sl-color-accent-high: #f59e0b;
1229
--sl-color-white: #ffffff;
13-
--sl-color-gray-1: #f2e9fd;
14-
--sl-color-gray-2: #c7bdd5;
15-
--sl-color-gray-3: #9581ae;
16-
--sl-color-gray-4: #614e78;
17-
--sl-color-gray-5: #412e55;
18-
--sl-color-gray-6: #2f1c42;
19-
--sl-color-black: #1c1425;
30+
--sl-color-gray-1: #f0fdfa;
31+
--sl-color-gray-2: #ccfbf1;
32+
--sl-color-gray-3: #99f6e4;
33+
--sl-color-gray-4: #5eead4;
34+
--sl-color-gray-5: #2dd4bf;
35+
--sl-color-gray-6: #0f766e;
36+
--sl-color-black: #0d1f1f;
37+
--sl-color-bg-nav: #0b4f4a;
38+
--sl-color-bg-sidebar: #0b4f4a;
39+
--sl-color-bg-inline-code: #0b4f4a;
40+
--sl-color-hairline: #0d1f1e;
2041
}
2142
/* Light mode colors. */
2243
:root[data-theme="light"] {
23-
--sl-color-accent-low: #ebc9f3;
24-
--sl-color-accent: #a700c3;
25-
--sl-color-accent-high: #4e0e5b;
26-
--sl-color-white: #1c1425;
27-
--sl-color-gray-1: #2f1c42;
28-
--sl-color-gray-2: #412e55;
29-
--sl-color-gray-3: #614e78;
30-
--sl-color-gray-4: #9581ae;
31-
--sl-color-gray-5: #c7bdd5;
32-
--sl-color-gray-6: #f2e9fd;
33-
--sl-color-gray-7: #f8f4fe;
44+
--sl-color-accent-low: #fef3c7;
45+
--sl-color-accent: #d97706;
46+
--sl-color-accent-high: #451a03;
47+
--sl-color-white: #0d1f1f;
48+
--sl-color-gray-1: #134e4a;
49+
--sl-color-gray-2: #0f766e;
50+
--sl-color-gray-3: #0d9488;
51+
--sl-color-gray-4: #14b8a6;
52+
--sl-color-gray-5: #5eead4;
53+
--sl-color-gray-6: #ccfbf1;
54+
--sl-color-gray-7: #f0fdfa;
3455
--sl-color-black: #ffffff;
56+
--code-background: red;
57+
}
58+
59+
.expressive-code .frame pre {
60+
background: #01302f !important;
61+
}
62+
63+
main .content-panel {
64+
padding-block-end: 0 !important;
3565
}
3666

3767
@theme {
@@ -45,3 +75,7 @@
4575
Add additional Tailwind styles to this file:
4676
https://tailwindcss.com/docs/adding-custom-styles#using-custom-css
4777
*/
78+
79+
.site-title {
80+
font-family: "BungeeInline", sans-serif;
81+
}

0 commit comments

Comments
 (0)