-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
importing fonts and working on button component
- Loading branch information
Showing
7 changed files
with
71 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* basic css */ | ||
|
||
/* import fonts */ | ||
/* Poppins (from google fonts) */ | ||
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap"); | ||
|
||
/*Argue (download)*/ | ||
@font-face { | ||
font-family: "Argue"; | ||
src: local("Argue"), url("./fonts/Argue.otf") format("otf"); | ||
} | ||
|
||
/*Gerbera (download)*/ | ||
@font-face { | ||
font-family: "Gerbera"; | ||
src: local("Gerbera-Bold"), url("./fonts/Gerbera-Bold.otf") format("otf"); | ||
} | ||
|
||
/* create variables for colours */ | ||
:root { | ||
--primary-blk: #111111; | ||
--primary-grey: #505050; | ||
--primary-prpl: #620981; | ||
--primary-white: #ffffff; | ||
--hover-prpl: #430159; | ||
--secondary-blue: #dbe3fb; | ||
} | ||
|
||
/* basics */ | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
box-sizing: border-box; | ||
font-family: Poppins, sans-serif; | ||
} | ||
|
||
h1 { | ||
font-family: "Argue"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
import { Button } from "../reusables/Button"; | ||
import "../App.css"; | ||
|
||
export const Header = () => { | ||
return <div>Header</div>; | ||
return ( | ||
<section> | ||
<h1>Header</h1> | ||
<Button>View schedule</Button> | ||
</section> | ||
); | ||
}; |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,14 @@ | ||
export const Button = () => { | ||
return <div>Button</div>; | ||
}; | ||
import styled from "styled-components"; | ||
|
||
export const Button = styled.button` | ||
background-color: var(--primary-prpl); | ||
border-radius: 8px; | ||
border: none; | ||
color: var(--primary-white); | ||
font-size: 30px; | ||
padding: 8px 16px; | ||
&:hover { | ||
background-color: var(--hover-prpl); | ||
} | ||
`; |