Skip to content

Commit 948452f

Browse files
committed
Add bairesdev sponsor
1 parent b97a301 commit 948452f

File tree

2 files changed

+25
-22
lines changed

2 files changed

+25
-22
lines changed
5.16 KB
Loading

sites/docs/src/home/stage.js

+25-22
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from "react";
22
import useWindowSize from "./use-window-size";
33
import Speaker from "./speaker";
44
import logo from "./logo.small.svg";
5-
import jabci from "./logos/jabci.png";
5+
import bairesdev from "./logos/bairesdev.png";
66
import ocollective from "./logos/ocollective.svg";
77
import mdxdeck from "./logos/mdxdeck.png";
88
import wood from "./wood.png";
@@ -21,7 +21,7 @@ import {
2121
useScale,
2222
SpotLight,
2323
NoLights,
24-
PointLight
24+
PointLight,
2525
} from "react-vista";
2626
const whiteBackground = "#FAF9F5";
2727
const darkBackground = "#202226";
@@ -41,7 +41,7 @@ export default function Stage({ children, deck }) {
4141
width: "100%",
4242
overflow: "hidden",
4343
background: darkBackground,
44-
color: "#222"
44+
color: "#222",
4545
}}
4646
>
4747
<SceneContainer
@@ -53,7 +53,7 @@ export default function Stage({ children, deck }) {
5353
<SceneContent
5454
style={{
5555
height: h,
56-
width: "100%"
56+
width: "100%",
5757
// borderBottom: '1px red solid',
5858
}}
5959
origin={{ x: 0.5, y: yMiddle }}
@@ -69,7 +69,7 @@ export default function Stage({ children, deck }) {
6969
style={{
7070
background: "#FAF9F5",
7171
transformStyle: "preserve-3d",
72-
marginTop: -1
72+
marginTop: -1,
7373
}}
7474
>
7575
<div
@@ -79,7 +79,7 @@ export default function Stage({ children, deck }) {
7979
width: vw,
8080
backgroundImage: dividerTexture,
8181
backgroundColor: darkBackground,
82-
backgroundPosition: "center top"
82+
backgroundPosition: "center top",
8383
}}
8484
>
8585
<svg
@@ -92,7 +92,7 @@ export default function Stage({ children, deck }) {
9292
zIndex: "1",
9393
position: "absolute",
9494
bottom: -1,
95-
height: "90%"
95+
height: "90%",
9696
}}
9797
>
9898
<path
@@ -137,7 +137,7 @@ function StageObjects({ sceneWidth, sceneHeight, yMiddle, deck }) {
137137
</React.Fragment>
138138
)}
139139
<Move dy={3.2} dx={2} dz={startZ - 1}>
140-
<Pulpit onClick={() => setLightsOn(on => !on)} />
140+
<Pulpit onClick={() => setLightsOn((on) => !on)} />
141141
</Move>
142142
<Move dy={3.1} dz={startZ}>
143143
<Platform />
@@ -163,7 +163,7 @@ function Screen({ deck }) {
163163
width: deckWidth,
164164
height: (deckWidth * 9) / 16,
165165
transform: `scale(${(scale * 8) / deckWidth})`,
166-
transformOrigin: "left top"
166+
transformOrigin: "left top",
167167
}}
168168
>
169169
{deck}
@@ -183,7 +183,7 @@ function Top() {
183183
w={width}
184184
style={{
185185
background: "#161616",
186-
backgroundImage: `url("${wood}")`
186+
backgroundImage: `url("${wood}")`,
187187
}}
188188
/>
189189
{/* front */}
@@ -193,7 +193,7 @@ function Top() {
193193
w={width}
194194
style={{
195195
background: "#111",
196-
backgroundImage: `url("${wood}")`
196+
backgroundImage: `url("${wood}")`,
197197
}}
198198
/>
199199
</React.Fragment>
@@ -211,7 +211,7 @@ function Platform() {
211211
w={width}
212212
style={{
213213
background: "#161616",
214-
backgroundImage: `url("${wood}")`
214+
backgroundImage: `url("${wood}")`,
215215
}}
216216
/>
217217
{/* front */}
@@ -221,7 +221,7 @@ function Platform() {
221221
w={width}
222222
style={{
223223
background: "#111",
224-
backgroundImage: `url("${wood}")`
224+
backgroundImage: `url("${wood}")`,
225225
}}
226226
/>
227227
</React.Fragment>
@@ -244,7 +244,7 @@ function Pulpit({ onClick }) {
244244
fontFamily: "monospace",
245245
backgroundImage: `url("${purtyWood}")`,
246246
userSelect: "none",
247-
cursor: "pointer"
247+
cursor: "pointer",
248248
}}
249249
pinY={"bottom"}
250250
onClick={onClick}
@@ -266,8 +266,8 @@ function Banner() {
266266
w={1.5}
267267
h={4}
268268
style={{
269-
background: "#777",
270-
backgroundImage: `url("${shattered}")`
269+
background: "#999",
270+
backgroundImage: `url("${shattered}")`,
271271
}}
272272
>
273273
<div
@@ -280,7 +280,7 @@ function Banner() {
280280
height: "100%",
281281
boxSizing: "border-box",
282282
opacity: 0.7,
283-
transformStyle: "preserve-3d"
283+
transformStyle: "preserve-3d",
284284
}}
285285
>
286286
<a
@@ -298,7 +298,7 @@ function Banner() {
298298
fontSize: scale * 0.19,
299299
fontWeight: "bolder",
300300
textAlign: "center",
301-
display: "flex"
301+
display: "flex",
302302
}}
303303
>
304304
<img
@@ -312,8 +312,11 @@ function Banner() {
312312
<div>Deck</div>
313313
</div>
314314
</a>
315-
<a href="http://jabci.com/" style={{ width: "65%" }}>
316-
<img src={jabci} alt="jabci Logo" width="100%" />
315+
<a
316+
href="https://www.bairesdev.com/sponsoring-open-source-projects/"
317+
style={{ width: "95%" }}
318+
>
319+
<img src={bairesdev} alt="BairesDev Logo" width="100%" />
317320
</a>
318321
<a
319322
href="https://opencollective.com/code-surfer#sponsor"
@@ -324,7 +327,7 @@ function Banner() {
324327
fontSize: scale * 0.16,
325328
fontWeight: "bolder",
326329
textAlign: "center",
327-
display: "flex"
330+
display: "flex",
328331
}}
329332
>
330333
<img src={ocollective} alt="Open Collective Logo" width="30%" />
@@ -344,7 +347,7 @@ function Divider({ sceneWidth, sceneHeight, yMiddle }) {
344347
style={{
345348
background: darkBackground,
346349
backgroundImage: dividerTexture,
347-
backgroundPosition: "center bottom"
350+
backgroundPosition: "center bottom",
348351
}}
349352
h={8}
350353
w={sceneWidth * 1.7}

0 commit comments

Comments
 (0)