-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Hero and Introduction components of signed-out homepage (#6101)
* build the Community section for homepages * remove luxon from app-project * Create layout for default home page * build the Hero and Introduction components * finalize Hero and Introduction * mark DefaultHome as a client component * fix ZooniverseLogotype test
- Loading branch information
1 parent
e552f31
commit d89db9a
Showing
22 changed files
with
435 additions
and
62 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/lib-content/src/components/PageLayout/AboutLayout.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Box } from 'grommet' | ||
import ContainerBox from './ContainerBox.js' | ||
import AboutHeader from '../AboutHeader' | ||
|
||
function AboutLayout({ children }) { | ||
return ( | ||
<> | ||
<AboutHeader /> | ||
<main> | ||
<Box | ||
background={{ | ||
dark: 'dark-1', | ||
light: 'light-1' | ||
}} | ||
align='center' | ||
> | ||
<ContainerBox | ||
align='center' | ||
background={{ dark: 'dark-3', light: 'neutral-6' }} | ||
width='min(100%, 90rem)' | ||
> | ||
{children} | ||
</ContainerBox> | ||
</Box> | ||
</main> | ||
</> | ||
) | ||
} | ||
|
||
export default AboutLayout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
66 changes: 66 additions & 0 deletions
66
packages/lib-content/src/screens/Home/Community/blogPosts.mock.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
[ | ||
{ | ||
"id": 7269, | ||
"title": "First Observations of the Zoo of Galaxies", | ||
"excerpt": "<p>My name is Karen Masters, and I’m currently the lead scientist in the Galaxy Zoo science team. I’ve been involved in Galaxy Zoo (and a cheerleader for the Zooniverse) for well over a decade. As well as writing many scientific papers enabled by your classifications (thanks as always for those) I enjoy writing about science […]</p>\n", | ||
"created_at": "2024-05-03T07:39:00.000Z", | ||
"url": "http://daily.zooniverse.org/2024/05/03/first-observations-of-the-zoo-of-galaxies/", | ||
"imageSrc": "" | ||
}, | ||
{ | ||
"id": 3386, | ||
"title": "Navigating the Future: Zooniverse’s Frontend Codebase Migration and Design Evolution", | ||
"excerpt": "<p>Dear Zooniverse Community, We’re pleased to update you on an important development as we undergo a migration to a new frontend codebase over the course of 2024-2025. This transition brings a fresh and improved experience to our platform. From a participant’s perspective, the primary changes involve project layout and styling, resulting in a more user-friendly […]</p>\n", | ||
"created_at": "2024-04-23T16:00:00.000Z", | ||
"url": "http://blog.zooniverse.org/2024/04/23/navigating-the-future-zooniverses-frontend-codebase-migration-and-design-evolution/", | ||
"imageSrc": "https://daily.zooniverse.org/wp-content/uploads/2014/07/51a318cae18f49172b09e1d3_1.jpg" | ||
}, | ||
{ | ||
"id": 3395, | ||
"title": "Zooniverse Wins White House Open Science Award", | ||
"excerpt": "<p>I’m thrilled to share some exciting news with you all! Zooniverse, our beloved platform for people-powered research, has been honored by the White House Office of Science and Technology Policy (OSTP) as a champion of open science. The OSTP Year of Open Science Recognition Challenge awarded five different projects, including Zooniverse, as ‘Champions of Open […]</p>\n", | ||
"created_at": "2024-04-17T17:00:00.000Z", | ||
"url": "http://blog.zooniverse.org/2024/04/17/zooniverse-wins-white-house-open-science-award/", | ||
"imageSrc": "" | ||
}, | ||
{ | ||
"id": 7259, | ||
"title": "A Treasure Trove of Discoveries Revealed in New Article by the Active Asteroids project on Zooniverse", | ||
"excerpt": "<p>An exciting new publication unveils the first results of the Active Asteroids project on Zooniverse. Spearheaded by Colin Orion Chandler (DiRAC Institute, University of Washington) and a formidable team of researchers, this initiative has embarked on an audacious mission: to engage the public in uncovering the secrets of our solar system’s elusive active asteroids. These […]</p>\n", | ||
"created_at": "2024-03-18T17:07:17.000Z", | ||
"url": "http://daily.zooniverse.org/2024/03/18/a-treasure-trove-of-discoveries-revealed-in-new-article-by-the-active-asteroids-project-on-zooniverse/", | ||
"imageSrc": "" | ||
}, | ||
{ | ||
"id": 7253, | ||
"title": "Zooniverse Project Inspiring School Newspaper Article", | ||
"excerpt": "<p>We love when volunteers reach out in the Daily Zooniverse Submissions ‘Talk’ discussion forum with the multitude of ways Zooniverse projects have inspired them to do or create something new. And we love to highlight those stories here through the Daily Zoo. @Emilrave recently shared with us this article she wrote, published for her school […]</p>\n", | ||
"created_at": "2024-02-02T15:00:00.000Z", | ||
"url": "http://daily.zooniverse.org/2024/02/02/zooniverse-project-inspiring-school-newspaper-article/", | ||
"imageSrc": "https://daily.zooniverse.org/wp-content/uploads/2014/07/51a318cae18f49172b09e1d3_1.jpg" | ||
}, | ||
{ | ||
"id": 7240, | ||
"title": "New Zooniverse – Floating Forests Education Article Published!", | ||
"excerpt": "<p>“A Citizen Science Approach to Teaching Climate Change in Introductory-level Undergraduate General Science Courses” is a new publication from the Floating Forests project! This work is a major milestone in our efforts to adapt Zooniverse participation to undergraduate classrooms. The article presents the development and evaluation of a classroom activity focused on the drivers and […]</p>\n", | ||
"created_at": "2024-01-19T15:00:00.000Z", | ||
"url": "http://daily.zooniverse.org/2024/01/19/new-zooniverse-floating-forests-education-article-published/", | ||
"imageSrc": "" | ||
}, | ||
{ | ||
"id": 3374, | ||
"title": "Snapshot Wisconsin Celebrates 50th Zooniverse Season!", | ||
"excerpt": "<p>What is Snapshot Wisconsin? Snapshot Wisconsin is a community science project where the Wisconsin Department of Natural Resources (Wisconsin DNR) partners with volunteers to monitor wildlife using a statewide network of trail cameras. Volunteers host trail cameras, which are triggered by heat and movement, capturing pictures of passing animals. Located in the Great Lakes region […]</p>\n", | ||
"created_at": "2024-01-10T15:35:52.000Z", | ||
"url": "http://blog.zooniverse.org/2024/01/10/snapshot-wisconsin-celebrates-50th-zooniverse-season/", | ||
"imageSrc": "" | ||
}, | ||
{ | ||
"id": 3371, | ||
"title": "Happy New Year & YouTube livestream this Thursday", | ||
"excerpt": "<p>Happy New Year Everyone! We can’t thank you enough for making Zooniverse possible. Thank you, thank you, thank you!!!! We have so much to celebrate from 2023. We welcome you to join us this Thursday for a YouTube LiveStream from 2:15pm-3:15pm CST (8:15pm GMT; Friday 1:15am in India) celebrating Zooniverse 2023 Milestones as part of a […]</p>\n", | ||
"created_at": "2024-01-08T16:42:38.000Z", | ||
"url": "http://blog.zooniverse.org/2024/01/08/happy-new-year-youtube-livestream-this-thursday/", | ||
"imageSrc": "https://daily.zooniverse.org/wp-content/uploads/2014/07/51a318cae18f49172b09e1d3_1.jpg" | ||
} | ||
] |
32 changes: 32 additions & 0 deletions
32
packages/lib-content/src/screens/Home/DefaultHome/DefaultHome.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
'use client' | ||
|
||
import { Box } from 'grommet' | ||
|
||
import ContainerBox from '../../../components/PageLayout/ContainerBox.js' | ||
import MaxWidthContent from '../../../components/MaxWidthContent/MaxWidthContent.js' | ||
import Introduction from './components/Introduction.js' | ||
import Hero from './components/Hero.js' | ||
|
||
export default function DefaultHome() { | ||
return ( | ||
<Box | ||
background={{ | ||
dark: 'dark-1', | ||
light: 'light-1' | ||
}} | ||
align='center' | ||
> | ||
<Hero /> | ||
<ContainerBox | ||
align='center' | ||
background={{ dark: 'dark-3', light: 'neutral-6' }} | ||
width='min(100%, 90rem)' | ||
pad={{ horizontal: 'medium' }} | ||
> | ||
<MaxWidthContent> | ||
<Introduction /> | ||
</MaxWidthContent> | ||
</ContainerBox> | ||
</Box> | ||
) | ||
} |
8 changes: 8 additions & 0 deletions
8
packages/lib-content/src/screens/Home/DefaultHome/DefaultHome.stories.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import DefaultHome from './DefaultHome.js' | ||
|
||
export default { | ||
title: 'Screens / Home / DefaultHome', | ||
component: DefaultHome | ||
} | ||
|
||
export const Default = {} |
Oops, something went wrong.