-
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.
Signed-off-by: Souptik Datta <souptikdatta2001@gmail.com>
- Loading branch information
1 parent
cc0b4e0
commit 9c6517f
Showing
9 changed files
with
108 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import { Flex } from "@chakra-ui/react"; | ||
|
||
const Notice = ({ children, ...props }) => { | ||
return ( | ||
<Flex | ||
className="notice" | ||
justifyContent="center" | ||
alignItems="center" | ||
letterSpacing="4px" | ||
wordSpacing="12px" | ||
fontSize="13px" | ||
color={"white"} | ||
position="sticky" | ||
top="0" | ||
px={["15px", null, null, "92px"]} | ||
py={2} | ||
borderBottom="1px solid rgba(255, 255, 255, 0.2)" | ||
background="rgba(0, 0, 0, 0.6)" | ||
backdropFilter="blur(6px)" | ||
textAlign="center" | ||
zIndex={20} | ||
{...props} | ||
> | ||
{children} | ||
</Flex> | ||
); | ||
}; | ||
|
||
export default Notice; |
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,16 @@ | ||
import { Box } from "@chakra-ui/react"; | ||
|
||
const Sticky = ({ children, ...props }) => { | ||
return ( | ||
<Box | ||
position="sticky" | ||
top="0" | ||
width={"100%"} | ||
{...props} | ||
> | ||
{children} | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Sticky; |
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