forked from arktypeio/arktype
-
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.
docs: website margin improvements (arktypeio#821)
@malezjaa I can live with that! Merged⛵ Thank you for your help and congrats on your first ArkType PR!🎊
- Loading branch information
Showing
5 changed files
with
91 additions
and
48 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
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 |
---|---|---|
|
@@ -16,43 +16,46 @@ export const HomeDemo = () => { | |
const [isActive, setIsActive] = useState<boolean>(pathname.includes("try")) | ||
const backgroundColor = isDarkMode ? "#ffffff00" : "#000000aa" | ||
return ( | ||
<Stack alignItems="start" width="100%"> | ||
<Button | ||
variant="contained" | ||
sx={{ | ||
backgroundColor, | ||
backdropFilter: "blur(4px)", | ||
borderRadius: "2rem", | ||
fontSize: "1.5rem", | ||
fontFamily: cascadiaCodeFamily, | ||
textTransform: "none", | ||
color: palette.primary.main, | ||
"&:hover": { | ||
<> | ||
<Stack alignItems="start" width="100%"> | ||
<Button | ||
variant="contained" | ||
sx={{ | ||
backgroundColor, | ||
color: palette.secondary.main, | ||
backdropFilter: "blur(6px)" | ||
}, | ||
zIndex: 1 | ||
}} | ||
onClick={() => setIsActive(!isActive)} | ||
endIcon={ | ||
<div style={{ display: "flex" }}> | ||
{isActive ? <Collapse /> : <Expand />} | ||
</div> | ||
} | ||
> | ||
{isActive ? "$ wq!" : "$ code demo.ts"} | ||
<motion.div | ||
animate={{ opacity: 0 }} | ||
transition={{ | ||
duration: 0.5, | ||
repeatType: "mirror", | ||
repeat: Infinity | ||
backdropFilter: "blur(4px)", | ||
borderRadius: "2rem", | ||
fontSize: "1.5rem", | ||
fontFamily: cascadiaCodeFamily, | ||
textTransform: "none", | ||
color: palette.primary.main, | ||
"&:hover": { | ||
backgroundColor, | ||
color: palette.secondary.main, | ||
backdropFilter: "blur(6px)" | ||
}, | ||
zIndex: 1 | ||
}} | ||
onClick={() => setIsActive(!isActive)} | ||
endIcon={ | ||
<div style={{ display: "flex" }}> | ||
{isActive ? <Collapse /> : <Expand />} | ||
</div> | ||
} | ||
> | ||
_ | ||
</motion.div> | ||
</Button> | ||
{isActive ? "$ wq!" : "$ code demo.ts"} | ||
<motion.div | ||
animate={{ opacity: 0 }} | ||
transition={{ | ||
duration: 0.5, | ||
repeatType: "mirror", | ||
repeat: Infinity | ||
}} | ||
> | ||
_ | ||
</motion.div> | ||
</Button> | ||
</Stack> | ||
|
||
<Stack width="100%"> | ||
{isActive ? ( | ||
<StackBlitzDemo embedId="demo" /> | ||
|
@@ -66,7 +69,7 @@ export const HomeDemo = () => { | |
/> | ||
)} | ||
</Stack> | ||
<sub> | ||
<sub style={{ marginLeft: "2.3px", marginTop: "5px" }}> | ||
<code>[email protected]</code> in VS Code— no extensions or | ||
plugins required ( | ||
<a | ||
|
@@ -77,6 +80,6 @@ export const HomeDemo = () => { | |
</a> | ||
) | ||
</sub> | ||
</Stack> | ||
</> | ||
) | ||
} |
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