Skip to content

Commit 0c2c7f1

Browse files
committed
Updates
1 parent cb0495f commit 0c2c7f1

File tree

16 files changed

+198
-25
lines changed

16 files changed

+198
-25
lines changed

public/SocialsBanner.png

588 KB
Loading

public/WorkBanner.png

482 KB
Loading

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Home } from './pages/Home';
55
import Navbar from './components/Navbar';
66
import Footer from './components/Footer';
77
import { Works } from './pages/Works';
8-
import { Tools } from './pages/Tools';
8+
import { Socials } from './pages/Socials';
99

1010
function App() {
1111
return (
@@ -16,7 +16,7 @@ function App() {
1616
<Routes>
1717
<Route index element={<Home />} />
1818
<Route path='/works' element={<Works />} />
19-
<Route path='/tools' element={<Tools />} />
19+
<Route path='/socials' element={<Socials />} />
2020
</Routes>
2121
</div>
2222

Lines changed: 5 additions & 0 deletions
Loading
12.9 KB
Loading
8.89 KB
Loading
27.5 KB
Loading
Lines changed: 8 additions & 0 deletions
Loading

src/components/Footer.tsx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
/*
2+
This is super evil footer.
3+
I could update every year manually.
4+
But like... Why not automatically lol.
5+
*/
6+
17
const Footer = () => {
8+
const currentYear = new Date().getFullYear();
29

310
return <>
411
<br/><br/>
512
<footer className="z-50 flex justify-center fixed inset-x-0 bottom-0 p-2 bg-gray-800">
6-
<p className="text-xs">@2025 Va0ck</p>
13+
<p className="text-xs">@{currentYear} Va0ck</p>
714
</footer>
815
</>
916
}

src/components/Navbar.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import DevforumLogo from '../assets/icons/Navbar/Roblox_Devforum_Logo.svg'
44
import GithubLogo from '../assets/icons/Navbar/github-mark-white.svg'
55
import DiscordLogo from '../assets/icons/Navbar/discord-icon.svg'
66
import { useState, useLayoutEffect } from 'react';
7+
import { Link } from 'react-router-dom'
78

89
const Navbar = () => {
910
const [width, setWidth] = useState(0);
@@ -13,7 +14,7 @@ const Navbar = () => {
1314
function updateSize() {
1415
setWidth(window.innerWidth);
1516

16-
if (width < 480){
17+
if (width < 530){
1718
setDisplayLinks(false);
1819
} else {
1920
setDisplayLinks(true);
@@ -26,10 +27,10 @@ const Navbar = () => {
2627
}, [width]);
2728

2829
return (<nav className='nav'>
29-
<a href="/" className="site-title hover:drop-shadow-[0_0_2em_rgba(255,255,255,1)] duration-300">Va0ck</a>
30+
<Link to="/" className="site-title hover:drop-shadow-[0_0_2em_rgba(255,255,255,1)] duration-300">Va0ck</Link>
3031
<ul className='links'>
31-
<li><a href="/works">Works</a></li>
32-
<li><a href="/tools">Tools</a></li>
32+
<li><Link to="/works">Works</Link></li>
33+
<li><Link to="/socials">Socials</Link></li>
3334
</ul>
3435

3536
{displayLinks ? (

0 commit comments

Comments
 (0)