-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
4,590 additions
and
2,763 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 was deleted.
Oops, something went wrong.
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,37 @@ | ||
{ | ||
"env": { | ||
"browser": true, | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:import/errors", | ||
"plugin:import/warnings", | ||
"plugin:import/typescript" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"ecmaFeatures": { | ||
"jsx": true | ||
}, | ||
"ecmaVersion": "latest", | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["import", "react", "@typescript-eslint", "simple-import-sort"], | ||
"rules": { | ||
"prefer-const": "error", | ||
"react/react-in-jsx-scope": "off", | ||
"react/jsx-filename-extension": [ | ||
1, | ||
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] } | ||
], | ||
"simple-import-sort/imports": "error", | ||
"simple-import-sort/exports": "error", | ||
"import/first": "error", | ||
"import/newline-after-import": "error", | ||
"sort-imports": "off" | ||
}, | ||
"root": false | ||
} |
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
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 was deleted.
Oops, something went wrong.
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,6 +1,7 @@ | ||
import { FullscreenEnter } from '@styled-icons/open-iconic' | ||
import { FullScreenHandle } from 'react-full-screen' | ||
|
||
function EnterFullScreen({ handle }: { handle: any }) { | ||
return <FullscreenEnter size="2%" onClick={handle} /> | ||
function EnterFullScreen({ handle }: { handle: FullScreenHandle }) { | ||
return <FullscreenEnter size="20px" onClick={handle.enter} /> | ||
} | ||
export default EnterFullScreen |
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,63 @@ | ||
import { Link, useLocation } from 'react-router-dom' | ||
import styled, { css } from 'styled-components' | ||
|
||
const Navbar = styled.div` | ||
@media screen and (max-width: 800px) { | ||
font-family: ${({ theme }) => theme.secondaryFonts}; | ||
position: absolute; | ||
z-index: 10; | ||
top: 0; | ||
left: 0; | ||
overflow-x: hidden; | ||
padding-top: 20px; | ||
transform: ${(props) => | ||
props.showMobileNavbar ? 'translateY(0em)' : 'translateY(-60em)'}; | ||
transition: 0.6s ease; | ||
width: 100%; | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
text-align: center; | ||
background-color: ${({ theme }) => theme.black}; | ||
} | ||
` | ||
|
||
const StyledLink = styled(Link)` | ||
text-decoration: none; | ||
color: white; | ||
padding-left: 200px; | ||
padding-right: 200px; | ||
font-weight: bold; | ||
transition: 0.2s ease; | ||
margin: 0.3em; | ||
font-size: 6vw; | ||
:hover { | ||
background-color: ${({ theme }) => theme.navy}; | ||
} | ||
${({ selected }) => | ||
selected && | ||
css` | ||
background-color: ${({ theme }) => theme.navy}; | ||
`} | ||
` | ||
|
||
function MobileBar({ showMobileNavbar }: { showMobileNavbar: boolean }) { | ||
const location = useLocation() | ||
return ( | ||
<Navbar showMobileNavbar={showMobileNavbar}> | ||
<StyledLink to="" selected={location.pathname === '/'}> | ||
Clock | ||
</StyledLink> | ||
<StyledLink to="/lifelines" selected={location.pathname === '/lifelines'}> | ||
Lifelines | ||
</StyledLink> | ||
<StyledLink to="/settings" selected={location.pathname === '/settings'}> | ||
Settings | ||
</StyledLink> | ||
</Navbar> | ||
) | ||
} | ||
|
||
export default MobileBar |
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,44 @@ | ||
import styled from 'styled-components' | ||
|
||
const StyledButton = styled.button` | ||
background-color: ${({ theme }) => theme.buttonBackground}; | ||
border: none; | ||
cursor: pointer; | ||
text-align: center; | ||
text-decoration: none; | ||
margin: 4px 2px; | ||
display: inline-block; | ||
color: white; | ||
border-radius: 5px; | ||
font-size: 12px; | ||
font-weight: 700; | ||
padding: 10px 15px; | ||
font-family: ${({ theme }) => theme.secondaryFonts}; | ||
&:hover { | ||
background-image: linear-gradient(rgba(0, 0, 0, 0.06) 0 0); | ||
} | ||
` | ||
|
||
// const HideButton = styled(StyledButton)` | ||
// background: ${({ theme }) => theme.background }; | ||
// border: 1px solid gray; | ||
// cursor: pointer; | ||
// text-align: center; | ||
// text-decoration: none; | ||
// margin: 4px 2px; | ||
// display: inline-block; | ||
// color: ${({ theme }) => theme.text }; | ||
// border-radius: 3px; | ||
// font-size: 12px; | ||
// padding: 6.5px 20px; | ||
// font-weight: 500; | ||
// font-family: ${({ theme }) => theme.secondaryFonts }; | ||
// &:hover { | ||
// background-color: #F1F1F1; | ||
// } | ||
// `; | ||
|
||
const Button = ({ buttonLabel }: { buttonLabel: string }) => { | ||
return <StyledButton>{buttonLabel}</StyledButton> | ||
} | ||
export default Button |
Oops, something went wrong.
e13e90b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
DAMNNNN Daniel 3am??? You're amazing for this wow