Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules/
client/node_modules/
server/node_modules/
__pycache__/
*.pyc
*.pyo
24 changes: 5 additions & 19 deletions client/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,17 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { Link } from "react-router-dom";

export default function Navbar() {
return (
<nav
style={{
padding: '1rem',
backgroundColor: '#f8f9fa',
display: 'flex',
justifyContent: 'flex-start',
alignItems: 'center',
gap: '20px', // space between links
boxShadow: '0 2px 5px rgba(0,0,0,0.1)',
fontWeight: 'bold',
}}
>
<Link to="/" style={{ textDecoration: 'none', color: '#333' }}>
<nav className="navbar">
<Link to="/" className="navbar-link">
Home
</Link>
<Link to="/courses" style={{ textDecoration: 'none', color: '#333' }}>
<Link to="/courses" className="navbar-link">
Courses
</Link>
<Link to="/quiz" style={{ textDecoration: 'none', color: '#333' }}>
<Link to="/quiz" className="navbar-link">
Quiz
</Link>
</nav>
);
}


39 changes: 35 additions & 4 deletions client/src/index.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* client/src/index.css */
/* client/src/index.css */

/* src/index.css */
.red-bordered-heading {
border: 2px solid red;
Expand All @@ -8,6 +8,37 @@
body {
margin: 0;
font-family: Arial, sans-serif;

}


/* Navbar */
.navbar {
padding: 1rem;
background-color: #f8f9fa;
display: flex;
justify-content: flex-start;
align-items: center;
gap: 20px;
gap: 20px; /* space between links */
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
font-weight: bold;
}

.navbar-link {
text-decoration: none;
color: #333;
}

/* Mobile & tablet — links spread across full width */
@media (max-width: 768px) {
.navbar {
justify-content: space-around;
gap: 0;
padding: 0.75rem 0;
}

.navbar-link {
flex: 1;
text-align: center;
padding: 0.5rem 0;
}
}