Skip to content

Commit

Permalink
feat: Add student edition page
Browse files Browse the repository at this point in the history
  • Loading branch information
jaesius committed Apr 23, 2021
1 parent 6bfff41 commit 7584600
Show file tree
Hide file tree
Showing 4 changed files with 214 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/components/FeatherIcon.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,35 @@ const ICONS = {
<circle cx="12" cy="12" r="3" />
</>
),
'hard-drive': (
<>
<line x1="22" y1="12" x2="2" y2="12" />
<path d="M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" />
<line x1="6" y1="16" x2="6.01" y2="16" />
<line x1="10" y1="16" x2="10.01" y2="16" />
</>
),
database: (
<>
<ellipse cx="12" cy="5" rx="9" ry="3" />
<path d="M21 12c0 1.66-4 3-9 3s-9-1.34-9-3" />
<path d="M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5" />
</>
),
cpu: (
<>
<rect x="4" y="4" width="16" height="16" rx="2" ry="2" />
<rect x="9" y="9" width="6" height="6" />
<line x1="9" y1="1" x2="9" y2="4" />
<line x1="15" y1="1" x2="15" y2="4" />
<line x1="9" y1="20" x2="9" y2="23" />
<line x1="15" y1="20" x2="15" y2="23" />
<line x1="20" y1="9" x2="23" y2="9" />
<line x1="20" y1="14" x2="23" y2="14" />
<line x1="1" y1="9" x2="4" y2="9" />
<line x1="1" y1="14" x2="4" y2="14" />
</>
),
};

FeatherIcon.propTypes = {
Expand Down
Binary file added src/images/students/students-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 120 additions & 0 deletions src/pages/students.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
import React from 'react';
import cx from 'classnames';
import PropTypes from 'prop-types';
import DevSiteSeo from '../components/DevSiteSeo';
import { Button } from '@newrelic/gatsby-theme-newrelic';
import PageLayout from '../components/PageLayout';
import ExternalLink from '../components/ExternalLink';
import FeatherIcon from '../components/FeatherIcon';
import studentsHeader from '../images/students/students-banner.png';
import uptimeEverythingHeader from '../images/developer-champion/uptime-everything-header-image.jpg';
import styles from './students.module.scss';

const StudentsPage = ({ location }) => {
return (
<>
{/* <DevSiteSeo location={location} /> */}
<PageLayout type={PageLayout.TYPE.SINGLE_COLUMN}>
<PageLayout.Header title="New Relic Student Edition" />
<PageLayout.Content>
<section className={cx(styles.section, styles.twoColumn)}>
<div>
<p>
Traditional computer sciences are great, but hands-on experience
with modern platforms positions you as a more competitive
candidate. The New Relic Student Edition gives you access to the
same industry tools that observability professionals use -- for
free.
</p>
<p>
Whether you’re just getting started with your engineering
career, looking to pivot, or an educator ready to share the
value of modern technology - we’ve got you covered. From access
to the best-in-class observability platform, training, and
certifications, you’ll have access to everything you need to
compete in the market.
</p>
<p>
We are excited to announce the New Relic Student Edition as an
exclusive offer in the GitHub Student Pack. Github created the
Student Pack to help students ship software like a pro, and with
New Relic, the Student Edition adds to making that possible.
</p>
<p>
To get access to the Student Edition,{' '}
<a href="/">sign up for a free account</a> and verify your
student status using the GitHub Student Pack
</p>
</div>
<img
className={styles.img}
src={studentsHeader}
alt="student edition header"
/>
</section>
<section className={styles.offerSection}>
<h2>What does the Student Edition offer?</h2>
<p>
There's no substitute for hands-on experience. That’s why we
designed the New Relic Student Edition,
<br /> which gives students and educators full access to New Relic
One, including:
</p>
</section>
<section className={cx(styles.section, styles.championProgram)}>
<div className={styles.point}>
<FeatherIcon
className={styles.pointIcon}
name="users"
size="4rem"
/>
<h4>Three Full Users</h4>
<p>
Work with your friends and classmates like a real-world
production team
</p>
</div>
<div className={styles.point}>
<FeatherIcon
className={styles.pointIcon}
name="database"
size="4rem"
/>
<h4>500 GB/month of Data Ingest</h4>
<p>
Collect, analyze, and alert on all your metrics, events, logs,
and traces from any source
</p>
</div>
<div className={styles.point}>
<FeatherIcon
className={styles.pointIcon}
name="cpu"
size="4rem"
/>
<h4>Free Tier AI</h4>
<p>
Instantly detect, diagnose, and resolve issues before they
become a problem
</p>
</div>
<Button
as={ExternalLink}
className={styles.nominateButton}
href="https://forms.gle/Zkdub5e1x4MNqSKW9"
variant={Button.VARIANT.PRIMARY}
>
Sign up for a free account{' '}
</Button>
</section>
</PageLayout.Content>
</PageLayout>
</>
);
};

StudentsPage.propTypes = {
location: PropTypes.object.isRequired,
};

export default StudentsPage;
65 changes: 65 additions & 0 deletions src/pages/students.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.section {
&:not(:last-child) {
margin-bottom: 4rem;
}
}

.twoColumn {
display: grid;
grid-template-columns: repeat(2, calc(50% - 1rem));
grid-gap: 2rem;

@media (max-width: 760px) {
grid-template-columns: 1fr;
}
}

.offerSection {
text-align: center;
margin: 6rem 0 2.5rem;

h2{
text-align: center;
}
}

.img {
width: 100%;
}

.championProgram {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 2rem;

@media (max-width: 760px) {
display: block;
text-align: center;
}
}

.point {
text-align: center;
max-width: 400px;
margin: auto;

@media (max-width: 760px) {
margin-bottom: 40px;
}
}

.pointIcon {
--feather-icon-stroke-width: 1;

margin-bottom: 2rem;
color: var(--color-brand-500);
}

.nominateButton {
grid-column: 2;
justify-self: center;
}

.externalLinkIcon {
margin-left: 0.5rem;
}

0 comments on commit 7584600

Please sign in to comment.