Skip to content

Commit 576973d

Browse files
fixed socials and navbar
1 parent 010c436 commit 576973d

6 files changed

Lines changed: 51 additions & 50 deletions

File tree

src/components/home/Greeting.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<script lang="ts">
22
import { onMount } from "svelte";
3-
import Socials from "../socials/Socials.svelte";
43
54
// Roles
65
const typingInterval: number = 50;

src/components/home/Intro.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
import Card from "../global/Card.astro";
3-
import Socials from "../socials/Socials.svelte";
3+
import Socials from "../socials/Socials.astro";
44
import Greeting from "./Greeting.svelte";
55
---
66

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<div class="flex flex-row items-center justify-center gap-2">
2+
<a href="https://github.com/liyunze-coding" target="_blank">
3+
<div
4+
class="flex h-7 w-7 items-center justify-center rounded-full bg-white transition-[filter] duration-150 hover:invert"
5+
>
6+
<img
7+
src="/images/socials/github.svg"
8+
alt="github"
9+
class="aspect-square max-w-full"
10+
width="20"
11+
/>
12+
</div>
13+
</a>
14+
<a href="https://codepen.io/rythondev" target="_blank">
15+
<div
16+
class="flex h-7 w-7 items-center justify-center rounded-full bg-white transition-[filter] duration-150 hover:invert"
17+
>
18+
<img
19+
src="/images/socials/codepen.svg"
20+
alt="codepen"
21+
class="aspect-square h-5 w-5"
22+
/>
23+
</div>
24+
</a>
25+
<a href="https://youtube.com/@RythonDev" target="_blank">
26+
<div
27+
class="flex h-7 w-7 items-center justify-center rounded-full bg-white transition-[filter,background-color] duration-150 hover:bg-[#00ffff] hover:invert"
28+
>
29+
<img
30+
src="/images/socials/youtube.svg"
31+
alt="youtube"
32+
class="aspect-square h-5 w-5"
33+
/>
34+
</div>
35+
</a>
36+
<a href="https://twitch.tv/RythonDev" target="_blank">
37+
<div
38+
class="flex h-7 w-7 items-center justify-center rounded-full bg-white transition-[filter,background-color] duration-150 hover:bg-[#6eb900] hover:invert"
39+
>
40+
<img
41+
src="/images/socials/twitch.svg"
42+
alt="twitch"
43+
class="aspect-square h-4 w-4"
44+
/>
45+
</div>
46+
</a>
47+
</div>

src/components/socials/Socials.svelte

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

src/components/ui/NavigationBar.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export const HoverNavigation = ({
109109
className="mr-3 rounded-full"
110110
/>
111111
</a>
112-
<div className="mx-5 flex flex-col items-center justify-center">
112+
<div className="flex flex-col items-center justify-center">
113113
<motion.div
114114
animate={{
115115
width: availableVisible ? "auto" : "0px",
@@ -118,12 +118,13 @@ export const HoverNavigation = ({
118118
className="flex w-auto flex-row items-center justify-center pr-2 whitespace-nowrap opacity-100 lg:w-0 lg:opacity-0"
119119
>
120120
<a
121+
tabIndex={1}
121122
href="/contact"
122123
className="overflow-hidden whitespace-nowrap transition-colors duration-150 hover:text-green-500"
123124
>
124125
Available for work
125126
</a>
126-
<div className={`relative z-50 ml-3`}>
127+
<div className="relative z-50 ml-5">
127128
<div className="absolute top-1/2 left-1/2 aspect-square w-[6px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-green-500"></div>
128129
<div className="animate-glow absolute top-1/2 left-1/2 aspect-square w-[6px] -translate-x-1/2 -translate-y-1/2 rounded-full bg-green-500"></div>
129130
</div>

src/layouts/Layout.astro

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import { ClientRouter } from "astro:transitions";
2727
thumbnail && (
2828
<>
2929
<meta name="twitter:image" content={thumbnail} />
30-
<meta name="og:image" content={thumbnail} />
3130
</>
3231
)
3332
}

0 commit comments

Comments
 (0)