-
Notifications
You must be signed in to change notification settings - Fork 3
/
style-welcome.css
211 lines (186 loc) · 3.91 KB
/
style-welcome.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
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
html, body {
overflow-x: hidden;
margin: 0;
padding: 0;
width: 100%;
height: 100%;
box-sizing: border-box;
}
body {
background-image: url('/pics/G1.jpg');
background-size: cover;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center;
}
body::-webkit-scrollbar {
display: none;
}
/* Main picture section */
.main-pic {
position: relative;
max-width: 100vw;
overflow-x: hidden;
height: 100vh; /* Ensure the section takes full height of viewport */
}
.logo {
position: absolute;
top: 35%;
left: 62%;
transform: translate(-50%, -50%);
max-width: 100%; /* Ensure logo doesn't exceed container width */
}
/* Bottom bar */
.bottom-bar {
position: fixed;
left: 0;
bottom: 0;
width: 100vw;
background: #000; /* Black background */
height: 45px;
overflow: hidden;
transition: 0.6s ease;
transition-property: left;
padding: 0;
box-sizing: border-box;
}
.bottom-bar .text p {
margin: 0;
padding: 10px;
font-size: 25px;
color: white;
font-weight: 500;
white-space: nowrap;
}
#notice-board.show {
display: block;
}
.notice-board {
position: absolute;
top: 52%;
right: 1%;
transform: translateY(-50%);
/* width: 20%; */
background-color: #333333e0;
color: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.541);
height: 80vh;
overflow-y: auto;
}
.notice-board h2 {
text-align: center;
padding: 15px;
}
.notice {
background-color: #535353;
padding: 10px;
margin: 10px 0;
border-radius: 5px;
position: relative;
}
.notice.recent {
background-color: #555555;
font-weight: bold;
}
.notice p {
margin: 0;
}
.notice small {
display: block;
text-align: right;
color: #bbb;
}
.notice.recent::after {
content: '';
position: absolute;
top: 10px;
right: 10px;
width: 10px;
height: 10px;
background-color: red;
border-radius: 50%;
animation: blink 1s infinite;
}
@keyframes blink {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
/* Add styles for the floating button */
.notice-btn {
position: fixed;
border-radius: 3rem;
top: 84vh;
right: 10px;
/* background-color: #333; */
color: #000;
border: none;
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
z-index: 1;
z-index: 1; /* Ensure the button is on top of other elements */
}
.notice-btn:hover {
background-color: #333333e0;
color: white;
}
/* Hide the notice board by default on small screens */
@media screen and (max-width: 760px) {
#notice-board {
display: none;
}
}
/* Show the notice board when the button is clicked on small screens */
@media screen and (max-width: 760px) {
#notice-board.show {
display: block;
width: initial;
}
}
/* Media Queries for Responsiveness */
@media screen and (max-width: 600px) {
.logo {
max-width: 75%; /* Adjust the logo size for smaller screens */
top: 15%;
left: auto;
right: 20px;
transform: none; /* Reset transform property */
}
.bottom-bar .text p {
margin-bottom: 10px;
font-size: 12px;
}
}
/* Medium Devices (tablets, 600px to 768px) */
@media screen and (min-width: 601px) and (max-width: 768px) {
.logo {
max-width: 70%; /* Adjust the logo size for medium screens */
}
.bottom-bar .text p {
font-size: 13px;
}
}
/* Large Devices (desktops, 768px and up) */
@media screen and (min-width: 769px) {
.logo {
max-width: 60%; /* Adjust the logo size for large screens */
}
.bottom-bar .text p {
font-size: 15px;
}
.notice-btn{
display: none;
}
}