Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f27426

Browse files
tleismanSchaeStewart
authored andcommitted
Improved page component (codeforgso#45)
* updated setup.md for more clarity in new user setup * Added h2 to styles and started adding projects. * Added title to page component and modified projects * forgot to stage changes on project page
1 parent f7cdd03 commit 1f27426

File tree

9 files changed

+1382
-1301
lines changed

9 files changed

+1382
-1301
lines changed

components/page.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const Page = ({ children, title = '' }) => (
1212
<Nav />
1313
<JoinButton location="top" />
1414
<div className="section">
15+
<h1 className="title">{title}</h1>
1516
<div className="container">{children}</div>
1617
</div>
1718
<JoinButton location="bottom" />

package-lock.json

Lines changed: 1361 additions & 1284 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/about.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import '../styles.scss'
44

55
const About = () => (
66
<Page title="About">
7-
<p className="title">About</p>
87
<div className="content">
98
<div className="leftcolumn">
109
<p>The Code for America mission is, in part, to</p>

pages/conduct.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import '../styles.scss'
44

55
const Conduct = () => (
66
<Page title="Code of Conduct">
7-
<p className="title">Code of Conduct</p>
87
<div>
98
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
109
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim

pages/contact.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import '../styles.scss'
44

55
const Contact = () => (
66
<Page title="Contact Us">
7-
<p className="title">Contact Us</p>
87
<div>
98
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do
109
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim

pages/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Page from '../components/page'
33
import '../styles.scss'
44
const Home = () => (
55
<Page title="Home">
6-
<p className="title">Home</p>
76
<div className="content">
87
<p className="subtitle">
98
Code for Greensboro works to improve the way our community uses

pages/join.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import '../styles.scss'
44

55
const Join = () => (
66
<Page title="Join Us">
7-
<p className="title">Join Us</p>
87
<div>
98
<h2>MeetUp</h2>
109
<div>

pages/projects.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,33 @@ import Page from '../components/page'
33
import '../styles.scss'
44

55
const Projects = () => (
6-
<Page title="Our Projects">
7-
<p className="title">Our Projects</p>
6+
<Page title="Our Projects">
87
<div>
98
<h2>Re-entry Resources</h2>
10-
<div>
11-
A website providing information relevant and valuable to
9+
<div className='projects'>
10+
<p> A website providing information relevant and valuable to
1211
residents reentering communities after a period of
1312
incarceration. Project initiated by Code for Asheville and
14-
scaled by Open NC.
15-
</div>
16-
<div>
13+
scaled by Open NC.</p>
1714
{' '}
18-
<a href="https://github.com/Open-NC/reentry-resources-hub">
15+
<p>
16+
<a href="https://github.com/Open-NC/reentry-resources-hub">
1917
{' '}
20-
Open NC Repository{' '}
21-
</a>
22-
</div>
18+
Re-entry Resources Repository (Open NC){' '}
19+
</a>
20+
</p>
21+
</div>
22+
<br/>
2323
<h2>GoVoteGSO</h2>
24-
<div>
24+
<div className='projects'>
2525
A web app providing local residents the ability to look up voter
2626
registration status and polling place information by address.
2727
Project initiated in partnership with the League of Women{"'"}s
2828
Voters Triad.{' '}
29+
<br/>
30+
<a href="https://github.com/codeforgso/GoVote">
31+
GoVoteGSO Repository
32+
</a>
2933
</div>
3034
<div>
3135
{' '}

styles.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,7 @@ body {
151151
.alignment-left {
152152
margin: 0;
153153
}
154+
155+
.projects {
156+
padding-left: 2em;
157+
}

0 commit comments

Comments
 (0)