|
1 | 1 | --- |
2 | | -import HeaderLink from './HeaderLink.astro'; |
3 | 2 | import { SITE_TITLE } from '../consts'; |
4 | 3 | --- |
5 | 4 |
|
6 | | -<header> |
7 | | - <nav> |
8 | | - <h2><a href="/">{SITE_TITLE}</a></h2> |
9 | | - <div class="internal-links"> |
10 | | - <HeaderLink href="/">Home</HeaderLink> |
11 | | - <HeaderLink href="/blog">Blog</HeaderLink> |
12 | | - <HeaderLink href="/about">About</HeaderLink> |
13 | | - </div> |
14 | | - <div class="social-links"> |
15 | | - <a href="https://github.com/CoutoDev" target="_blank"> |
16 | | - <span class="sr-only">Go to CoutoDev GitHub profile</span> |
17 | | - <svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32" astro-icon="social/github" |
18 | | - ><path |
19 | | - fill="currentColor" |
20 | | - d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z" |
21 | | - ></path></svg |
22 | | - > |
| 5 | +<header class="bg-gray-900 border-b border-green-500/20"> |
| 6 | + <nav class="container mx-auto px-4 py-4 flex justify-between items-center"> |
| 7 | + <h2> |
| 8 | + <a class="text-2xl font-atkinson font-bold text-green-400 hover:text-green-300 transition-colors" href="/"> |
| 9 | + {SITE_TITLE} |
| 10 | + </a> |
| 11 | + </h2> |
| 12 | + <div class="flex gap-6"> |
| 13 | + <a href="https://github.com/CoutoDev" target="_blank" class="text-green-400 hover:text-green-300 transition-colors" aria-label="Go to CoutoDev GitHub profile"> |
| 14 | + <svg viewBox="0 0 16 16" width="32" height="32" class="fill-current"> |
| 15 | + <path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.012 8.012 0 0 0 16 8c0-4.42-3.58-8-8-8z"/> |
| 16 | + </svg> |
23 | 17 | </a> |
24 | | - <a href="https://www.linkedin.com/in/vitor-coutinho-fernandes" target="_blank"> |
25 | | - <span class="sr-only">Visit Vitor Coutinho Fernandes LinkedIn Profile</span> |
26 | | - <svg viewBox="0 0 16 16" aria-hidden="true" width="32" height="32" astro-icon="social/linkedin"> |
27 | | - <path |
28 | | - fill="currentColor" |
29 | | - d="M1.5 0a1.5 1.5 0 0 0-1.5 1.5v13a1.5 1.5 0 0 0 1.5 1.5h13a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 14.5 0h-13zm4.75 12.5H3.75v-7h2.5v7zm-1.25-8.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5zm9 8.25h-2.5v-3.25c0-.69-.56-1.25-1.25-1.25s-1.25.56-1.25 1.25v3.25h-2.5v-7h2.5v1.031c.45-.623 1.17-1.031 2-1.031 1.38 0 2.5 1.12 2.5 2.5v4.5z" |
30 | | - ></path> |
| 18 | + <a href="https://www.linkedin.com/in/vitor-coutinho-fernandes" target="_blank" class="text-green-400 hover:text-green-300 transition-colors" aria-label="Visit Vitor Coutinho Fernandes LinkedIn Profile"> |
| 19 | + <svg viewBox="0 0 16 16" width="32" height="32" class="fill-current"> |
| 20 | + <path d="M1.5 0a1.5 1.5 0 0 0-1.5 1.5v13a1.5 1.5 0 0 0 1.5 1.5h13a1.5 1.5 0 0 0 1.5-1.5v-13A1.5 1.5 0 0 0 14.5 0h-13zm4.75 12.5H3.75v-7h2.5v7zm-1.25-8.25a1.25 1.25 0 1 1 0-2.5 1.25 1.25 0 0 1 0 2.5zm9 8.25h-2.5v-3.25c0-.69-.56-1.25-1.25-1.25s-1.25.56-1.25 1.25v3.25h-2.5v-7h2.5v1.031c.45-.623 1.17-1.031 2-1.031 1.38 0 2.5 1.12 2.5 2.5v4.5z"/> |
31 | 21 | </svg> |
32 | 22 | </a> |
33 | 23 | </div> |
34 | 24 | </nav> |
35 | 25 | </header> |
36 | | -<style> |
37 | | - header { |
38 | | - margin: 0; |
39 | | - padding: 0 1em; |
40 | | - background: white; |
41 | | - box-shadow: 0 2px 8px rgba(var(--black), 5%); |
42 | | - } |
43 | | - h2 { |
44 | | - margin: 0; |
45 | | - font-size: 1em; |
46 | | - } |
47 | | - |
48 | | - h2 a, |
49 | | - h2 a.active { |
50 | | - text-decoration: none; |
51 | | - } |
52 | | - nav { |
53 | | - display: flex; |
54 | | - align-items: center; |
55 | | - justify-content: space-between; |
56 | | - } |
57 | | - nav a { |
58 | | - padding: 1em 0.5em; |
59 | | - color: var(--black); |
60 | | - border-bottom: 4px solid transparent; |
61 | | - text-decoration: none; |
62 | | - } |
63 | | - nav a.active { |
64 | | - text-decoration: none; |
65 | | - border-bottom-color: var(--accent); |
66 | | - } |
67 | | - .social-links, |
68 | | - .social-links a { |
69 | | - display: flex; |
70 | | - } |
71 | | - @media (max-width: 720px) { |
72 | | - .social-links { |
73 | | - display: none; |
74 | | - } |
75 | | - } |
76 | | -</style> |
0 commit comments