Skip to content

Commit b663caf

Browse files
committed
added TwoColumn component into the Homepage
1 parent cda72bf commit b663caf

File tree

5 files changed

+12
-2
lines changed

5 files changed

+12
-2
lines changed

components/TwoColumn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default function TwoColumn(props) {
1111
<h2 className={styles.title}>{title}</h2>
1212
<p className={styles.content}>{content}</p>
1313
<Button
14-
text="Learn More"
14+
text="Learn more"
1515
link="/about-us"
1616
className={buttonStyles.btn}
1717
/>

pages/index.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import Link from 'next/link';
2+
import TwoColumn from '../components/TwoColumn';
23
import styles from '../styles/Home.module.scss';
34

45
export default function Home() {
@@ -12,8 +13,14 @@ export default function Home() {
1213
more...
1314
</p>
1415
</div>
15-
<hr className={styles.divider} />
1616

17+
<TwoColumn
18+
title="Let's grow together."
19+
image="/images/home-two-column-image.jpg"
20+
content="The Web Dev Path is a team of professional developers project that aims to provide a comprehensive path for people who seek to begin their web development journey. "
21+
/>
22+
23+
<hr className={styles.divider} />
1724
<h2 className={styles.centerText}>
1825
Would you answer "yes" to any of these questions?
1926
</h2>
209 KB
Loading

styles/Button.module.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
align-items: center;
1616
text-align: center;
1717
min-width: 256px;
18+
display: inline-block;
1819
}
1920

2021
.btn:hover {

styles/TwoColumn.module.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
.container {
44
width: 100vw;
55
margin: 0 calc(50% - 50vw);
6+
background-color: #8cd5e8;
67
}
78
.inner {
89
padding: 80px 0;
@@ -22,6 +23,7 @@
2223
line-height: 80px;
2324
color: #292929;
2425
margin: 0;
26+
max-width: 624px;
2527
}
2628
.itemLeft {
2729
width: 50%;

0 commit comments

Comments
 (0)