Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
40fe81d
📦 NEW: logo & name
msaaddev Oct 7, 2020
c4e49ff
📦 NEW: images
msaaddev Oct 7, 2020
3c6bcd0
👌 IMPROVE: layout
msaaddev Oct 7, 2020
fdf8784
📦 NEW: single data point
msaaddev Oct 8, 2020
4301ca4
📦 NEW: icons
msaaddev Oct 8, 2020
73e65c8
📦 NEW: pod members data
msaaddev Oct 8, 2020
245f1e4
📦 NEW: responsive styles
msaaddev Oct 8, 2020
14c005e
📦 NEW: linkedin link
msaaddev Oct 8, 2020
13a24d4
📦 NEW: pod leader bio
msaaddev Oct 8, 2020
e59a216
📦 NEW: arlyn info
msaaddev Oct 8, 2020
7aeb8a2
📦 NEW: read more links
msaaddev Oct 8, 2020
a1242cc
📦 NEW: footer & links
msaaddev Oct 8, 2020
43100ea
📦 NEW: images
msaaddev Oct 9, 2020
7c627ae
📦 NEW: pod members info
msaaddev Oct 9, 2020
51b4fc4
📦 NEW: bios
msaaddev Oct 9, 2020
9b2037b
📦 NEW: popup box & added bio
msaaddev Oct 9, 2020
1395a66
👌 IMPROVE: title
msaaddev Oct 9, 2020
9d01cb7
👌 IMPROVE: title
msaaddev Oct 9, 2020
313ef7a
📦 NEW: project condition
msaaddev Oct 9, 2020
d353ce9
📦 NEW: conditional rendering
msaaddev Oct 9, 2020
5dcce22
📦 NEW: sample image
msaaddev Oct 9, 2020
b1e2f2d
📦 NEW: project section
msaaddev Oct 9, 2020
4c69a90
🐛 FIX: location
msaaddev Oct 9, 2020
a385fff
👌 IMPROVE: data
msaaddev Oct 9, 2020
4d24327
👌 IMPROVE: transition speed
msaaddev Oct 9, 2020
63d8477
📦 NEW: meta tags
msaaddev Oct 9, 2020
893bc7e
📦 NEW: license
msaaddev Oct 9, 2020
e417201
📖 DOC: readme
msaaddev Oct 9, 2020
ee30663
🐛 FIX: link
msaaddev Oct 9, 2020
f6addd8
👌 IMPROVE: remove unnecessary file
msaaddev Oct 9, 2020
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
Prev Previous commit
Next Next commit
👌 IMPROVE: layout
  • Loading branch information
msaaddev committed Oct 7, 2020
commit 3c6bcd07419a974c0b2583ce991dc3fc772bdfa7
20 changes: 20 additions & 0 deletions components/Card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { useState, useEffect } from 'react';
import styles from '../styles/Card.module.css';

const Card = ({ url, name, pod }) => {
const [podClass, setPodClass] = useState(styles.card);
useEffect(() => {
if (pod === true) {
setPodClass(styles.pod);
}
}, []);

return (
<div className={podClass}>
<img src={url} alt={name} />
<h3>{name}</h3>
</div>
);
};

export default Card;
12 changes: 12 additions & 0 deletions components/Coding_Crow.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import styles from '../styles/Coding_Crow.module.css';

const Coding_Crow = () => {
return (
<div className={styles.pod_img}>
<img src='/images/logo.png' alt='coding crow' />
<h1>Coding Crows</h1>
</div>
);
};

export default Coding_Crow;
30 changes: 30 additions & 0 deletions components/Pod.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import { useState } from 'react';
import Card from './Card';
import styles from '../styles/Pod.module.css';

const Pod = () => {
const [podMembers] = useState([
{ name: 'Angelina Gasharova', url: '/images/Angelina_Gasharova.jpg' },
{ name: 'Saad Irfan', url: '/images/saad.jpg' },
{ name: 'Aneesh Kodali', url: '/images/Aneesh_Kodali.jpeg' },
{ name: 'Nkosilathi_Tauro', url: '/images/Nkosilathi_Tauro.png' },
]);

return (
<div className={styles.pod_details}>
<h2>Meet the pod</h2>
<div className={styles.pod_members}>
{podMembers.map(member => (
<Card
url={member.url}
name={member.name}
pod={true}
key={Math.floor(Math.random() * 10000)}
/>
))}
</div>
</div>
);
};

export default Pod;
13 changes: 13 additions & 0 deletions components/Pod_Leader.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import styles from '../styles/Pod_leader.module.css';
import Card from './Card';

const Pod_Leader = () => {
return (
<div className={styles.pod_leader}>
<h2>Meet our pod leader</h2>
<Card url='/images/arsalan.jpg' name='Arslan Khattak' pod='' />
</div>
);
};

export default Pod_Leader;
13 changes: 6 additions & 7 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import SEO from '../components/Seo';
import styles from '../styles/Home.module.css';
import Pod_Leader from '../components/Pod_Leader';
import Pod from '../components/Pod';
import Coding_Crow from '../components/Coding_Crow';

export default function Home() {
return (
<>
<SEO />
<div className={styles.main}>
<div className={styles.pod_img}>
<img src='/images/logo.png' alt='coding crow' />
<h1>Coding Crows</h1>
</div>
</div>
<Coding_Crow />
<Pod_Leader />
<Pod />
</>
);
}
53 changes: 53 additions & 0 deletions styles/Card.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.card {
width: 300px;
height: 400px;
margin-top: 50px;
border-radius: 5px;
box-shadow: #9e9e9e 1px 1px 10px;
transition: all 0.5s;
display: flex;
flex-direction: column;
align-items: center;
background-color: #000000;
}

.card:hover {
cursor: pointer;
box-shadow: #9e9e9e 1px 1px 40px;
}

.card img,
.pod img {
width: 250px;
height: 250px;
border-radius: 200px;
margin-top: 30px;
}

.card h3 {
font-size: 1.5rem;
color: #ffffff;
}

.pod {
width: 300px;
height: 400px;
margin: 50px 25px 0px 25px;
border-radius: 5px;
box-shadow: #ffffff 1px 1px 10px;
transition: all 0.5s;
display: flex;
flex-direction: column;
align-items: center;
background-color: #ffffff;
}

.pod:hover {
cursor: pointer;
box-shadow: #ffffff 1px 1px 20px;
}

.pod h3 {
font-size: 1.5rem;
color: #000000;
}
6 changes: 4 additions & 2 deletions styles/Home.module.css → styles/Coding_Crow.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
display: flex;
flex-direction: column;
align-items: center;
margin-top: 150px;
justify-content: center;
color: #ffffff;
height: 100vh;
background-color: #000000;
}

.pod_img img {
Expand All @@ -12,5 +14,5 @@

.pod_img h1 {
text-transform: uppercase;
font-size: 2.5rem;
font-size: 3rem;
}
20 changes: 20 additions & 0 deletions styles/Pod.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.pod_details h2 {
font-size: 2.5rem;
text-transform: uppercase;
}

.pod_details {
background-color: #000000;
color: #ffffff;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 50px;
padding-bottom: 100px;
}

.pod_members {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
12 changes: 12 additions & 0 deletions styles/Pod_leader.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.pod_leader {
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
padding-top: 50px;
}

.pod_leader h2 {
font-size: 2.5rem;
text-transform: uppercase;
}
1 change: 0 additions & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
background-color: black;
}

a {
Expand Down