-
Notifications
You must be signed in to change notification settings - Fork 29
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] Add Learn Page3 #83
Open
hardco2020
wants to merge
1
commit into
orcasound:main
Choose a base branch
from
hardco2020:Add-Learn-Page-3
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
import { styled } from '@mui/material' | ||
import Box from '@mui/material/Box' | ||
import Head from 'next/head' | ||
import Image from 'next/image' | ||
import ReactAudioPlayer from 'react-audio-player' | ||
|
@@ -7,14 +9,100 @@ import frequency1 from '../../public/images/frequency2.png' | |
import LearnBanner from '../../public/images/learn.jpg' | ||
import organization1 from '../../public/images/partner1.png' | ||
import organization2 from '../../public/images/partner2.png' | ||
import roundorca from '../../public/images/roundorca.png' | ||
import salishsea from '../../public/images/salishsea.png' | ||
import roundorca from '../../public/images/srkw2-3.jpg' | ||
import ActionButton from '../components/ActionButton' | ||
import TopBanner from '../components/TopBanner' | ||
import learnStyles from '../styles/Learn.module.css' | ||
|
||
const Container = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
padding: '0px 100px', | ||
[theme.breakpoints.down('sm')]: { | ||
padding: '0px 10px', | ||
}, | ||
})) | ||
|
||
const Intro = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
marginTop: '32px', | ||
[theme.breakpoints.down('sm')]: { | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
}, | ||
})) | ||
|
||
const IntroCallContainer = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
justifyContent: 'space-around', | ||
marginTop: '5vh', | ||
width: '80vw', | ||
[theme.breakpoints.down('sm')]: { | ||
flexDirection: 'column', | ||
maxWidth: 'none', | ||
marginTop: '0', | ||
}, | ||
})) | ||
|
||
const IntroCallDesc = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
maxWidth: '30vw', | ||
marginTop: '20vh', | ||
[theme.breakpoints.down('sm')]: { | ||
flexDirection: 'column', | ||
maxWidth: 'none', | ||
marginTop: '0', | ||
}, | ||
})) | ||
|
||
const CallExampleContainer = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
width: '80vw', | ||
justifyContent: 'space-around', | ||
[theme.breakpoints.down('sm')]: { | ||
flexDirection: 'column', | ||
}, | ||
})) | ||
const CallExampleLeftWrap = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
maxWidth: '500px', | ||
[theme.breakpoints.down('sm')]: {}, | ||
})) | ||
|
||
const CallExampleRightWrap = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
maxWidth: '500px', | ||
marginTop: '40vh', | ||
[theme.breakpoints.down('sm')]: { | ||
marginTop: '0', | ||
}, | ||
})) | ||
const CallExampleContentContainer = styled(Box)(({ theme }) => ({ | ||
display: 'flex', | ||
flexDirection: 'column', | ||
justifyContent: 'center', | ||
marginBottom: '6vh', | ||
[theme.breakpoints.down('sm')]: {}, | ||
})) | ||
|
||
const CallExampleContentWrap = styled(Box)(({ theme }) => ({ | ||
backgroundColor: '#CAE9FF', | ||
maxWidth: '530px', | ||
padding: '5px', | ||
display: 'flex', | ||
flexDirection: 'column', | ||
alignItems: 'center', | ||
[theme.breakpoints.down('sm')]: {}, | ||
})) | ||
|
||
export const learn = () => { | ||
return ( | ||
<div className={learnStyles.learn}> | ||
<div> | ||
<Head> | ||
<title>Orcasound</title> | ||
</Head> | ||
|
@@ -26,99 +114,162 @@ export const learn = () => { | |
scrollToId={`learn`} | ||
/> | ||
<div id="learn" /> | ||
<ul className={learnStyles.hello}> | ||
<li>Sounds of the Salish Sea</li> | ||
<li>3 common calls</li> | ||
<li>Souther Resident Killer Whale Call Catalog</li> | ||
<li>Exhibits</li> | ||
</ul> | ||
<h1 className={learnStyles.salish}> Sounds Of The Salish Sea</h1> | ||
<p className={learnStyles.salishsea}> | ||
Explore common sounds of the Salish Sea by selecting the animals and | ||
other objects in this anoramic soundscape of the inlandwaters of | ||
Washington State(USA) and British Columbia(Canada) | ||
</p> | ||
<div className={learnStyles.imageWrapper}> | ||
<Container> | ||
<Intro> | ||
<ActionButton link="" text="Sounds of the Salish Sea" /> | ||
<ActionButton link="" text="3 common calls" /> | ||
<ActionButton | ||
link="" | ||
text="Souther Resident Killer Whale Call Catalog" | ||
/> | ||
<ActionButton link="" text="Exhibits" /> | ||
</Intro> | ||
|
||
<h1> Sounds Of The Salish Sea</h1> | ||
<p> | ||
Explore common sounds of the Salish Sea by selecting the animals and | ||
other objects in this <br /> | ||
panoramic soundscape of the inland waters of Washington State (USA) | ||
and British Columbia <br /> | ||
(Canada). | ||
</p> | ||
<Image | ||
className={learnStyles.salishseaimg} | ||
src={salishsea} | ||
alt="Sounds Of The Salish Sea" | ||
width={800} | ||
height={450} | ||
width={1234} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 1234 seems random, is this the desired value? |
||
height={701} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, 701 seems odd. |
||
layout="intrinsic" | ||
quality={65} | ||
/> | ||
</div> | ||
<div className={learnStyles.orca}> | ||
<Image | ||
src={roundorca} | ||
alt="OrcaImage" | ||
width={400} | ||
height={350} | ||
layout="intrinsic" | ||
quality={65} | ||
/> | ||
</div> | ||
<h2 className={learnStyles.calls}>3 Common Calls</h2> | ||
<div> | ||
<div className={learnStyles.gallery}> | ||
<Image src={frequency1} alt="J pod's call - Frequency and Time" /> | ||
<h6>{`J pod's Favorite call:501`}</h6> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
/> | ||
</div> | ||
</div> | ||
<Box | ||
sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
}} | ||
> | ||
<IntroCallContainer> | ||
<IntroCallDesc> | ||
<h2>3 Common Calls</h2> | ||
<p> | ||
Conveniently, a few calls are used almost exclusively by each | ||
southern resident pod. This means that by memorizing just 3 | ||
calls, you can tell with great certainty that you are hearing a | ||
particular pod of orcas!{' '} | ||
</p> | ||
</IntroCallDesc> | ||
<Box sx={{ borderRadius: '50%', overflow: 'hidden' }}> | ||
<Image | ||
src={roundorca} | ||
alt="OrcaImage" | ||
width={450} | ||
height={450} | ||
layout="intrinsic" | ||
quality={65} | ||
objectFit="cover" | ||
/> | ||
</Box> | ||
</IntroCallContainer> | ||
|
||
<div className={learnStyles.image}> | ||
<Image src={frequency1} alt="K pod's call - Frequency and Time" /> | ||
<h6>{`K pod's Favorite call:516`}</h6> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
/> | ||
</div> | ||
</div> | ||
<CallExampleContainer> | ||
<CallExampleLeftWrap> | ||
<CallExampleContentContainer> | ||
<CallExampleContentWrap> | ||
<Image | ||
src={frequency1} | ||
width={530} | ||
height={350} | ||
alt="J pod's call - Frequency and Time" | ||
/> | ||
<h2>{`J pod's Favorite call:501`}</h2> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
/> | ||
</div> | ||
</CallExampleContentWrap> | ||
<p> | ||
J pod is the most local of the pods, commonly visiting Seattle | ||
about once a month throughout the year, and is famous for | ||
J2/Granny who may have been the oldest female orca living to | ||
be about 100 years old. | ||
</p> | ||
</CallExampleContentContainer> | ||
|
||
<div className={learnStyles.gallery2}> | ||
<Image src={frequency1} alt="L pod's cal - Frequency and Time" /> | ||
<h6>{`L pod's Favorite call:519`}</h6> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
alt="l pod favorite call" | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
<div className={learnStyles.property}> | ||
<h2 className={learnStyles.exhibits}>Exhibits</h2> | ||
<p className={learnStyles.exhibit}> | ||
{`Learn About the Marine acoustic landscape and the hydrophone network`} | ||
<br></br> | ||
{`by exploring these Orcasound Exhibit screens designed for | ||
<CallExampleContentContainer> | ||
<CallExampleContentWrap> | ||
<Image | ||
src={frequency1} | ||
width={530} | ||
height={350} | ||
alt="K pod's call - Frequency and Time" | ||
/> | ||
<h2>{`K pod's Favorite call:516`}</h2> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
/> | ||
</div> | ||
</CallExampleContentWrap> | ||
<p> | ||
L pod travels the furthest each year, often foraging as far | ||
south as San Francisco in wintertime, and is the largest pod | ||
with more than 30 members now (and almost 60 in 1993). | ||
</p> | ||
</CallExampleContentContainer> | ||
</CallExampleLeftWrap> | ||
<CallExampleRightWrap> | ||
<CallExampleContentWrap> | ||
<Image | ||
src={frequency1} | ||
alt="L pod's cal - Frequency and Time" | ||
width={530} | ||
height={350} | ||
/> | ||
<h2>{`L pod's Favorite call:519`}</h2> | ||
<p>{`More description goes here`}</p> | ||
<div> | ||
<ReactAudioPlayer | ||
className={learnStyles.audio} | ||
src={audio} | ||
autoPlay={false} | ||
controls | ||
alt="l pod favorite call" | ||
/> | ||
</div> | ||
</CallExampleContentWrap> | ||
<p> | ||
K pod is the smallest pod with less than ~20 members since an | ||
annual census began in the 1970s, but they have the cutest call | ||
which most listeners think sounds like a kitten mewing. | ||
</p> | ||
</CallExampleRightWrap> | ||
</CallExampleContainer> | ||
</Box> | ||
<div className={learnStyles.property}> | ||
<h2 className={learnStyles.exhibits}>Exhibits</h2> | ||
<p className={learnStyles.exhibit}> | ||
{`Learn About the Marine acoustic landscape and the hydrophone network`} | ||
<br></br> | ||
{`by exploring these Orcasound Exhibit screens designed for | ||
educational organizations in the Pudget Sound regions`} | ||
</p> | ||
</div> | ||
<div className={learnStyles.org}> | ||
<Image src={organization1} alt="Seattle aquarium exhibit" /> | ||
<a href="https://killerwhaletales.org/"> | ||
<Image src={organization2} alt="Marine Science Center Logo" /> | ||
</a> | ||
</div> | ||
</p> | ||
</div> | ||
<div className={learnStyles.org}> | ||
<Image src={organization1} alt="Seattle aquarium exhibit" /> | ||
<a href="https://killerwhaletales.org/"> | ||
<Image src={organization2} alt="Marine Science Center Logo" /> | ||
</a> | ||
</div> | ||
</Container> | ||
</div> | ||
) | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes are looking good, but this section of the page is covered under a separate issue. So try not to make changes related to another issue. It can be hard to review and can also create merge conflicts later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, at first I didn't notice that's a total different page. I will use other branches data to change it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the status of this? The changes look to still be present.