Skip to content

Commit 522cef9

Browse files
committed
added decorations to homepage
1 parent 7a302fe commit 522cef9

File tree

5 files changed

+47
-9
lines changed

5 files changed

+47
-9
lines changed

components/YellowBracket.js renamed to components/Bracket.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function YellowBracket(props) {
1+
export default function Bracket(props) {
22
const { className, fill = '#FFCC4C' } = props;
33

44
return (

components/BlueStick.js renamed to components/Stick.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function BlueStick(props) {
1+
export default function Stick(props) {
22
const { className, fill = '#19AAD1' } = props;
33

44
return (

components/TwoColumn.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,15 @@ export default function TwoColumn(props) {
3838
{title}
3939
</h2>
4040
<p className={styles.content}>{content}</p>
41-
<ButtonLink
42-
link={link}
43-
className={buttonStyles.btn}
44-
styles={styleProps.btn}
45-
>
46-
{linkText}
47-
</ButtonLink>
41+
{link && (
42+
<ButtonLink
43+
link={link}
44+
className={buttonStyles.btn}
45+
styles={styleProps.btn}
46+
>
47+
{linkText}
48+
</ButtonLink>
49+
)}
4850
</div>
4951
{image && (
5052
<div className={styles.inner__image}>

pages/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import Link from 'next/link';
2+
import Bracket from '../components/Bracket';
3+
import Stick from '../components/Stick';
24
import TwoColumn from '../components/TwoColumn';
35
import styles from '../styles/Home.module.scss';
46
import { white, primary } from '../styles/TwoColumn.module.scss';
@@ -22,6 +24,18 @@ export default function Home() {
2224
link="/about-us"
2325
/>
2426

27+
<Bracket className={styles.bracket} />
28+
29+
<TwoColumn
30+
title="Get involved."
31+
content="Web Dev Path runs on volunteers. Here are the ways you can get involved with us:"
32+
rowOrder="row-reverse"
33+
color={primary}
34+
bgColor={white}
35+
/>
36+
37+
<Stick className={styles.stick} />
38+
2539
<TwoColumn
2640
title="Nonprofit?"
2741
content="Web Dev Path can help your nonprofit with web projects of various sizes. Connect with us to find out how."

styles/Home.module.scss

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,28 @@ hr {
105105
.title {
106106
font-size: 4rem;
107107
}
108+
109+
.bracket {
110+
left: 0;
111+
position: absolute;
112+
transform: translate(20rem, -5rem);
113+
}
114+
115+
.stick {
116+
right: 0;
117+
position: absolute;
118+
transform: translate(-20rem, -5rem);
119+
}
120+
}
121+
122+
@media (max-width: $desktop-breakpoint) {
123+
.bracket {
124+
display: none;
125+
}
126+
127+
.stick {
128+
display: none;
129+
}
108130
}
109131

110132
@media (max-width: $tablet-breakpoint) {

0 commit comments

Comments
 (0)