Skip to content

Commit e9e5b7b

Browse files
committed
add meetup setup
1 parent 7647510 commit e9e5b7b

35 files changed

+293
-1133
lines changed

README.md

+12-6
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ This repo is made of 3 projects:
1212

1313
[See Demo deployed on Vercel](https://nextevents.vercel.app/)
1414

15-
[See 01-nextevents folder](https://github.com/solygambas/next-course/tree/master/01-nextevents)
15+
[See 01-nextevents folder](https://github.com/solygambas/next-course/tree/main/01-nextevents)
1616

1717
<p align="center">
18-
<img src="01-nextevents/screenshot.png">
18+
<a href="https://github.com/solygambas/next-course/tree/main/01-nextevents">
19+
<img src="01-nextevents/screenshot.png">
20+
</a>
1921
</p>
2022

2123
### Features
@@ -28,10 +30,12 @@ This repo is made of 3 projects:
2830

2931
[See Demo deployed on Vercel](https://next-dagny.vercel.app/)
3032

31-
[See 02-blog folder](https://github.com/solygambas/next-course/tree/master/02-blog)
33+
[See 02-blog folder](https://github.com/solygambas/next-course/tree/main/02-blog)
3234

3335
<p align="center">
34-
<img src="02-blog/screenshot.png">
36+
<a href="https://github.com/solygambas/next-course/tree/main/02-blog">
37+
<img src="02-blog/screenshot.png">
38+
</a>
3539
</p>
3640

3741
### Features
@@ -42,10 +46,12 @@ This repo is made of 3 projects:
4246

4347
...
4448

45-
[See 03-dashboard folder](https://github.com/solygambas/next-course/tree/master/03-dashboard)
49+
[See 03-dashboard folder](https://github.com/solygambas/next-course/tree/main/03-dashboard)
4650

4751
<p align="center">
48-
<img src="03-dashboard/screenshot.png">
52+
<a href="https://github.com/solygambas/next-course/tree/main/03-dashboard">
53+
<img src="03-dashboard/screenshot.png">
54+
</a>
4955
</p>
5056

5157
### Features

components/auth/auth-form.js

-85
This file was deleted.

components/auth/auth-form.module.css

-72
This file was deleted.

components/layout/Layout.module.css

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.main {
2+
margin: 3rem auto;
3+
width: 90%;
4+
max-width: 40rem;
5+
}

components/layout/MainNavigation.js

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import classes from './MainNavigation.module.css';
2+
3+
function MainNavigation() {
4+
5+
return (
6+
<header className={classes.header}>
7+
<div className={classes.logo}>React Meetups</div>
8+
<nav>
9+
<ul>
10+
<li>
11+
<Link to='/'>All Meetups</Link>
12+
</li>
13+
<li>
14+
<Link to='/new-meetup'>Add New Meetup</Link>
15+
</li>
16+
</ul>
17+
</nav>
18+
</header>
19+
);
20+
}
21+
22+
export default MainNavigation;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
.header {
2+
width: 100%;
3+
height: 5rem;
4+
display: flex;
5+
align-items: center;
6+
justify-content: space-between;
7+
background-color: #77002e;
8+
padding: 0 10%;
9+
}
10+
11+
.logo {
12+
font-size: 2rem;
13+
color: white;
14+
font-weight: bold;
15+
}
16+
17+
.header ul {
18+
list-style: none;
19+
margin: 0;
20+
padding: 0;
21+
display: flex;
22+
align-items: baseline;
23+
}
24+
25+
.header li {
26+
margin-left: 3rem;
27+
}
28+
29+
.header a {
30+
text-decoration: none;
31+
font-size: 1.5rem;
32+
color: #fcb8d2;
33+
}
34+
35+
.header a:hover,
36+
.header a:active,
37+
.header a.active {
38+
color: white;
39+
}

components/layout/layout.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
import { Fragment } from 'react';
2-
3-
import MainNavigation from './main-navigation';
1+
import MainNavigation from './MainNavigation';
2+
import classes from './Layout.module.css';
43

54
function Layout(props) {
65
return (
7-
<Fragment>
6+
<div>
87
<MainNavigation />
9-
<main>{props.children}</main>
10-
</Fragment>
8+
<main className={classes.main}>{props.children}</main>
9+
</div>
1110
);
1211
}
1312

components/layout/main-navigation.js

-42
This file was deleted.

components/layout/main-navigation.module.css

-55
This file was deleted.

0 commit comments

Comments
 (0)