mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-07-14 05:10:37 -04:00
feat: navbar and main components added
This commit is contained in:
parent
d581ed19e6
commit
aa7d7e8656
20 changed files with 4629 additions and 0 deletions
16
shopping-cart/src/components/main.jsx
Normal file
16
shopping-cart/src/components/main.jsx
Normal file
|
@ -0,0 +1,16 @@
|
|||
import styles from "./main.module.css";
|
||||
|
||||
export default function Main(props) {
|
||||
return (
|
||||
<main>
|
||||
<div>
|
||||
<h1 className={styles.mainHeading}>We help you skill up faster</h1>
|
||||
<p>
|
||||
Trying to pivot into tech? There's a lot to figure out. We can
|
||||
help you navigate the path. Fast results and guaranteed growth.
|
||||
</p>
|
||||
<button>BOOK INTRO CALL</button>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
3
shopping-cart/src/components/main.module.css
Normal file
3
shopping-cart/src/components/main.module.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
main {
|
||||
padding: 0 1rem;
|
||||
}
|
20
shopping-cart/src/components/navbar.jsx
Normal file
20
shopping-cart/src/components/navbar.jsx
Normal file
|
@ -0,0 +1,20 @@
|
|||
import styles from "./navbar.module.css";
|
||||
|
||||
export default function Navbar(props) {
|
||||
return (
|
||||
<nav className={styles.nav}>
|
||||
<h1>Smig.Tech</h1>
|
||||
<Nav />
|
||||
<button>I'm Ready</button>
|
||||
</nav>
|
||||
);
|
||||
}
|
||||
|
||||
function Nav() {
|
||||
return (
|
||||
<ul className={styles.nav}>
|
||||
<li>home</li>
|
||||
<li>shop</li>
|
||||
</ul>
|
||||
);
|
||||
}
|
11
shopping-cart/src/components/navbar.module.css
Normal file
11
shopping-cart/src/components/navbar.module.css
Normal file
|
@ -0,0 +1,11 @@
|
|||
nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 0 1rem;
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
list-style-type: none;
|
||||
gap: 20px;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue