Skip to content

Commit b46b5fd

Browse files
committed
.
1 parent 03f3818 commit b46b5fd

File tree

2 files changed

+177
-0
lines changed

2 files changed

+177
-0
lines changed

src/components/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { IdentityProvider } from '../providers/IdentityProvider.tsx'
33
import { Home } from './Home.tsx'
44
import { Login } from './Login.tsx'
55
import MinerPage from './MinerPage.tsx'
6+
import '../scss/App.scss'
67

78
function App() {
89

src/scss/App.scss

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
@import url(https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap);
2+
3+
* {
4+
box-sizing: border-box;
5+
font-family: 'Share Tech Mono', monospace;
6+
}
7+
8+
body {
9+
background: #0a060d;
10+
// background: #111;
11+
color: #ccc;
12+
font-size: 16px;
13+
// cursor: crosshair;
14+
}
15+
16+
// default stuff
17+
:root {
18+
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
19+
line-height: 1.5;
20+
font-weight: 400;
21+
22+
color-scheme: light dark;
23+
color: rgba(255, 255, 255, 0.87);
24+
background-color: #242424;
25+
26+
font-synthesis: none;
27+
text-rendering: optimizeLegibility;
28+
-webkit-font-smoothing: antialiased;
29+
-moz-osx-font-smoothing: grayscale;
30+
-webkit-text-size-adjust: 100%;
31+
}
32+
33+
a {
34+
font-weight: 500;
35+
color: #646cff;
36+
text-decoration: inherit;
37+
}
38+
a:hover {
39+
color: #535bf2;
40+
}
41+
42+
body {
43+
margin: 0;
44+
display: flex;
45+
min-width: 100vw;
46+
min-height: 100vh;
47+
}
48+
49+
#root {
50+
min-width: 100vw;
51+
min-height: 100vh;
52+
}
53+
54+
#app {
55+
max-width: 100vw;
56+
}
57+
58+
h1 {
59+
font-size: 3.2em;
60+
line-height: 1.1;
61+
}
62+
63+
button {
64+
border-radius: 8px;
65+
border: 1px solid transparent;
66+
padding: 0.6em 1.2em;
67+
font-size: 1em;
68+
font-weight: 500;
69+
font-family: inherit;
70+
background-color: #1a1a1a;
71+
cursor: pointer;
72+
transition: border-color 0.25s;
73+
}
74+
button:hover {
75+
border-color: #646cff;
76+
}
77+
button:focus,
78+
button:focus-visible {
79+
outline: 4px auto -webkit-focus-ring-color;
80+
}
81+
82+
@media (prefers-color-scheme: light) {
83+
:root {
84+
color: #213547;
85+
background-color: #ffffff;
86+
}
87+
a:hover {
88+
color: #747bff;
89+
}
90+
button {
91+
background-color: #f9f9f9;
92+
}
93+
}
94+
95+
// end defalut vite stuff
96+
97+
#app {
98+
margin: 1rem;
99+
}
100+
101+
.actions {
102+
display: flex;
103+
justify-content: space-evenly;
104+
margin: 0 -1rem;
105+
button {
106+
flex-grow: 2;
107+
margin: 1rem;
108+
padding: 1rem 0;
109+
}
110+
}
111+
112+
input {
113+
font-size: 1.2rem;
114+
}
115+
.input-hash {
116+
line-height: 1;
117+
padding: 0.5rem;
118+
width: 100%;
119+
position: relative;
120+
border: 1px solid #ccc;
121+
outline: none;
122+
&.valid {
123+
border: 1px solid rgb(64, 190, 64);
124+
text-align: center;
125+
}
126+
&.valid:focus-visible {
127+
border-left-width: 1em;
128+
border-right-width: 1em;
129+
transition: all 150ms ease-in-out;
130+
text-align: center;
131+
}
132+
}
133+
134+
.logo {
135+
display: flex;
136+
justify-content: center;
137+
#construct-logo, #construct-holo {
138+
margin: 1rem 0;
139+
max-width: 20vh;
140+
line {
141+
fill: none;
142+
stroke: #ccc;
143+
stroke-linecap: round;
144+
stroke-linejoin: round;
145+
stroke-width: 3px;
146+
transition: stroke 250ms ease-in-out;
147+
}
148+
&:hover line {
149+
stroke: #646cff;
150+
}
151+
}
152+
#construct-holo {
153+
max-width: 40vh;
154+
margin-top: -5vh;
155+
}
156+
}
157+
158+
.intro-title {
159+
text-align: center;
160+
}
161+
162+
.highlight-purple {
163+
color: #646cff;
164+
}
165+
.highlight-pink {
166+
color: #f33a5b;
167+
}
168+
169+
.alone {
170+
display: block;
171+
width: 100%;
172+
}
173+
174+
.jp {
175+
font-family: monospace;
176+
}

0 commit comments

Comments
 (0)