Skip to content

Commit

Permalink
added styled component for heading component
Browse files Browse the repository at this point in the history
  • Loading branch information
eyekavya committed Mar 22, 2023
1 parent 82b2ec5 commit b865555
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Heading/Heading.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import React from "react";
import { StyledCard } from "./StyledCard";

function Heading() {
return (
<>
<StyledCard>
<header>
<h1>Kavya's TO-DO List</h1>
</header>
</>
</StyledCard>
);
}

Expand Down
11 changes: 11 additions & 0 deletions src/components/Heading/StyledHeading.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import styled from "styled-components";

export const StyledHeading = styled.section`
header {
font-size: 1.5rem;
margin: 3rem 0;
display: flex;
justify-content: center;
align-items: center;
}
`;

0 comments on commit b865555

Please sign in to comment.