Skip to content

Commit e6f0dca

Browse files
committed
Solve merge conflicts
2 parents 6e5d09c + da599d0 commit e6f0dca

File tree

6 files changed

+84
-8
lines changed

6 files changed

+84
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1717
### Added
1818

1919
- new footer and newsletter components styling
20-
- new nav component styling with intersection API
20+
- TwoColumn.js component
21+
- decoration components
22+
- nav component styling and intersection api
2123

2224
### Fixed
2325

components/Bracket.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export default function Bracket(props) {
2+
const { className, fill = '#FFCC4C' } = props;
3+
4+
return (
5+
<svg
6+
width="179"
7+
height="366"
8+
viewBox="0 0 179 366"
9+
xmlns="http://www.w3.org/2000/svg"
10+
className={className}
11+
>
12+
<path
13+
d="M124.414 81.1248C124.414 23.5658 96.8124 2.33325e-05 40.1669 1.83804e-05C33.9874 1.78402e-05 28.4258 0.625658 23.8941 1.66838C7.20943 5.63078 1.11774e-07 15.641 -9.27436e-07 27.5282C-2.03957e-06 40.2496 5.76754 47.7573 17.3026 50.8855C19.7745 51.7197 22.4522 52.1368 25.13 52.3453C46.5524 54.8479 54.5857 64.6496 54.5857 89.4667L54.5857 125.754C54.5857 155.993 75.5961 175.179 113.085 179.35L113.085 187.067C75.5961 191.238 54.5857 210.424 54.5857 240.663L54.5857 276.533C54.5857 301.559 46.5523 311.361 25.13 313.655C22.2462 314.072 19.5684 314.697 17.0966 315.115C5.56154 318.451 -2.70171e-05 325.959 -2.8111e-05 338.472C-2.90955e-05 349.733 6.38547 359.535 21.2163 363.706C26.3659 365.166 32.7514 366 40.1668 366C96.8124 366 124.414 342.434 124.414 285.084L124.414 258.598C124.414 234.824 133.066 222.728 155.724 218.349C170.967 215.429 179 205.21 179 183.313C179 163.501 171.173 150.779 155.724 148.068C132.654 143.689 124.414 131.593 124.414 107.819L124.414 81.1248Z"
14+
fill={fill}
15+
/>
16+
</svg>
17+
);
18+
}

components/Stick.js

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
export default function Stick(props) {
2+
const { className, fill = '#19AAD1' } = props;
3+
4+
return (
5+
<svg
6+
width="172"
7+
height="412"
8+
viewBox="0 0 172 412"
9+
xmlns="http://www.w3.org/2000/svg"
10+
className={className}
11+
>
12+
<path
13+
d="M36.5812 412C56.8032 412 68.1638 402.875 74.2985 382.343L169.955 49.0476C171.318 44.4851 172 40.1506 172 34.9037C172 13.9158 157.231 0 134.964 0C115.424 0 103.836 9.80952 97.4742 31.4817L2.04491 364.549C0.908851 368.656 0 373.446 0 378.921C0 397.172 12.9511 412 36.5812 412Z"
14+
fill={fill}
15+
/>
16+
</svg>
17+
);
18+
}

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)