Skip to content

Commit

Permalink
✨ feat: spaced out text evenly in hero
Browse files Browse the repository at this point in the history
  • Loading branch information
Ayngie committed Jan 21, 2024
1 parent f227c77 commit 3b9b287
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/components/Hero.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import { StyledHero } from "./styles/StyledHero";
import { StyledHeading, Paragraph, BoldText, ItalicText } from "./styles/StyledTexts";
import { ParagraphWrapper } from "./styles/StyledWrappers";


export const Hero = () => {
return (
<StyledHero>
<StyledHeading>Välkommen!</StyledHeading>
<Paragraph>Graviditetsdiabetesappen - din naturliga guide för att hantera och förebygga <BoldText>graviditetsdiabetes (GDM)</BoldText>. &#129328;</Paragraph>
<ParagraphWrapper>
<StyledHeading>Välkommen!</StyledHeading>
<Paragraph>Graviditetsdiabetesappen - din naturliga guide för att hantera och förebygga <BoldText>graviditetsdiabetes (GDM)</BoldText>. &#129328;</Paragraph>
</ParagraphWrapper>
<Paragraph><ItalicText>Läs mer nedan!</ItalicText></Paragraph>
</StyledHero>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/styles/StyledHero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import flowers from "/flowers.jpg";
export const StyledHero = styled.section `
display: flex;
flex-direction: column;
justify-content: center;
justify-content: space-evenly;
align-items: center;
background-image: linear-gradient(rgba(255,255,255,0.8), rgba(255, 255, 255, 0.8)), url(${flowers});
Expand Down

0 comments on commit 3b9b287

Please sign in to comment.