Added Prelim Headline

This commit is contained in:
James Dinh 2022-06-12 21:21:00 -07:00
parent 79e9268439
commit 1ac7f4dd82
2 changed files with 20 additions and 20 deletions

View File

@ -144,22 +144,28 @@ nav li a:focus::after{
transition: 0.5s; transition: 0.5s;
} }
#banner-text { #banner {
height: 100%; height: 100%;
width: 70%; /* width: 50%; */
margin: auto; width: 500px;
margin: 0 10px;
font-size: 20px; font-size: 20px;
display: inline-flex; display: inline-flex;
position: absolute; position: relative;
justify-content: center; justify-content: center;
overflow: hidden;
align-items: center; align-items: center;
} }
#banner-moving-text { #banner-text {
text-align: center;
animation: headline 20s infinite; animation: headline 20s infinite;
animation-timing-function: linear;
} }
.sub-text {
#timer-text {
color: gray; color: gray;
animation: blinking 2s infinite;
} }
@keyframes blinking { @keyframes blinking {
@ -167,7 +173,7 @@ nav li a:focus::after{
opacity: 1; opacity: 1;
} }
50% { 50% {
opacity: 0; opacity: 0.5;
} }
100% { 100% {
opacity: 1; opacity: 1;
@ -175,22 +181,13 @@ nav li a:focus::after{
} }
@keyframes headline { @keyframes headline {
0% { 0% {
transform: translateX(10vw); transform: translateX(600px);
opacity: 0;
}
15% {
opacity: 1;
} }
50% { 50% {
opacity: 1;; transform: translateX(-600px);
transform: translateX(-20vw);
}
60% {
opacity: 0;
} }
100% { 100% {
opacity: 0; transform: translateX(-600px);
transform: translateX(-20vw);
} }
} }

View File

@ -46,7 +46,7 @@
<a id="nav-logo-a" href="./"> <a id="nav-logo-a" href="./">
<img id="nav-logo" src="img/Gilroy Hacks Logo [Summer-wide-2].png" alt="logo"/> <img id="nav-logo" src="img/Gilroy Hacks Logo [Summer-wide-2].png" alt="logo"/>
</a> </a>
<!-- <div id="banner-text"><p id="banner-moving-text">Next Event -> Opening Ceremony, <span class="sub-text">2mo</span></p></div> -->
<div id="nav-links-container"> <div id="nav-links-container">
<input type="checkbox" id="check"> <input type="checkbox" id="check">
<label for="check" class="checkbtn"> <label for="check" class="checkbtn">
@ -59,6 +59,9 @@
<li><a onclick="uncheck('check')" href="#prizes">Prizes</a></li> <li><a onclick="uncheck('check')" href="#prizes">Prizes</a></li>
<li><a onclick="uncheck('check')" href="#team">Team</a></li> <li><a onclick="uncheck('check')" href="#team">Team</a></li>
</ul> </ul>
<div id="banner">
<p id="banner-text">Next event:<br>Opening Ceremony, <span id="timer-text">2mo</span></p>
</div>
</div> </div>
</nav> </nav>
<!--Front Page--> <!--Front Page-->