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

Add hover description to workshops section #505

Merged
Merged
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
15 changes: 10 additions & 5 deletions src/sections/Workshops.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const WorkshopsContainer = styled.div`
position: absolute;
bottom: 0;
width: 100%;
height: calc(100vw * (650 / 1280));
height: calc(100vw * (670 / 1280));

${p => p.theme.mediaQueries.tablet} {
position: relative;
Expand Down Expand Up @@ -55,7 +55,7 @@ const Nugget = styled.img`

const Schedule = styled.div`
position: absolute;
margin-top: calc(100vw * (32 / 1280));
margin-top: calc(100vw * (24 / 1280));
margin-right: calc(100vw * (128 / 1280));
z-index: 1;
background-image: url('./assets/images/schedule.svg');
Expand Down Expand Up @@ -186,14 +186,18 @@ const Description = styled.p`
const SubDescription = styled.p`
font-weight: 600;
font-family: 'HK Grotesk Medium';
font-size: calc(100vw * (20 / 487));
font-size: calc(100vw * (18 / 1280));
text-align: center;
color: #51483e;
margin-top: calc(100vw * (22 / 487));

${p => p.theme.mediaQueries.mobile} {
font-size: calc(100vw * (20 / 487));
margin-top: calc(100vw * (22 / 487));
}
`

const Squares = styled.div`
margin-top: calc(100vw * (32 / 1280));
margin-top: calc(100vw * (24 / 1280));
display: grid;
grid-template-columns: 1fr 1fr 1fr;

Expand Down Expand Up @@ -320,6 +324,7 @@ const Workshops = () => {
return (
<WorkshopsContainer id="workshops">
<Header>WORKSHOPS</Header>
{!isMobile && (<SubDescription>Hover on a workshop tile to learn more!</SubDescription>)}
<Grid>
<Text>
<Title>Discover New Skills</Title>
Expand Down
Loading