Skip to content

Commit f9acdc3

Browse files
committed
init commit
1 parent 096ae93 commit f9acdc3

4 files changed

Lines changed: 38 additions & 17 deletions

File tree

src/app/components/Footer.jsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ export default function Footer() {
66

77
<>
88

9-
<div className="text-center py-2">
9+
<footer className="w-full bg-gray-100 text-center px-4 py-4">
10+
<div className="max-w-screen-lg mx-auto">
11+
<span className="block text-sm text-gray-500">
12+
© 2025 Abdiaziz. All Rights Reserved. Built with <span role="img" aria-label="heart">❤️</span>
13+
</span>
14+
</div>
15+
</footer>
1016

11-
<span className="block text-sm text-center text-gray-500 py-2 ">
12-
© 2025 Abdiaziz. All Rights Reserved. Built with{" ❤️"}
13-
</span>
14-
15-
16-
</div>
1717

1818

1919
</>

src/app/components/Navbar.jsx

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
'use client'
2-
3-
import React from 'react'
2+
import { useState } from "react";
43

54
export default function Navbar() {
5+
const [isOpen, setIsOpen] = useState(false);
6+
67
return (
7-
<nav className="flex items-center justify-between px-24 py-4 shadow bg-blue-950">
8-
<h1 className="text-xl font- text-white text-center">JS Projects</h1>
9-
<div className='flex items-center gap-5'>
10-
<a href='#home' className='text-white hover:text-blue-500'> Home </a>
11-
<a href='#projects' className='text-white hover:text-blue-500'>Projects</a>
8+
<nav className="bg-blue-950 px-6 md:px-24 py-4 shadow">
9+
<div className="flex items-center justify-between">
10+
<h1 className="text-xl font-bold text-white">JS Projects</h1>
11+
12+
{/* Hamburger button */}
13+
<button
14+
className="text-white md:hidden"
15+
onClick={() => setIsOpen(!isOpen)}
16+
>
17+
18+
</button>
19+
20+
{/* Desktop Links */}
21+
<div className="hidden md:flex items-center gap-5">
22+
<a href="#home" className="text-white hover:text-blue-500">Home</a>
23+
<a href="#projects" className="text-white hover:text-blue-500">Projects</a>
24+
</div>
1225
</div>
26+
27+
{/* Mobile Links */}
28+
{isOpen && (
29+
<div className="flex flex-col mt-3 gap-2 md:hidden">
30+
<a href="#home" className="text-white hover:text-blue-500">Home</a>
31+
<a href="#projects" className="text-white hover:text-blue-500">Projects</a>
32+
</div>
33+
)}
1334
</nav>
14-
)
35+
);
1536
}

src/app/components/Psection.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export default function Home() {
7373
{
7474
title: 'Quiz App',
7575
description: 'Simple quiz app in vanilla JS.',
76-
image: '/images/quiz.png',
76+
image: './images/quiz.png',
7777
liveLink: 'https://0paziz.github.io/QuizApp/',
7878
githubLink: 'https://github.com/0paziz/QuizApp',
7979
category: 'Vanilla JS',

src/app/globals.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ html {
2525

2626

2727
.bgurl{
28-
background-image: url('/images/bg.svg');
28+
background-image: url('./images/bg.svg');
2929
}

0 commit comments

Comments
 (0)