This commit is contained in:
2024-03-01 11:43:31 +03:00
parent ff1f8e0452
commit 9e1c2c9504
12 changed files with 400 additions and 226 deletions
+97 -54
View File
@@ -1,50 +1,51 @@
import styled from '@emotion/styled';
import { css, keyframes } from '@emotion/react';
import styled from '@emotion/styled'
import { css, keyframes } from '@emotion/react'
export const MainWrapper = styled.main`
display: flex;
justify-content: center;
align-items: center;
height: 100%;
`;
display: flex;
justify-content: center;
align-items: center;
height: 100%;
`
export const InputWrapper = styled.div`
position: relative;
padding: 12px;
display: flex;
align-items: center;
position: relative;
padding: 12px;
display: flex;
align-items: center;
@media screen and (max-width: 600px) {
flex-direction: column;
}
`;
@media screen and (max-width: 600px) {
flex-direction: column;
}
`
export const InputLabel = styled.label`
position: absolute;
top: -8px;
left: 24px;
z-index: 2;
`;
position: absolute;
top: -8px;
left: 24px;
z-index: 2;
`
export const InputElement = styled.input`
border: 1px solid #ccc;
padding: 12px;
font-size: 24px;
border-radius: 8px;
color: #117623;
max-width: 90vw;
`;
border: 1px solid #ccc;
padding: 12px;
font-size: 24px;
border-radius: 8px;
color: #117623;
max-width: 90vw;
box-shadow: inset 7px 8px 20px 8px #4990db12;
`
export const ArrowImg = styled.img`
width: 48px;
height: 48px;
`;
width: 48px;
height: 48px;
`
export const IconButton = styled.button`
border: none;
background-color: rgba(0, 0, 0, 0);
display: flex;
align-items: center;
height: 100%;
`;
border: none;
background-color: rgba(0, 0, 0, 0);
display: flex;
align-items: center;
height: 100%;
`
const reveal = keyframes`
0% {
@@ -54,25 +55,33 @@ const reveal = keyframes`
100% {
transform: scale(1);
}
`;
`
export const StartWrapper = styled.div`
animation: ${reveal} 1s ease forwards;
/* box-shadow: 0 -2px 5px rgba(255,255,255,0.05), 0 2px 5px rgba(255,255,255,0.1); */
width: 650px;
height: calc(100vh - 300px);
/* margin: 60px auto; */
position: relative;
`;
animation: ${reveal} 1s ease forwards;
/* box-shadow: 0 -2px 5px rgba(255,255,255,0.05), 0 2px 5px rgba(255,255,255,0.1); */
width: 650px;
height: calc(100vh - 300px);
/* margin: 60px auto; */
position: relative;
`
export const Svg = styled.svg`
position: absolute;
top: 50%;
left: 50%;
transform-origin: 50% 50%;
transform: translate(-50%, -50%);
/* stroke-dasharray: 600; */
`;
position: absolute;
top: 50%;
left: 50%;
transform-origin: 50% 50%;
transform: translate(-50%, -50%);
/* stroke-dasharray: 600; */
`
export const Papper = styled.div`
position: relative;
background-color: #ffffff;
border-radius: 12px;
padding: 32px 16px 16px;
box-shadow: 2px 2px 6px #0000005c;
`
export const LessonItem = styled.li`
list-style: none;
@@ -81,13 +90,47 @@ export const LessonItem = styled.li`
border-radius: 12px;
box-shadow: 2px 2px 6px #0000005c;
margin-bottom: 12px;
`;
`
export const Lessonname = styled.span`
display: inline-box;
margin-right: 12px;
`;
`
export const QRCanvas = styled.canvas`
display: block;
`;
`
export const ErrorSpan = styled.span`
color: #f9e2e2;
display: block;
padding: 16px;
background-color: #d32f0b;
border-radius: 11px;
`
export const Cross = styled.button`
position: absolute;
right: 19px;
top: 14px;
font-size: 24px;
padding: 7px;
cursor: pointer;
background-color: #fff;
border: none;
:hover {
background-color: #d7181812;
border-radius: 20px;
}
`
export const AddButton = styled.button`
background-color: transparent;
border: none;
cursor: pointer;
:hover {
box-shadow: 3px 2px 5px #00000038;
}
`