|
12 | 12 | } |
13 | 13 | </script> |
14 | 14 |
|
15 | | -<header class="bg-ctp-base/80 sticky top-0 z-50 transition-colors duration-300"> |
| 15 | +<header class="bg-ctp-base/80 sticky top-0 z-50 transition-colors duration-300 relative"> |
16 | 16 | <div class="container mx-auto px-4"> |
17 | 17 | <nav |
18 | 18 | class="flex justify-between items-center py-4 border-b border-ctp-surface1" |
19 | 19 | > |
20 | 20 | <a href="#hero" class="text-xl font-bold text-ctp-text" |
21 | 21 | >{$t("name")}</a |
22 | 22 | > |
23 | | - <div class="flex items-center gap-4"> |
24 | | - <ul |
25 | | - class="hidden md:flex items-center space-x-8 text-sm font-medium" |
26 | | - > |
27 | | - <li> |
28 | | - <a |
29 | | - href="#about" |
30 | | - class="text-ctp-subtext0 hover:text-ctp-green transition-colors" |
31 | | - >{$t("nav.about")}</a |
32 | | - > |
33 | | - </li> |
34 | | - <li> |
35 | | - <a |
36 | | - href="#skills" |
37 | | - class="text-ctp-subtext0 hover:text-ctp-green transition-colors" |
38 | | - >{$t("nav.skills")}</a |
39 | | - > |
40 | | - </li> |
41 | | - <li> |
42 | | - <a |
43 | | - href="#experience" |
44 | | - class="text-ctp-subtext0 hover:text-ctp-green transition-colors" |
45 | | - >{$t("nav.experience")}</a |
46 | | - > |
47 | | - </li> |
48 | | - <li> |
49 | | - <a |
50 | | - href="#projects" |
51 | | - class="text-ctp-subtext0 hover:text-ctp-green transition-colors" |
52 | | - >{$t("nav.projects")}</a |
53 | | - > |
54 | | - </li> |
55 | | - <li> |
56 | | - <a |
57 | | - href="#education" |
58 | | - class="text-ctp-subtext0 hover:text-ctp-green transition-colors" |
59 | | - >{$t("nav.education")}</a |
60 | | - > |
61 | | - </li> |
62 | | - </ul> |
63 | | - |
64 | | - <div |
65 | | - class="flex items-center gap-4 border-l border-ctp-surface1 pl-4" |
66 | | - > |
67 | | - <button |
68 | | - on:click={toggleLanguage} |
69 | | - class="text-sm font-bold text-ctp-subtext0" |
| 23 | + <ul |
| 24 | + class="hidden md:flex items-center space-x-8 text-sm font-medium" |
| 25 | + > |
| 26 | + <li> |
| 27 | + <a |
| 28 | + 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" |
| 30 | + >{$t("nav.about")}</a |
| 31 | + > |
| 32 | + </li> |
| 33 | + <li> |
| 34 | + <a |
| 35 | + 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" |
| 37 | + >{$t("nav.skills")}</a |
| 38 | + > |
| 39 | + </li> |
| 40 | + <li> |
| 41 | + <a |
| 42 | + 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" |
| 44 | + >{$t("nav.experience")}</a |
70 | 45 | > |
71 | | - {$language === "en" ? "HE" : "EN"} |
72 | | - </button> |
73 | | - <button |
74 | | - on:click={toggleTheme} |
75 | | - class="text-ctp-subtext0 text-xl" |
| 46 | + </li> |
| 47 | + <li> |
| 48 | + <a |
| 49 | + 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" |
| 51 | + >{$t("nav.projects")}</a |
76 | 52 | > |
77 | | - {#if $theme === "light"} |
78 | | - <span>☾</span> <!-- Moon --> |
79 | | - {:else} |
80 | | - <span>☀</span> <!-- Sun --> |
81 | | - {/if} |
82 | | - </button> |
83 | | - </div> |
84 | | - </div> |
| 53 | + </li> |
| 54 | + <li> |
| 55 | + <a |
| 56 | + 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" |
| 58 | + >{$t("nav.education")}</a |
| 59 | + > |
| 60 | + </li> |
| 61 | + </ul> |
85 | 62 | </nav> |
86 | 63 | </div> |
| 64 | + <div class="absolute top-4 right-4 flex items-center gap-4" dir="ltr"> |
| 65 | + <button |
| 66 | + on:click={toggleLanguage} |
| 67 | + class="text-sm font-bold text-ctp-subtext0 transform transition-transform duration-200 hover:scale-110 active:scale-95" |
| 68 | + > |
| 69 | + {$language === "en" ? "HE" : "EN"} |
| 70 | + </button> |
| 71 | + <button |
| 72 | + on:click={toggleTheme} |
| 73 | + class="text-ctp-subtext0 text-xl transform transition-transform duration-200 hover:scale-110 active:scale-95" |
| 74 | + > |
| 75 | + {#if $theme === "light"} |
| 76 | + <span>☾</span> <!-- Moon --> |
| 77 | + {:else} |
| 78 | + <span>☀</span> <!-- Sun --> |
| 79 | + {/if} |
| 80 | + </button> |
| 81 | + </div> |
87 | 82 | </header> |
0 commit comments