-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
113 lines (100 loc) · 2.41 KB
/
styles.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/* General Styles */
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
box-sizing: border-box;
background-color: #f4f4f9;
}
.container {
display: flex;
height: 100vh;
padding: 20px;
gap: 20px;
}
.right-panel, .left-panel {
flex: 1;
background: white;
padding: 20px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.right-panel {
display: flex;
flex-direction: column;
}
.left-panel {
display: flex;
flex-direction: column;
align-items: center;
}
textarea {
width: 100%;
padding: 10px;
margin-bottom: 10px;
border: 1px solid #ddd;
border-radius: 4px;
}
button {
padding: 10px 20px;
border: none;
border-radius: 4px;
background-color: #34A0A4;
color: white;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #1A759F;
}
.hidden {
display: none;
}
/* Loader Styles */
.camera {
width: 50px;
aspect-ratio: 1 / 1;
perspective: 500px;
}
.camera .container {
--x-pivot: -45deg;
transform-style: preserve-3d;
position: relative;
height: 100%;
width: 100%;
transform-origin: center;
transform: rotateX(var(--x-pivot)) rotateY(0deg);
animation: rotate 2.8s infinite;
}
.camera .side {
--i: 0;
--stroke: 2px;
height: calc(100% - var(--stroke) * 2);
width: calc(50% - var(--stroke) * 2);
position: absolute;
background: white;
border: var(--stroke) solid black;
transform: rotate3d(0, 1, 0, calc(45deg * var(--i)));
transform-origin: right center;
backface-visibility: visible;
}
/* Ensuring all sides are positioned correctly */
.camera .side:nth-child(1) { --i: 0; }
.camera .side:nth-child(2) { --i: 1; transform: rotate3d(0, 1, 0, 90deg); }
.camera .side:nth-child(3) { --i: 2; transform: rotate3d(0, 1, 0, 180deg); }
.camera .side:nth-child(4) { --i: 3; transform: rotate3d(0, 1, 0, 270deg); }
@keyframes rotate {
0% {
transform: rotateX(var(--x-pivot)) rotateY(22.5deg);
animation-timing-function: cubic-bezier(0.71, 0, 0.23, 0.99);
}
50% {
transform: rotateX(var(--x-pivot)) rotateY(200.5deg);
animation-timing-function: cubic-bezier(0.71, 0, 0.23, 0.99);
}
100% {
transform: rotateX(var(--x-pivot)) rotateY(382.5deg);
animation-timing-function: cubic-bezier(0.71, 0, 0.23, 0.99);
}
}