-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from hydralauncher/feat/adding-installation-i…
…nstructions Feat/adding installation instructions
- Loading branch information
Showing
49 changed files
with
623 additions
and
297 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { keyframes } from "@vanilla-extract/css"; | ||
import { recipe } from "@vanilla-extract/recipes"; | ||
import { SPACING_UNIT } from "../../theme.css"; | ||
|
||
export const backdropFadeIn = keyframes({ | ||
"0%": { backdropFilter: "blur(0px)", backgroundColor: "rgba(0, 0, 0, 0.5)" }, | ||
"100%": { | ||
backdropFilter: "blur(2px)", | ||
backgroundColor: "rgba(0, 0, 0, 0.7)", | ||
}, | ||
}); | ||
|
||
export const backdropFadeOut = keyframes({ | ||
"0%": { backdropFilter: "blur(2px)", backgroundColor: "rgba(0, 0, 0, 0.7)" }, | ||
"100%": { | ||
backdropFilter: "blur(0px)", | ||
backgroundColor: "rgba(0, 0, 0, 0)", | ||
}, | ||
}); | ||
|
||
export const backdrop = recipe({ | ||
base: { | ||
animationName: backdropFadeIn, | ||
animationDuration: "0.4s", | ||
backgroundColor: "rgba(0, 0, 0, 0.7)", | ||
position: "absolute", | ||
width: "100%", | ||
height: "100%", | ||
display: "flex", | ||
justifyContent: "center", | ||
alignItems: "center", | ||
zIndex: 1, | ||
top: 0, | ||
padding: `${SPACING_UNIT * 3}px`, | ||
backdropFilter: "blur(2px)", | ||
transition: "all ease 0.2s", | ||
}, | ||
variants: { | ||
closing: { | ||
true: { | ||
animationName: backdropFadeOut, | ||
backdropFilter: "blur(0px)", | ||
backgroundColor: "rgba(0, 0, 0, 0)", | ||
}, | ||
}, | ||
}, | ||
}); |
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,12 @@ | ||
import * as styles from "./backdrop.css"; | ||
|
||
export interface BackdropProps { | ||
isClosing?: boolean; | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Backdrop({ isClosing = false, children }: BackdropProps) { | ||
return ( | ||
<div className={styles.backdrop({ closing: isClosing })}>{children}</div> | ||
); | ||
} |
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
Oops, something went wrong.