-
Notifications
You must be signed in to change notification settings - Fork 24
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
26 changed files
with
639 additions
and
339 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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,33 @@ | ||
import { StyleProps, Box } from "@chakra-ui/react"; | ||
|
||
const Dot = ({ | ||
active, | ||
onClick, | ||
...props | ||
}: { active: boolean; onClick: () => void } & StyleProps) => ( | ||
<Box onClick={onClick} cursor={"pointer"} {...props}> | ||
<svg | ||
width="16" | ||
height="16" | ||
viewBox="0 0 16 16" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
{active ? ( | ||
<Box | ||
as="path" | ||
d="M5.99667 2V2.99917H3.99833V3.99833H2.99917V5.99667H2V10.0033H2.99917V12.0017H3.99833V13.0008H5.99667V14H10.0033V13.0008H12.0017V12.0017H13.0008V10.0033H14V5.99667H13.0008V3.99833H12.0017V2.99917H10.0033V2H5.99667Z" | ||
fill="neon.200" | ||
/> | ||
) : ( | ||
<Box | ||
as="path" | ||
d="M6.66445 4V4.66611H5.33222V5.33222H4.66611V6.66445H4V9.33555H4.66611V10.6678H5.33222V11.3339H6.66445V12H9.33555V11.3339H10.6678V10.6678H11.3339V9.33555H12V6.66445H11.3339V5.33222H10.6678V4.66611H9.33555V4H6.66445Z" | ||
fill="neon.500" | ||
/> | ||
)} | ||
</svg> | ||
</Box> | ||
); | ||
|
||
export default Dot; |
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,233 @@ | ||
import { | ||
Text, | ||
VStack, | ||
HStack, | ||
Divider, | ||
Card, | ||
Heading, | ||
Image, | ||
Box, | ||
Link as ChakraLink, | ||
keyframes, | ||
} from "@chakra-ui/react"; | ||
import Layout from "@/components/Layout"; | ||
import Button from "@/components/Button"; | ||
import { ScrollDown } from "@/components/icons/ScrollDown"; | ||
import { Cartridge } from "@/components/icons/branding/Cartridge"; | ||
import { Dojo } from "@/components/icons/branding/Dojo"; | ||
|
||
const floatAnim = keyframes` | ||
0% {transform: translateY(0%);} | ||
25% {transform: translateY(-6px);} | ||
50% {transform: translateY(0%);} | ||
70% {transform: translateY(8px);} | ||
`; | ||
|
||
const steps = [ | ||
{ | ||
step: 1, | ||
title: "Buy Low", | ||
desc: "A short description of this step, maybe one to two sentences. Here is one.", | ||
}, | ||
{ | ||
step: 2, | ||
title: "Sell High", | ||
desc: "A short description of this step, maybe one to two sentences. Here is one.", | ||
}, | ||
{ | ||
step: 3, | ||
title: "???", | ||
desc: "A short description of this step, maybe one to two sentences. Here is one.", | ||
}, | ||
{ | ||
step: 4, | ||
title: "Profit", | ||
desc: "A short description of this step, maybe one to two sentences. Here is one.", | ||
}, | ||
]; | ||
|
||
const HomeStep = ({ | ||
step, | ||
}: { | ||
step: { step: number; title: string; desc: string }; | ||
}) => { | ||
return ( | ||
<> | ||
<HStack | ||
flexDirection={step.step % 2 == 1 ? "row" : "row-reverse"} | ||
gap="20px" | ||
> | ||
<Image | ||
src={`/images/landing/step${step.step}.png`} | ||
alt={`step${step.step}`} | ||
w="42%" | ||
/> | ||
|
||
<VStack w="58%" alignItems="flex-start" py="100px"> | ||
<HStack> | ||
<Image | ||
src={`/images/landing/step${step.step}-icon.png`} | ||
alt={`step${step.step}`} | ||
w="92px" | ||
/> | ||
<VStack alignItems="flex-start"> | ||
<Text | ||
fontSize="11px" | ||
fontFamily="broken-console" | ||
backgroundColor="#174127" | ||
padding="0.5rem 0.5rem 0.25rem" | ||
> | ||
Step {step.step} | ||
</Text> | ||
<Heading | ||
fontFamily={"ppneuebit"} | ||
fontSize="44px" | ||
lineHeight={"1"} | ||
> | ||
{step.title} | ||
</Heading> | ||
</VStack> | ||
</HStack> | ||
{/* <Text p="10px">{step.desc}</Text> */} | ||
</VStack> | ||
</HStack> | ||
</> | ||
); | ||
}; | ||
|
||
const onScrollDown = () => { | ||
let steps = document.getElementById("steps"); | ||
|
||
setTimeout(() => { | ||
steps && | ||
steps.scrollIntoView({ | ||
behavior: "smooth", | ||
block: "start", | ||
inline: "nearest", | ||
}); | ||
}, 10); | ||
}; | ||
|
||
const HomeLeftPanel = () => { | ||
return ( | ||
<> | ||
<VStack | ||
my="auto" | ||
flex={["auto", "1"]} | ||
position="relative" | ||
maxH={["80px", "800px"]} | ||
overflow="hidden" | ||
overflowY="auto" | ||
sx={{ | ||
"::-webkit-scrollbar": { | ||
display: "none", | ||
}, | ||
"scrollbar-width": "none", | ||
}} | ||
> | ||
<VStack zIndex="2"> | ||
<Text textStyle="subheading" fontSize="11px"> | ||
DOPE WARS | ||
</Text> | ||
<Heading fontSize={["40px", "48px"]} fontWeight="normal"> | ||
Roll your Own | ||
</Heading> | ||
</VStack> | ||
|
||
<VStack position="relative" top="-160px" display={["none", "flex"]}> | ||
<Image | ||
src={"/images/landing/main.png"} | ||
maxH="75vh" | ||
display={["none", "block"]} | ||
alt="context" | ||
/> | ||
|
||
<Box | ||
id="steps" | ||
style={{ marginTop: "30px" }} | ||
position="relative" | ||
onClick={() => onScrollDown()} | ||
animation={`${floatAnim} infinite 3s linear`} | ||
cursor={"pointer"} | ||
> | ||
<ScrollDown width="40px" height="40px" /> | ||
</Box> | ||
|
||
<Box> | ||
{steps.map((step) => { | ||
return <HomeStep step={step} key={step.step} />; | ||
})} | ||
</Box> | ||
|
||
<HStack py="100px"> | ||
<Card | ||
display="flex" | ||
flexDirection="row" | ||
p="2" | ||
alignItems="center" | ||
variant="pixelated" | ||
px="5" | ||
> | ||
<ChakraLink | ||
href="https://cartridge.gg/" | ||
target="_blank" | ||
display="flex" | ||
justifyContent="center" | ||
alignItems="center" | ||
textDecoration="none" | ||
_hover={{ | ||
color: "cartridgeYellow", | ||
}} | ||
> | ||
BUILT BY <Cartridge ml="2" /> | ||
</ChakraLink> | ||
|
||
<Text px="2" fontSize="xl"> | ||
| | ||
</Text> | ||
<ChakraLink | ||
href="https://dojoengine.org/" | ||
target="_blank" | ||
display="flex" | ||
justifyContent="center" | ||
alignItems="center" | ||
textDecoration="none" | ||
_hover={{ | ||
color: "dojoRed", | ||
}} | ||
> | ||
BUILT WITH <Dojo ml="2" /> | ||
</ChakraLink> | ||
</Card> | ||
</HStack> | ||
</VStack> | ||
</VStack> | ||
|
||
<HStack | ||
w="calc((100% - 100px) / 2)" | ||
h="200px" | ||
position="absolute" | ||
display={["none", "block"]} | ||
top="0px" | ||
marginTop="-80px" | ||
zIndex={1} | ||
background="linear-gradient(#172217, #172217, transparent)" | ||
pointerEvents="none" | ||
></HStack> | ||
|
||
<HStack | ||
w="calc((100% - 100px) / 2)" | ||
h="200px" | ||
position="absolute" | ||
display={["none", "block"]} | ||
bottom="0px" | ||
marginBottom="-80px" | ||
zIndex={1} | ||
background="linear-gradient(transparent, #172217, #172217)" | ||
pointerEvents="none" | ||
></HStack> | ||
</> | ||
); | ||
}; | ||
|
||
export default HomeLeftPanel; |
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.
573e00f
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.
Successfully deployed to the following URLs:
rollyourown – ./
rollyourown-git-main.preview.cartridge.gg
rollyourown.preview.cartridge.gg