Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] feat: add new "Stories" page #83

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ const PrivacyPolicy = React.lazy(() =>
)
const Report = React.lazy(() => import('./components/Pages/Report'))
const Story = React.lazy(() => import('./components/Pages/Story'))
const Stories = React.lazy(() => import('./components/Pages/Stories'))
const Tech = React.lazy(() => import('./components/Pages/Tech'))
const Time = React.lazy(() => import('./components/Pages/Time'))
const Trends = React.lazy(() => import('./components/Pages/Trends'))
Expand Down Expand Up @@ -85,6 +86,8 @@ export default function App() {
<Route path="/privacy" component={PrivacyPolicy} />
<Route path="/learn" component={Learn} exact />
<Route path="/learn/:topic" component={LearnTopic} exact />
<Route path="/stories" component={Stories} exact />
<Route path="/stories.html" component={Stories} exact />
<Route
path="/500000"
exact
Expand Down
8 changes: 7 additions & 1 deletion src/components/FastTrackInsights.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,13 @@ function FastTrackInsights() {
<iframe width="100%" height="" src="https://www.youtube.com/embed/pjswdUvwbFE" title="Atlas Stories Overview" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</VideoContainer>
</Grid>
</WrappedContainer>





</WrappedContainer>

</Container>
)
}
Expand Down
10 changes: 5 additions & 5 deletions src/components/Layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ const SignupForm = styled.div`
`;
/**
* Footer component, nothing fancy here.
*
*
* @component
* @category Components/Layout
*
* @param {boolean} signUp - if true, show the signup form
*
* @param {boolean} signUp - if true, show the signup form
* @returns {JSX.Element} - Footer component
*/
const Footer = ({
Expand Down Expand Up @@ -194,7 +194,7 @@ const Footer = ({
<NavLink to="/learn">Learn Toolkit</NavLink>
</li>
<li>
<NavLink to="/archive">Stories</NavLink>
<NavLink to="/stories">Stories</NavLink>
</li>
</ul>
</span>
Expand Down Expand Up @@ -239,7 +239,7 @@ const Footer = ({
target="_blank"
rel="noopener noreferrer"
>
Healthy Regions &amp; Policies Lab
Healthy Regions &amp; Policies Lab
</a>
, at the University of Illinois at Urbana, and the University of Chicago. Funded in part by the{' '}
<a
Expand Down
19 changes: 12 additions & 7 deletions src/components/Layout/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,10 @@ const NavHamburger = styled.button`
`
/**
* @typedef {Object} DropdownEntry
*
*
* An entry in for dropdown sub-links
*
* @property {string} header - Title for dropdown
*
* @property {string} header - Title for dropdown
* @property {string} desc - Dropdown description
* @property {string} link - Link for dropdown
*/
Expand Down Expand Up @@ -364,6 +364,11 @@ const defaultDropDowns = {
},
],
STORIES: [
{
header: 'Overview',
desc: 'Read the latest from the Stories Showcase',
link: '/stories',
},
{
header: 'Explore Map',
desc: 'View stories from across the country on the Atlas map.',
Expand Down Expand Up @@ -395,14 +400,14 @@ const defaultDropDowns = {
}

/**
*
*
* @component
* @category Components/Layout
*
* @param {Object} props
*
* @param {Object} props
* @param {string} props.light - Page theme light or dark
* @param {DropdownContent} pageDropDowns - Object of dropdowns to render, defaults to defaultDropDowns in src/Components/Layout/Nav.jsx
* @example
* @example
* function MyComponent(){
* return(
* <Nav light />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ function Home() {
Explore the Atlas
</ExploreButton>


<VideoModal
open={videoModalInner}
onClose={() => setVideoModalInner(false)}
Expand Down
Loading