Skip to content

Commit 833a86d

Browse files
committed
feat(header): update brand logo with SVG and enhance styling for better presentation
1 parent db11478 commit 833a86d

File tree

5 files changed

+142
-17
lines changed

5 files changed

+142
-17
lines changed

public/assets/rd-logo.svg

Lines changed: 38 additions & 0 deletions
Loading

public/favicon.ico

17.2 KB
Binary file not shown.

public/favicon.svg

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

src/components/Header.astro

Lines changed: 53 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,59 @@ const nav = lang === "pl"
2323
<nav class="nav">
2424
<div class="nav-header">
2525
<a href={homeHref} class="brand" aria-label="Go to homepage">
26-
<b>rocketdeploy</b>
27-
<small>systems · delivery · ops</small>
26+
<span class="brand-logo" aria-hidden="true">
27+
<svg
28+
xmlns="http://www.w3.org/2000/svg"
29+
viewBox="0 0 510 464"
30+
preserveAspectRatio="xMidYMid meet"
31+
aria-hidden="true"
32+
focusable="false"
33+
>
34+
<g
35+
transform="translate(0,464) scale(0.1,-0.1)"
36+
fill="currentColor"
37+
stroke="none"
38+
>
39+
<path
40+
d="M2432 4584 c-63 -17 -38 -4 -1887 -940 -200 -101 -379 -198 -402
41+
-218 -23 -20 -54 -62 -70 -94 l-28 -57 0 -1000 0 -1000 23 -48 c30 -59 95
42+
-125 153 -154 24 -11 172 -81 329 -153 157 -73 350 -163 430 -200 80 -37 197
43+
-91 259 -120 63 -29 171 -79 240 -112 70 -33 164 -77 211 -98 47 -21 216 -100
44+
375 -175 337 -159 380 -175 478 -175 91 1 106 6 462 172 160 75 310 145 335
45+
156 25 11 86 39 135 62 139 65 770 354 1229 563 204 93 267 140 307 229 l24
46+
53 3 982 2 981 -21 59 c-43 113 -63 126 -655 427 -291 148 -578 295 -639 326
47+
-369 192 -1059 531 -1096 539 -60 14 -134 12 -197 -5z m1391 -1294 c-1 -19
48+
-25 -143 -53 -275 -29 -132 -74 -346 -101 -475 -28 -129 -61 -289 -75 -355
49+
-14 -66 -45 -214 -69 -329 -24 -114 -47 -212 -52 -216 -12 -12 -263 -19 -398
50+
-12 -135 8 -130 3 -111 95 l7 38 -47 -36 c-62 -48 -102 -67 -204 -100 -72 -24
51+
-107 -29 -226 -33 -158 -5 -221 5 -310 47 -167 79 -245 250 -216 477 25 195
52+
107 359 252 504 144 143 299 221 500 251 131 19 332 3 461 -37 18 -5 16 -15
53+
80 296 17 85 38 165 46 178 l14 22 252 -2 252 -3 -2 -35z m-1773 -411 c36 -5
54+
69 -14 73 -19 10 -9 -73 -223 -141 -360 l-47 -95 -111 -6 c-224 -13 -383 -83
55+
-479 -212 -67 -88 -72 -104 -131 -397 -15 -74 -32 -141 -37 -147 -7 -10 -73
56+
-13 -268 -13 l-259 0 0 30 c0 16 13 89 29 162 31 137 96 433 176 802 25 115
57+
50 216 56 223 9 10 66 13 260 13 l249 0 0 -26 c0 -14 -11 -75 -25 -136 -14
58+
-61 -25 -115 -25 -120 0 -5 18 13 40 41 45 57 139 138 204 176 139 81 282 109
59+
436 84z m2318 -83 c17 -9 44 -33 59 -53 26 -34 28 -43 27 -122 0 -98 -12 -129
60+
-73 -190 -50 -50 -124 -76 -217 -75 -157 2 -237 104 -205 262 28 140 163 222
61+
327 201 28 -4 65 -14 82 -23z m-191 -707 c30 -11 102 -77 117 -108 35 -70 25
62+
-207 -24 -306 -83 -170 -249 -320 -442 -401 -70 -29 -76 -27 -118 51 -21 40
63+
-23 47 -10 55 83 48 250 215 250 250 0 4 -15 11 -32 14 -91 17 -131 76 -131
64+
191 0 108 52 192 151 244 54 29 176 34 239 10z"
65+
/>
66+
<path
67+
d="M2815 2542 c-145 -50 -245 -159 -296 -322 -45 -144 -20 -255 68 -307
68+
42 -25 58 -28 128 -27 103 1 194 36 267 103 l51 47 48 235 c27 129 48 239 49
69+
246 1 39 -224 57 -315 25z"
70+
/>
71+
</g>
72+
</svg>
73+
</span>
74+
75+
<span class="brand-text">
76+
<b>rocketdeploy</b>
77+
<small>systems · delivery · ops</small>
78+
</span>
2879
</a>
2980

3081
<button

src/styles/global.css

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
:root{
2-
--bg: #05070e; /* soft dark (nie czarny) */
2+
--bg: #05070e;
33
--panel: rgba(255,255,255,.03);
44
--border: rgba(255,255,255,.08);
55
--text: rgba(255,255,255,.86);
66
--muted: rgba(255,255,255,.62);
77
--faint: rgba(255,255,255,.42);
8-
--accent: #7aa2ff; /* chłodny niebieski */
9-
--accent2: #5eead4; /* delikatny teal do “glow” (mega oszczędnie) */
8+
--accent: #7aa2ff;
9+
--accent2: #5eead4;
1010
--shadow: 0 12px 40px rgba(0,0,0,.45);
1111
--radius: 18px;
1212
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
@@ -65,17 +65,49 @@ a:hover{ border-bottom-color: rgba(122,162,255,.85); }
6565

6666
.brand{
6767
display:flex;
68-
gap: 10px;
69-
align-items: baseline;
68+
gap: 12px;
69+
align-items: center;
7070
border-bottom: none;
71+
text-decoration: none;
72+
color: inherit;
7173
}
74+
7275
.brand b{ letter-spacing: .2px; }
76+
77+
.brand-logo{
78+
display: inline-flex;
79+
align-items: center;
80+
justify-content: center;
81+
border-bottom: none;
82+
transform: translateY(0);
83+
transition: transform 120ms ease;
84+
}
85+
86+
.brand-logo img,
87+
.brand-logo svg{
88+
width: 34px;
89+
height: 34px;
90+
display: block;
91+
}
92+
93+
.brand-text{
94+
display: inline-flex;
95+
flex-direction: column;
96+
gap: 4px;
97+
line-height: 1.15;
98+
}
99+
73100
.brand small{
74101
color: var(--muted);
75102
font-family: var(--mono);
76103
font-size: 12px;
77104
}
78105

106+
/* Subtelny hover */
107+
.brand:hover .brand-logo{
108+
transform: translateY(-1px);
109+
}
110+
79111
.navlinks{
80112
display:flex;
81113
gap: 18px;
@@ -146,6 +178,17 @@ a:hover{ border-bottom-color: rgba(122,162,255,.85); }
146178
.navlinks[data-open="true"]{
147179
display:flex;
148180
}
181+
182+
/* logo trochę mniejsze na mobile */
183+
.brand-logo img,
184+
.brand-logo svg{
185+
width: 28px;
186+
height: 28px;
187+
}
188+
189+
.brand small{
190+
font-size: 11px;
191+
}
149192
}
150193

151194
main{ padding: 10px 0 70px; }
@@ -268,6 +311,8 @@ h1{
268311
@media (prefers-reduced-motion: reduce){
269312
.btn, .card{ transition: none; }
270313
.btn:hover, .card:hover{ transform: none; }
314+
.brand-logo{ transition: none; }
315+
.brand:hover .brand-logo{ transform: none; }
271316
}
272317

273318
/* Hero kicker (index) — monospace + subtelny vibe */
@@ -455,4 +500,4 @@ h1{
455500
}
456501
.grid.problem-snap::-webkit-scrollbar{
457502
display: none; /* Chromium/Safari */
458-
}
503+
}

0 commit comments

Comments
 (0)