-
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.
Merge branch 'next' into task/OV-11-add-header
- Loading branch information
Showing
7 changed files
with
94 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Task | ||
description: Abstract task description | ||
title: 'TASK:' | ||
projects: 'BinaryStudioAcademy/30' | ||
body: | ||
- type: textarea | ||
id: what-feature | ||
attributes: | ||
label: What task? | ||
placeholder: Add descriptions | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: screenshots | ||
attributes: | ||
label: Add screenshots | ||
placeholder: Add screenshots, mockups, etc. |
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
1 change: 1 addition & 0 deletions
1
frontend/src/bundles/common/components/loader/libs/constants/constants.ts
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 @@ | ||
export { SPIN_ANIMATION } from './spin-animation.constant.js'; |
8 changes: 8 additions & 0 deletions
8
frontend/src/bundles/common/components/loader/libs/constants/spin-animation.constant.ts
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,8 @@ | ||
import { keyframes } from '@chakra-ui/react'; | ||
|
||
const SPIN_ANIMATION = keyframes` | ||
0% { transform: rotate(0deg);} | ||
100% { transform: rotate(360deg)} | ||
`; | ||
|
||
export { SPIN_ANIMATION }; |
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,32 @@ | ||
import { Box, Circle, Flex, Text } from '@chakra-ui/react'; | ||
|
||
import { SPIN_ANIMATION } from './libs/constants/constants.js'; | ||
|
||
const Loader = (): JSX.Element => { | ||
return ( | ||
<Flex flexDirection="column" alignItems="center"> | ||
<Box position="relative" width="100px" height="100px"> | ||
<Circle | ||
size="full" | ||
backgroundColor="white" | ||
color="text.default" | ||
> | ||
LOGO | ||
</Circle> | ||
<Circle | ||
position="absolute" | ||
inset="0" | ||
borderWidth="5px" | ||
borderColor="shadow.200" | ||
borderTopColor="brand.secondary.300" | ||
animation={`${SPIN_ANIMATION} 1s linear infinite`} | ||
/> | ||
</Box> | ||
<Text fontSize="lg" marginTop="10px"> | ||
Loading... | ||
</Text> | ||
</Flex> | ||
); | ||
}; | ||
|
||
export { Loader }; |
26 changes: 26 additions & 0 deletions
26
frontend/src/bundles/common/components/overlay/overlay.tsx
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,26 @@ | ||
import { Fade, Flex } from '@chakra-ui/react'; | ||
|
||
type Properties = { | ||
isOpen: boolean; | ||
children: React.ReactNode; | ||
}; | ||
|
||
const Overlay = ({ isOpen, children }: Properties): JSX.Element => { | ||
return ( | ||
<Fade in={isOpen}> | ||
<Flex | ||
width="full" | ||
height="full" | ||
position="absolute" | ||
background="shadow.700" | ||
color="white" | ||
justifyContent="center" | ||
alignItems="center" | ||
> | ||
{children} | ||
</Flex> | ||
</Fade> | ||
); | ||
}; | ||
|
||
export { Overlay }; |
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