-
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.
Merge pull request #30 from Acr515/development
v2024.1.2 merge-in
- Loading branch information
Showing
26 changed files
with
677 additions
and
177 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,30 @@ | ||
{ | ||
"short_name": "FortyEight", | ||
"name": "FortyEight: FRC Scouting", | ||
"icons": [ | ||
{ | ||
"src": "./pwa-icons/icon_1024.png", | ||
"sizes": "1024x1024", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "./pwa-icons/icon_512.png", | ||
"sizes": "512x512", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "./pwa-icons/icon_196.png", | ||
"sizes": "196x196", | ||
"type": "image/png" | ||
}, | ||
{ | ||
"src": "./pwa-icons/icon_144.png", | ||
"sizes": "144x144", | ||
"type": "image/png" | ||
} | ||
], | ||
"start_url": "/FortyEight/", | ||
"display": "standalone", | ||
"theme_color": "#4941B1", | ||
"background_color": "#fff" | ||
} |
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 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,31 @@ | ||
import React from "react"; | ||
import Chevron from '../../assets/images/chevron.png'; | ||
import './style.scss'; | ||
|
||
/** | ||
* Creates a small set of arrows that pair with an input element. Can use custom functions for the arrows. | ||
* @param {function} increment The function to run when the up arrow is clicked | ||
* @param {function} decrement The function to run when the down arrow is clicked | ||
* @param {boolean} disabled Optional. When false, the arrows don't do anything | ||
* @returns | ||
*/ | ||
export default function Spinner({ increment = () => {}, decrement = () => {}, disabled = false }) { | ||
return ( | ||
<div className="_Spinner"> | ||
<button | ||
type="button" | ||
className="arrow" | ||
style={{ backgroundImage: 'url(' + Chevron + ')' }} | ||
onClick={increment} | ||
disabled={disabled} | ||
/> | ||
<button | ||
type="button" | ||
className="arrow down" | ||
style={{ backgroundImage: 'url(' + Chevron + ')' }} | ||
onClick={decrement} | ||
disabled={disabled} | ||
/> | ||
</div> | ||
) | ||
} |
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,30 @@ | ||
._Spinner { | ||
width: 24px; | ||
display: flex; | ||
flex-direction: column; | ||
box-sizing: border-box; | ||
|
||
.arrow { | ||
background-size: contain; | ||
background-position: center center; | ||
background-repeat: no-repeat; | ||
width: 19px; | ||
height: 14px; | ||
background-color: transparent; | ||
outline: none; | ||
border: none; | ||
padding: 2px; | ||
margin-bottom: 4px; | ||
filter: invert(70%); | ||
transition: filter .15s; | ||
cursor: pointer; | ||
} | ||
.arrow:hover { | ||
filter: invert(22%) sepia(56%) saturate(2475%) hue-rotate(231deg) brightness(99%) contrast(93%); | ||
} | ||
.arrow.down { | ||
transform: scaleY(-1); | ||
margin-bottom: 0; | ||
margin-top: 4px; | ||
} | ||
} |
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
Oops, something went wrong.