Skip to content

Commit

Permalink
chore: move event section into emotion styles
Browse files Browse the repository at this point in the history
  • Loading branch information
jerelmiller committed Sep 4, 2020
1 parent 3f43af7 commit c7db855
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 24 deletions.
40 changes: 21 additions & 19 deletions src/pages/nerd-days.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const NerdDaysPage = () => {
</ul>
</section>

<section className={cx(styles.speakersSection, styles.eventSection)}>
<Section className={cx(styles.speakersSection)}>
<h3 className={cx(styles.sectionHeading)}>Speaker line up</h3>
<p className={cx(styles.sectionDescription)}>
Nulla vitae elit libero, a pharetra augue nullam id dolor id nibh
Expand Down Expand Up @@ -193,15 +193,11 @@ const NerdDaysPage = () => {
</Surface>
))}
</ul>
</section>
</Section>

<section
<Section
css={alternateSection}
className={cx(
styles.tracksSection,
styles.eventSection,
styles.alternateSection
)}
className={cx(styles.tracksSection, styles.alternateSection)}
>
<h3 className={cx(styles.sectionHeading)}>Tracks</h3>
<p className={cx(styles.sectionDescription)}>
Expand Down Expand Up @@ -255,9 +251,9 @@ const NerdDaysPage = () => {
<h5 className={cx(styles.tracksListItemName)}>fundamentals</h5>
</li>
</ul>
</section>
</Section>

<section className={cx(styles.agendaSection, styles.eventSection)}>
<Section className={cx(styles.agendaSection)}>
<h3 className={cx(styles.sectionHeading)}>Agenda</h3>
<p className={cx(styles.sectionDescription)}>
We’ve got a packed schedule with thought-leaders of their
Expand Down Expand Up @@ -582,15 +578,11 @@ const NerdDaysPage = () => {
</h4>
</div>
</div>
</section>
</Section>

<section
<Section
css={alternateSection}
className={cx(
styles.engagementSection,
styles.eventSection,
styles.alternateSection
)}
className={cx(styles.engagementSection, styles.alternateSection)}
>
<h3 className={cx(styles.sectionHeading)}>
Engage with the developer community
Expand Down Expand Up @@ -662,13 +654,13 @@ const NerdDaysPage = () => {
<img
className={cx(styles.sponsorLogo)}
src={hopinLogo}
alt="Hoping logo"
alt="Hopin logo"
/>
<p className={cx(styles.sponsorLogoCaption)}>
Event powered by Hopin
</p>
</a>
</section>
</Section>
</PageLayout.Content>
</PageLayout>
</>
Expand Down Expand Up @@ -698,6 +690,16 @@ const speakers = [
},
];

const Section = (props) => (
<section
css={css`
padding: 4rem 0;
position: relative;
`}
{...props}
/>
);

const CtaButton = (props) => (
<Button
as={ExternalLink}
Expand Down
5 changes: 0 additions & 5 deletions src/pages/nerd-days.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,6 @@
letter-spacing: 0.5px;
}

.eventSection {
padding: 65px 0 65px;
position: relative;
}

.sectionHeading {
font-size: 28px;
text-align: center;
Expand Down

0 comments on commit c7db855

Please sign in to comment.