Skip to content

Commit 0bd0347

Browse files
committed
Graduation Page updates
1 parent 06a04eb commit 0bd0347

File tree

14 files changed

+73
-14
lines changed

14 files changed

+73
-14
lines changed

TODO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
- [x] Add calls to action to homepage
1717
- [x] Add store and kids classes to homepage
1818
- [x] Mini-carousel of photos for "Take a Tour"
19-
- [ ] Port Demo Day sites (include each cohort).
19+
- [x] Port Demo Day sites (include each cohort).
2020

2121
### Illustrations
2222

gatsby-node.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ exports.createPages = ({ graphql, actions }) => {
8080
const demoDays = result.data.allContentfulDemoDay.edges
8181
demoDays.forEach(({ node: demoDay }) => {
8282
createPage({
83-
path: `/demo-day/${demoDay.slug}/`,
83+
path: `/grads/${demoDay.slug}/`,
8484
component: demoDayTemplate,
8585
context: {
8686
slug: demoDay.slug

netlify.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,15 @@
88

99
[[redirects]]
1010
from = "https://demoday.suncoast.io"
11-
to = "https://suncoast.io/demo-day"
11+
to = "https://suncoast.io/grads"
1212

1313
[[redirects]]
1414
from = "https://demoday.suncoast.io"
15-
to = "https://suncoast.io/demo-day"
15+
to = "https://suncoast.io/grads"
16+
17+
[[redirects]]
18+
from = "/demo-day/*"
19+
to = "https://suncoast.io/grads"
1620

1721
[[redirects]]
1822
from = "/conference/*"

src/components/MainNavigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class MainNavigation extends Component {
8989
<Link to="/academy/faq" className="navbar-item">
9090
FAQ
9191
</Link>
92-
<Link to="/demo-day" className="navbar-item">
92+
<Link to="/grads" className="navbar-item">
9393
Graduates
9494
</Link>
9595
<hr className="navbar-divider" />

src/components/academy/AcademyNavigation.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const AcademyNavigation = () => (
5454
<NavItem to="/academy/faq" icon="fas fa-puzzle-piece fa-lg">
5555
FAQ
5656
</NavItem>
57-
<NavItem to="/demo-day" icon="fas fa-graduation-cap fa-lg">
57+
<NavItem to="/grads" icon="fas fa-graduation-cap fa-lg">
5858
Graduates
5959
</NavItem>
6060
</nav>

src/components/academy/Cohort.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Container from '../../components/Container'
77
import Section from '../../components/Section'
88
import PageTitle from '../../components/PageTitle'
99
import Graduate from './Graduate'
10+
import GradsNavigation from './GradsNavigation'
1011

1112
const Cohort = ({
1213
slug,
@@ -24,7 +25,7 @@ const Cohort = ({
2425
<Section>
2526
<Container>
2627
<header className="cohort-header">
27-
<PageTitle>{`${title} Demo Day`}</PageTitle>
28+
<PageTitle>{`${title} Graduates`}</PageTitle>
2829
<h4 className="subtitle is-4">
2930
{moment(date).format('MMMM, Do Y')}
3031
</h4>
@@ -58,6 +59,9 @@ const Cohort = ({
5859
We are now accepting applications for our next cohort,{' '}
5960
<Link to="/academy">find out more.</Link>
6061
</p>
62+
<div className="is-pulled-right">
63+
<GradsNavigation />
64+
</div>
6165
</div>
6266

6367
<h3 className="title is-3">Our Graduates</h3>
@@ -104,6 +108,7 @@ const Cohort = ({
104108
</>
105109
)}
106110
</div>
111+
<GradsNavigation />
107112
</div>
108113
</section>
109114
</>
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
import React from 'react'
2+
import { StaticQuery, graphql } from 'gatsby'
3+
4+
export default function GradsNavigation() {
5+
return (
6+
<StaticQuery
7+
query={graphql`
8+
query GradsNavigationQuery {
9+
allContentfulDemoDay(sort: { fields: date, order: DESC }) {
10+
nodes {
11+
title
12+
slug
13+
}
14+
}
15+
}
16+
`}
17+
render={(data) => (
18+
<>
19+
<div className="dropdown is-hoverable">
20+
<div className="dropdown-trigger">
21+
<button
22+
className="button"
23+
aria-haspopup="true"
24+
aria-controls="dropdown-menu"
25+
>
26+
<span>All Cohorts</span>
27+
<span className="icon is-small">
28+
<i className="fas fa-angle-down" aria-hidden="true"></i>
29+
</span>
30+
</button>
31+
</div>
32+
<div className="dropdown-menu" id="dropdown-menu" role="menu">
33+
<div className="dropdown-content">
34+
{data.allContentfulDemoDay.nodes.map(({ slug, title }) => (
35+
<a
36+
href={`/grads/${slug}`}
37+
className="dropdown-item"
38+
key={slug}
39+
>
40+
{title}
41+
</a>
42+
))}
43+
</div>
44+
</div>
45+
</div>
46+
</>
47+
)}
48+
/>
49+
)
50+
}

src/components/academy/Graduate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const Graduate = ({
2828
<div className="column">
2929
<h4 className="title is-4">
3030
{slug ? (
31-
<Link to={`/demo-day/${cohortSlug}/${slug}`}>{student.name}</Link>
31+
<Link to={`/grads/${cohortSlug}/${slug}`}>{student.name}</Link>
3232
) : (
3333
student.name
3434
)}

src/pages/academy/career.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Career support services are including, but not limited to, the
2020
following:
2121

2222
- Curriculum including lectures, mentoring, and coaching on interview techniques, decoding technical job descriptions, resume writing workshops, and portfolio building.
23-
- Hosted Demo Day events, inviting potential employers, advisory board members, and community leaders to showcase the skills and work done by recent graduates.
23+
- Hosted graduate events, inviting potential employers, advisory board members, and community leaders to showcase the skills and work done by recent graduates.
2424
- Host guest lectures from community leaders on topics that add to and enhance the core program content.
2525
- The school maintains a "reverse job board", used by local employers and hiring partners that lists graduates and alumni who are seeking employment.
2626

src/pages/academy/network.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const AcademyNetwork = ({ data }) => (
3737
Speak to students during the cohort, host field trips and lighting
3838
talks at your offices!
3939
</li>
40-
<li>Meet our upcoming graduates before Demo Day.</li>
40+
<li>Meet our upcoming graduates <em>before</em> graduation.</li>
4141
<li>Access our reverse job board.</li>
4242
</ul>
4343
</div>

0 commit comments

Comments
 (0)