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

feat: add redirect functionality to support us button #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions src/components/Header/Header.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ export const StyledButton = styled.button`
border: 1px solid transparent;
border-radius: 4px;

&:hover {
background-color: white;
color: hsl(240, 74%, 31%);
border-color: hsl(240, 74%, 31%);
}

@media ${breakpoints.md} {
margin-left: auto;
}
Expand Down
4 changes: 3 additions & 1 deletion src/components/Header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ export const Header: React.FC<ComponentProps> = ({
<Link to="/events">Events</Link>
<Link to="/contact">Contact</Link>

<StyledButton>Support Us</StyledButton>
<StyledButton>
<Link to="/support">Support Us</Link>
</StyledButton>
</Nav>
</HeaderStyled>
)
Expand Down
57 changes: 57 additions & 0 deletions src/pages/support.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import { Layout } from "../components"
import React from "react"
import styled from "styled-components"

const SupportPage = () => {
return (
<Layout>
<div
style={{
// display: "flex",
alignItems: "center",
justifyContent: "center",
}}
>
<Section>
<h2>Support us and make a difference.</h2>
</Section>

<Section>
<p>
We are always looking for ways to improve our software, and we rely
on our community to help us. If you have any ideas for new features
or improvements, please visit our{" "}
<a href="https://github.com/reactcebu/website-v2" target="_blank">
repository
</a>
. on GitHub and contribute!
</p>
</Section>
</div>
</Layout>
)
}

const Section = styled.section`
display: block;
max-width: 1440px;
// border: 1px solid red;
margin: 0 auto;
text-align: center;
font-size: 28px;
padding: 40px 30px;

h2 {
font-size: 60px;
max-width: 900px;
margin: 0 auto;
margin-bottom: 18px;
}

p {
text-align: left;
line-height: 150%;
}
`

export default SupportPage