-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add title and button components
- Loading branch information
1 parent
89d116c
commit df19720
Showing
8 changed files
with
291 additions
and
7 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,14 @@ | ||
import styled from '@emotion/styled' | ||
|
||
export const Button = styled.button` | ||
font-family: virgil; | ||
padding: 10px; | ||
background-color: #ffffff; | ||
font-size: 20px; | ||
border-radius: 4px; | ||
color: black; | ||
&:hover { | ||
color: #ffffff; | ||
background-color: black; | ||
} | ||
` |
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,2 @@ | ||
export * from "./button"; | ||
export * from "./typography"; |
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,8 @@ | ||
import styled from "@emotion/styled"; | ||
|
||
export const Title = styled.h1` | ||
font-family: virgil; | ||
font-weight: bolder; | ||
font-size: 3em; | ||
margin: 2px; | ||
` |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { css } from "@emotion/react"; | ||
import virgil from "./Virgil.woff2"; | ||
|
||
export const GlobalStyles = css` | ||
@font-face { | ||
font-family: "virgil"; | ||
src: url(${virgil}) format("woff2"); | ||
} | ||
`; |
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,8 +1,14 @@ | ||
// entry point of the react app that powers the extension pop-up | ||
import { Global } from '@emotion/react' | ||
import React from 'react' | ||
import ReactDOM from 'react-dom/client' | ||
import { Button, Title } from './components' | ||
import { GlobalStyles } from './fonts' | ||
|
||
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render( | ||
<React.StrictMode> | ||
<h1>Hello!</h1> | ||
<Global styles={GlobalStyles} /> | ||
<Title>Hello!</Title> | ||
<Button>This is a test</Button> | ||
</React.StrictMode>, | ||
) | ||
) |
Oops, something went wrong.