index.less
2.33 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
.upload-media-page {
min-height: 100vh;
background-color: #f9fafb;
}
.upload-area {
padding: 1rem;
}
.upload-button {
border: 2px dashed #d1d5db;
border-radius: 0.5rem;
padding: 2rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
margin-bottom: 1rem;
background-color: #ffffff;
transition: all 0.3s ease;
&:active {
background-color: #f3f4f6;
border-color: #9ca3af;
}
}
.preview-container {
margin-bottom: 1rem;
.preview-item {
position: relative;
border-radius: 0.5rem;
overflow: hidden;
background-color: #ffffff;
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}
.remove-button {
position: absolute;
top: 0.5rem;
right: 0.5rem;
width: 2rem;
height: 2rem;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 10;
}
.video-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
.play-button {
width: 4rem;
height: 4rem;
background-color: rgba(0, 0, 0, 0.6);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}
}
}
.file-info {
margin-top: 0.75rem;
padding: 0.75rem;
background-color: #ffffff;
border-radius: 0.5rem;
}
.action-buttons {
display: flex;
gap: 0.75rem;
.button {
flex: 1;
padding: 0.75rem;
border-radius: 0.5rem;
text-align: center;
font-weight: 500;
transition: all 0.3s ease;
&.secondary {
background-color: #f3f4f6;
color: #374151;
&:active {
background-color: #e5e7eb;
}
}
&.primary {
background-color: var(--primary-color);
color: #ffffff;
&:active {
background-color: #2563eb;
}
}
}
}
.video-modal {
position: fixed;
inset: 0;
background-color: #000000;
z-index: 9999;
.close-button {
position: absolute;
top: 1rem;
right: 1rem;
width: 2.5rem;
height: 2.5rem;
background-color: rgba(0, 0, 0, 0.5);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
}
video {
width: 100vw;
height: 100vh;
position: absolute;
top: 0;
left: 0;
}
}