Skip to content

Commit 36800e6

Browse files
committed
Update legal.html
1 parent 072e896 commit 36800e6

File tree

1 file changed

+51
-12
lines changed

1 file changed

+51
-12
lines changed

MYXXfm/pages/legal.html

Lines changed: 51 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,50 @@
6565
border-bottom-color: transparent;
6666
text-decoration: underline;
6767
}
68+
/* Spinner styles */
69+
.fade-overlay {
70+
position: fixed;
71+
top: 0;
72+
left: 0;
73+
width: 100%;
74+
height: 100%;
75+
background-color: black;
76+
opacity: 1; /* Initially visible */
77+
transition: opacity 0.5s ease-out; /* Adjust timing and easing as needed */
78+
z-index: 9999; /* Ensure it sits on top of other content */
79+
display: flex;
80+
align-items: center;
81+
justify-content: center;
82+
}
83+
.spinner {
84+
border: 8px solid rgba(0, 0, 0, 0.1); /* Light grey border */
85+
border-radius: 50%;
86+
border-top: 8px solid #EFD500; /* Spinner color */
87+
width: 10vw; /* Responsive width (10% of viewport width) */
88+
height: 10vw; /* Responsive height (10% of viewport width) */
89+
max-width: 100px; /* Maximum width */
90+
max-height: 100px; /* Maximum height */
91+
animation: spin 1s linear infinite; /* Adjust animation duration */
92+
margin-top: 40px; /* Adjust margin to move spinner down */
93+
}
94+
@keyframes spin {
95+
0% { transform: rotate(0deg); }
96+
100% { transform: rotate(360deg); }
97+
}
6898
@media (max-width: 768px) {
69-
.container {
70-
padding: 20px 40px; /* Adjusted padding for smaller screens */
71-
margin: 10px; /* Adjusted margin for smaller gap on mobile */
72-
}
73-
h1 {
74-
font-size: 22px;
75-
}
76-
h2 {
77-
font-size: 20px;
78-
}
79-
p {
80-
font-size: 14px;
99+
.spinner {
100+
width: 10vw; /* Adjust size for smaller screens */
101+
height: 10vw;
102+
max-width: 80px; /* Maximum width */
103+
max-height: 80px; /* Maximum height */
81104
}
82105
}
83106
</style>
84107
</head>
85108
<body>
109+
<div class="fade-overlay">
110+
<div class="spinner"></div>
111+
</div>
86112
<div class="container">
87113
<p><strong>Last updated: August 5, 2024</strong></p>
88114

@@ -147,5 +173,18 @@ <h1>Contact Us</h1>
147173
<li>By phone: (970) 989-6999</li>
148174
</ul>
149175
</div>
176+
177+
<script>
178+
// Automatically fade out after a set time
179+
setTimeout(() => {
180+
const overlay = document.querySelector('.fade-overlay');
181+
overlay.style.opacity = 0;
182+
// Optional: Remove overlay after fade-out to clean up
183+
setTimeout(() => {
184+
overlay.style.display = 'none';
185+
document.body.style.overflow = 'auto'; // Restore scrollbars
186+
}, 500); // Adjust the total duration before fading out
187+
}, 2000); // Adjust the time before starting fade-out (reduced to 2 seconds)
188+
</script>
150189
</body>
151190
</html>

0 commit comments

Comments
 (0)