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

Splash page styling fixes #916

Merged
merged 1 commit into from
Jun 25, 2024
Merged
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
12 changes: 6 additions & 6 deletions static-site/src/components/splash/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { cards } from "./showcase.yaml";
const Section = ({id, title, abstract, buttonText, buttonLink}) => (
<div id={id} className="col-md-6" style={{paddingBottom: "40px"}}>
<div style={{display: "flex", flexDirection: "column", alignItems: "center", height: "100%"}}>
<Styles.H1>{title}</Styles.H1>
<Styles.H1Small>{title}</Styles.H1Small>
<Styles.CenteredFocusParagraph style={{flexGrow: 1}}>
{abstract}
</Styles.CenteredFocusParagraph>
Expand All @@ -37,7 +37,7 @@ const Splash = () => {
</FlexCenter>

<HugeSpacer />
<Styles.H1> Real-time tracking of pathogen evolution </Styles.H1>
<Styles.H1Small> Real-time tracking of pathogen evolution </Styles.H1Small>
<SmallSpacer />

<FlexCenter>
Expand All @@ -60,9 +60,9 @@ const Splash = () => {

<HugeSpacer/>

<Styles.H1>
<Styles.H1Small>
Featured analyses
</Styles.H1>
</Styles.H1Small>

<BigSpacer/>
<Showcase cards={cards} CardComponent={UrlShowcaseTile} />
Expand Down Expand Up @@ -122,7 +122,7 @@ const Splash = () => {

{/* PHILOSOPHY */}
<ScrollableAnchor id={'philosophy'}>
<Styles.H1>Philosophy</Styles.H1>
<Styles.H1Small>Philosophy</Styles.H1Small>
</ScrollableAnchor>
<div className="row">
<div className="col-md-6">
Expand Down Expand Up @@ -178,7 +178,7 @@ const Splash = () => {
<HugeSpacer/>

<ScrollableAnchor id={'tools'}>
<Styles.H1>A bioinformatics and data viz toolkit</Styles.H1>
<Styles.H1Small>A bioinformatics and data viz toolkit</Styles.H1Small>
</ScrollableAnchor>

<FlexCenter>
Expand Down
4 changes: 4 additions & 0 deletions static-site/src/components/splash/styles.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ export const H1 = styled.div`
margin-bottom: 0px;
`;

export const H1Small = styled(H1)`
font-size: 32px;
`;

export const H2 = styled.div`
text-align: ${(props) => props.$left ? "left" : "center"};
font-size: 24px;
Expand Down