Skip to content

Commit

Permalink
improve UI/UX
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicklescure committed Apr 18, 2022
1 parent d60174d commit d3e3cfd
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/src/components/Banner.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
import { useNavigate } from "react-router-dom";
import styled from "styled-components";
import { COLORS } from "../constants";

const Banner = () => {
const navigate = useNavigate();

const handleClick = () => {
navigate('/signup');
}
return (
<Wrapper>
<Container>
<div>
<Title>Share the words</Title>
<SubTitle>Because every word counts, we have made a free speech platform where your audience can reward your work.</SubTitle>
<ClickToAction>Start reading</ClickToAction>
<ClickToAction onClick={handleClick}>Start reading</ClickToAction>
</div>
</Container>
</Wrapper>
Expand Down Expand Up @@ -42,7 +48,7 @@ const Title = styled.h1`
const SubTitle = styled.div`
font-size: 24px;
color: ${COLORS.dark};
margin-bottom: 16px;
margin-bottom: 24px;
`;
const ClickToAction = styled.button`
background-color: ${COLORS.dark};
Expand Down

0 comments on commit d3e3cfd

Please sign in to comment.