Rename v1 to web-check-live

This commit is contained in:
Alicia Sykes
2024-05-08 21:23:03 +01:00
parent e5738d1f5b
commit 7e27143a90
77 changed files with 240 additions and 240 deletions

View File

@@ -0,0 +1,23 @@
const colors = {
primary: '#9fef00',
primaryLighter: '#cff97a',
textColor: '#ffffff',
textColorSecondary: '#a4b1cd',
background: '#141d2b',
backgroundDarker: '#111927',
backgroundLighter: '#1a2332',
bgShadowColor: '#0f1620',
fgShadowColor: '#456602',
primaryTransparent: '#9fef0012',
// Action Colors
info: '#04e4f4',
success: '#20e253',
warning: '#f6f000',
error: '#fca016',
danger: '#f80363',
neutral: '#272f4d',
};
export default colors;

View File

@@ -0,0 +1,30 @@
export type InputSize = 'small' | 'medium' | 'large';
export const applySize = (inputSize?: InputSize) => {
const sizeSpecificStyles = {
small: `
font-size: 1rem;
border-radius: 0.25rem;
padding: 0.5rem 1rem;
margin: 0.5rem;
`,
medium: `
font-size: 1.5rem;
border-radius: 0.25rem;
padding: 0.75rem 1.5rem;
margin: 0.5rem;
`,
large: `
font-size: 2rem;
border-radius: 0.25rem;
padding: 1rem 1.75rem;
margin: 0.5rem;
`,
};
switch (inputSize) {
case 'small': return sizeSpecificStyles.small;
case 'medium': return sizeSpecificStyles.medium;
case 'large': return sizeSpecificStyles.large;
default: return sizeSpecificStyles.small;
}
};

View File

@@ -0,0 +1,17 @@
import { Global, css } from '@emotion/react';
const GlobalStyles = () => (
<Global
styles={css`
@font-face {
font-family: PTMono;
font-style: normal;
font-weight: 400;
src: url('/fonts/PTMono.ttf') format('ttf');
}
body { font-family: PTMono; }
`}
/>
);
export default GlobalStyles;

View File

@@ -0,0 +1,51 @@
@font-face {
font-family: 'PTMono';
src: url('/fonts/PTMono-Regular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: 'PTMono', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
background: #141d2b;
color: #fff;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
}
#fancy-background { color: var(--background, #141d2b); }
::selection {
background: var(--primary, #9fef00);
color: var(--background, #141d2b);
}
svg.rsm-svg {
background: #2a3240;
border-radius: 6px;
}
:root {
--toastify-color-dark: #111927 !important;
--toastify-color-info: #04e4f4 !important;
--toastify-color-success: #20e253 !important;
--toastify-color-warning: #f6f000 !important;
--toastify-color-error: #f80363 !important;
}
#fancy-background {
position: absolute;
}

View File

@@ -0,0 +1,23 @@
export const TextSizes = {
xSmall: '0.75rem',
small: '1rem',
medium: '1.5rem',
large: '2rem',
xLarge: '3rem',
xxLarge: '4rem',
};
export const TextReset = `
font-size: ${TextSizes.small};
font-family: PTMono, Helvetica, Arial, sans-serif;
font-weight: 400;
font-style: normal;
font-stretch: normal;
line-height: normal;
letter-spacing: 0.38px;
margin: 0;
padding: 0;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
`;