|
65 | 65 | border-bottom-color: transparent;
|
66 | 66 | text-decoration: underline;
|
67 | 67 | }
|
| 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 | + } |
68 | 98 | @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 */ |
81 | 104 | }
|
82 | 105 | }
|
83 | 106 | </style>
|
84 | 107 | </head>
|
85 | 108 | <body>
|
| 109 | + <div class="fade-overlay"> |
| 110 | + <div class="spinner"></div> |
| 111 | + </div> |
86 | 112 | <div class="container">
|
87 | 113 | <p><strong>Last updated: August 5, 2024</strong></p>
|
88 | 114 |
|
@@ -147,5 +173,18 @@ <h1>Contact Us</h1>
|
147 | 173 | <li>By phone: (970) 989-6999</li>
|
148 | 174 | </ul>
|
149 | 175 | </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> |
150 | 189 | </body>
|
151 | 190 | </html>
|
0 commit comments