Skip to content

Commit 3b58e01

Browse files
authored
Merge pull request #21 from glandjs/develop
feat: update logo and links
2 parents 7897e87 + 6fb3fea commit 3b58e01

File tree

8 files changed

+42
-30
lines changed

8 files changed

+42
-30
lines changed

astro.config.mjs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ export default defineConfig({
1111
}),
1212
starlight({
1313
title: 'Gland',
14-
logo: {
15-
src: './src/assets/logo.svg',
16-
alt: 'Gland Documentation',
17-
},
1814
social: {
1915
github: 'https://github.com/glandjs/docs',
2016
discord: 'https://discord.gg/glandjs',

public/favicon.svg

Lines changed: 6 additions & 7 deletions
Loading

public/logo.png

14.6 KB
Loading

public/logo.svg

Lines changed: 7 additions & 0 deletions
Loading

src/assets/logo.png

-16.8 KB
Binary file not shown.

src/assets/logo.svg

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/components/Header.astro

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ const navItems = [
99
];
1010
---
1111

12-
<div class="logo-section">
13-
<img src="src/assets/logo.png" alt="Gland Logo" class="h-10 mr-3" />
14-
<span>GLAND</span>
15-
</div>
12+
<a href="/" class="logo-section">
13+
<img src="/public/logo.png" alt="Gland Logo" class="logo-img" />
14+
<span>GLAND</span>
15+
</a>
1616

1717
<div class="middle-section"></div>
1818

src/styles/tailwind.css

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
--text-tertiary: 140 140 140;
3232
--primary: 130 148 255;
3333
--primary-light: 160 170 255;
34-
--background-pattern: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjIpIiBzdHJva2Utd2lkdGg9IjEiIGQ9Ik01OS41IDU5LjVWNTkuNWgtNTl2LTU5Ii8+PC9nPjwvc3ZnPg==");
34+
--background-pattern: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxwYXRoIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjIpIiBzdHJva2Utd2lkdGg9IjEiIGQ9Ik01OS41IDU5LjVWNTkuNWgtNTl2LTU5Ii8+PC9nPjwvc3ZnPg==');
3535
}
3636
main {
3737
@apply mx-auto px-4 md:px-6 lg:px-8;
@@ -79,7 +79,7 @@
7979
}
8080

8181
.nav-link::after {
82-
content: "";
82+
content: '';
8383
position: absolute;
8484
bottom: 0;
8585
left: 10%;
@@ -98,12 +98,32 @@
9898
.logo-section {
9999
display: flex;
100100
align-items: center;
101+
gap: 0.75rem;
101102
padding: 0 1.5rem;
102103
font-weight: 700;
103104
font-size: 1.1rem;
104105
letter-spacing: 0.5px;
105106
color: #fff;
106107
border-right: 1px solid rgba(255, 255, 255, 0.1);
108+
text-decoration: none;
109+
box-sizing: border-box;
110+
transition: opacity 0.2s ease-in-out;
111+
}
112+
113+
.logo-section:hover {
114+
opacity: 0.85;
115+
}
116+
117+
.logo-section:visited,
118+
.logo-section:active {
119+
color: #fff;
120+
text-decoration: none;
121+
}
122+
123+
.logo-img {
124+
height: 2.5rem;
125+
margin-top: 0.25rem;
126+
display: block;
107127
}
108128

109129
.github-icon {
@@ -186,7 +206,7 @@
186206
background: var(--background);
187207

188208
&::before {
189-
content: "";
209+
content: '';
190210
position: absolute;
191211
inset: 0;
192212
background: radial-gradient(
@@ -195,9 +215,7 @@
195215
rgba(9, 8, 8, 1) 70%
196216
),
197217
var(--background-pattern);
198-
background-size:
199-
cover,
200-
60px 60px;
218+
background-size: cover, 60px 60px;
201219
background-repeat: no-repeat, repeat;
202220
z-index: -1;
203221
}
@@ -286,7 +304,7 @@
286304

287305
.code-preview pre {
288306
margin: 0;
289-
font-family: "JetBrains Mono", monospace;
307+
font-family: 'JetBrains Mono', monospace;
290308
font-size: 0.9rem;
291309
color: #eee;
292310
width: 100%;

0 commit comments

Comments
 (0)