React

by Abdul Ahmad

HTML

<div id="app"></div>

SCSS

$text-color: #292d31;
$color-secondary: #52658f;

body {
  padding: 0;
  font-family: Helvetica;
  color: $text-color;
}

ul {
  list-style: inside;
}

li {
  margin-top: 10px;
}

.quote {
  font-style: italic;
  color: lighten($text-color, 20%);
  box-sizing: border-box;
  padding: 0 20px;
  margin-top: 15px;
  
  &:first-child {
    margin-top: 0;
  }
}

.list-item {
  margin-top: 15px;
  display: flex;
  
  &:first-child {
    margin-top: 0;
  }
}

.list-item__bullet {
  flex-grow: 0;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: $color-secondary;
  margin-right: 15px;
  margin-top: 11px;
}

.list-item__text {
  flex-grow: 1;
  flex-shrink: 1;
  font-size: 18px;
  line-height: 28px;
}

.page-section {
  max-width: 1015px;
  margin: 0 auto;
  padding: 100px 15px;
  box-sizing: border-box;
}

.page-section-title {
  font-size: 35px;
  line-height: 42px;
  margin: 0;
  margin-top: 50px;
  font-weight: bold;
  
  &:first-child {
    margin-top: 0;
  }
}

.page-section-subtitle {
  margin: 0;
  margin-top: 40px;
  font-size: 23px;
  line-height: 30px;
  font-weight: normal;
  color: $color-secondary;
  
  &:first-child {
    margin-top: 0;
  }
}

.page-section-paragraph {
  font-size: 18px;
  line-height: 28px;
  margin-top: 15px;
  
  &:first-child {
    margin-top: 0px;
  }
}

.page-section-half-image-placeholder {
  width: 300px;
  height: 300px;
  border-radius: 100%;
  flex-grow: 0;
  flex-shrink: 0;
  background: $text-color;
}

.page-section-horizontal-halves {
  display: flex;
  justify-content: space-between;
  
  .page-section-horizontal-half:first-child {
    margin-right: 50px;
  }
  
  .page-section-horizontal-half:last-child {
    margin-left: 50px;
  }
}

.page-section-content {
  margin-top: 30px;
  
  &:first-child {
    margin-top: 0;
  }
}

React

class TodoApp extends React.Component {
  render() {
    return (
      <div>
        <WhatIsPx />
        <ProblemsWithSystem />
      </div>
    )
  }
}

class WhatIsPx extends React.Component {
	render() {
    return (
    	<PageSection>
        <PageSectionHorizontalHalves>
          <PageSectionHorizontalHalf>
            <PageSectionTitle>
              What is PX
            </PageSectionTitle>
            <PageSectionParagraph>
              PolitiXentral is an app that provides voters with information on their politicians and the ongoing political races. The app is broken up in two sections: current elected officials and current/upcoming political races and who the candidates in each race are!
            </PageSectionParagraph>
            <PageSectionSubtitle>
              The Purpose
            </PageSectionSubtitle>
            <PageSectionParagraph>
              Our mission is to increase voter turnout through education and exposure, increasing awareness among voters.
            </PageSectionParagraph>
            <PageSectionSubtitle>
              Why it's special
            </PageSectionSubtitle>
            <PageSectionParagraph>
              Many features include messaging politicians (both elected and candidates), events/voting reminders, and most importantly,  it provides profiles for politicians to express their platform and mission for the city!
            </PageSectionParagraph>
          </PageSectionHorizontalHalf>
          <PageSectionHorizontalHalf>
            <PageSectionHalfImagePlaceholder />
          </PageSectionHorizontalHalf>
        </PageSectionHorizontalHalves>
    	</PageSection>
    );
  }
}

class ProblemsWithSystem extends React.Component {
	render() {
    return (
    	<PageSection extraClass='problems-with-system'>
        <PageSectionHorizontalHalves>
          <PageSectionHorizontalHalf>
            <PageSectionTitle>
              The Problems with the Current Political System
           ...