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
23 changes: 5 additions & 18 deletions client/src/components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,31 +1,18 @@
import React from 'react';
import { Link } from 'react-router-dom';
import styles from './Navbar.module.css';

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={styles.navbar}>
<Link to="/" className={styles.link}>
Home
</Link>
<Link to="/courses" style={{ textDecoration: 'none', color: '#333' }}>
<Link to="/courses" className={styles.link}>
Courses
</Link>
<Link to="/quiz" style={{ textDecoration: 'none', color: '#333' }}>
<Link to="/quiz" className={styles.link}>
Quiz
</Link>
</nav>
);
}


15 changes: 15 additions & 0 deletions client/src/components/Navbar.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.navbar {
padding: 1rem;
background-color: #f8f9fa;
display: flex;
justify-content: flex-start;
align-items: center;
gap: 20px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
font-weight: bold;
}

.link {
text-decoration: none;
color: #333;
}
9 changes: 1 addition & 8 deletions client/src/index.css
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
/* client/src/index.css */

/* src/index.css */
.red-bordered-heading {
border: 2px solid red;
}
/* Global styles only — component styles live in *.module.css files */

body {
margin: 0;
font-family: Arial, sans-serif;

}

8 changes: 4 additions & 4 deletions client/src/pages/Home.jsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React from 'react';
import styles from './Home.module.css';

function Home() {
return (
<div>
<h1 className="red-bordered-heading">Welcome to DevStations E-Learning Platform</h1>
</div>
<div>
<h1 className={styles.redBorderedHeading}>Welcome to DevStations E-Learning Platform</h1>
</div>
);
}

Expand Down
3 changes: 3 additions & 0 deletions client/src/pages/Home.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.redBorderedHeading {
border: 2px solid red;
}