|
1 | 1 | <script> |
2 | 2 | import { t, language } from "$lib/stores/language.js"; |
3 | 3 | import { theme } from "$lib/stores/theme.js"; |
4 | | - import { onMount } from "svelte"; |
5 | 4 |
|
6 | 5 | function toggleTheme() { |
7 | 6 | theme.setTheme($theme === "light" ? "dark" : "light"); |
|
12 | 11 | } |
13 | 12 | </script> |
14 | 13 |
|
15 | | -<header class="bg-ctp-base/80 sticky top-0 z-50 transition-colors duration-300 relative"> |
| 14 | +<header class="bg-ctp-base/80 sticky top-0 z-50 transition-colors duration-300 relative pt-0 h-fit overflow-hidden"> |
16 | 15 | <div class="container mx-auto px-4"> |
17 | 16 | <nav |
18 | | - class="flex justify-between items-center py-4 border-b border-ctp-surface1" |
| 17 | + class="flex justify-between items-baseline transform -translate-y-8" |
19 | 18 | > |
20 | 19 | <a href="#hero" class="text-xl font-bold text-ctp-text" |
21 | 20 | >{$t("name")}</a |
22 | 21 | > |
23 | 22 | <ul |
24 | | - class="hidden md:flex items-center space-x-8 text-sm font-medium" |
| 23 | + class="hidden md:flex items-center space-x-8 text-sm font-medium px-4" |
25 | 24 | > |
26 | 25 | <li> |
27 | 26 | <a |
28 | 27 | href="#about" |
29 | | - class="inline-block text-ctp-subtext0 hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-95" |
| 28 | + class="inline-flex flex-col items-center justify-end w-24 h-36 p-2 bg-ctp-surface0 rounded-lg shadow-md text-ctp-text hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-110 active:-translate-y-1 active:rotate-1 active:shadow-lg rotate-1" |
30 | 29 | >{$t("nav.about")}</a |
31 | 30 | > |
32 | 31 | </li> |
33 | 32 | <li> |
34 | 33 | <a |
35 | 34 | href="#skills" |
36 | | - class="inline-block text-ctp-subtext0 hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-95" |
| 35 | + class="inline-flex flex-col items-center justify-end w-24 h-36 p-2 bg-ctp-surface0 rounded-lg shadow-md text-ctp-text hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-110 active:-translate-y-1 active:rotate-1 active:shadow-lg rotate-[-1]" |
37 | 36 | >{$t("nav.skills")}</a |
38 | 37 | > |
39 | 38 | </li> |
40 | 39 | <li> |
41 | 40 | <a |
42 | 41 | href="#experience" |
43 | | - class="inline-block text-ctp-subtext0 hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-95" |
| 42 | + class="inline-flex flex-col items-center justify-end w-24 h-36 p-2 bg-ctp-surface0 rounded-lg shadow-md text-ctp-text hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-110 active:-translate-y-1 active:rotate-1 active:shadow-lg rotate-2" |
44 | 43 | >{$t("nav.experience")}</a |
45 | 44 | > |
46 | 45 | </li> |
47 | 46 | <li> |
48 | 47 | <a |
49 | 48 | href="#projects" |
50 | | - class="inline-block text-ctp-subtext0 hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-95" |
| 49 | + class="inline-flex flex-col items-center justify-end w-24 h-36 p-2 bg-ctp-surface0 rounded-lg shadow-md text-ctp-text hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-110 active:-translate-y-1 active:rotate-1 active:shadow-lg rotate-[-2]" |
51 | 50 | >{$t("nav.projects")}</a |
52 | 51 | > |
53 | 52 | </li> |
54 | 53 | <li> |
55 | 54 | <a |
56 | 55 | href="#education" |
57 | | - class="inline-block text-ctp-subtext0 hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-95" |
| 56 | + class="inline-flex flex-col items-center justify-end w-24 h-36 p-2 bg-ctp-surface0 rounded-lg shadow-md text-ctp-text hover:text-ctp-green transition-colors transform transition-all duration-200 ease-in-out hover:scale-105 active:scale-110 active:-translate-y-1 active:rotate-1 active:shadow-lg rotate-1" |
58 | 57 | >{$t("nav.education")}</a |
59 | 58 | > |
60 | 59 | </li> |
61 | 60 | </ul> |
62 | 61 | </nav> |
63 | 62 | </div> |
64 | | - <div class="absolute top-4 right-4 flex items-center gap-4" dir="ltr"> |
| 63 | + <div class="absolute top-[-16] right-4 flex items-center gap-4" dir="ltr"> |
65 | 64 | <button |
66 | 65 | on:click={toggleLanguage} |
67 | 66 | class="text-sm font-bold text-ctp-subtext0 transform transition-transform duration-200 hover:scale-110 active:scale-95" |
|
0 commit comments