home: add marquee, finished statusline
This commit is contained in:
parent
12b390d068
commit
68fd5d70c5
3 changed files with 68 additions and 5 deletions
|
|
@ -133,6 +133,20 @@ table {
|
||||||
|
|
||||||
/* Animations */
|
/* Animations */
|
||||||
|
|
||||||
|
@keyframes fadeInNOut {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
50% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes woopwoop {
|
@keyframes woopwoop {
|
||||||
|
|
||||||
0%,
|
0%,
|
||||||
|
|
@ -146,6 +160,16 @@ table {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@keyframes marquee {
|
||||||
|
from {
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
|
||||||
|
to {
|
||||||
|
transform: translateX(-50%);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@keyframes woopwoopmove {
|
@keyframes woopwoopmove {
|
||||||
to {
|
to {
|
||||||
background-position: 200% center;
|
background-position: 200% center;
|
||||||
|
|
@ -187,7 +211,8 @@ table {
|
||||||
}
|
}
|
||||||
|
|
||||||
::selection {
|
::selection {
|
||||||
text-shadow: 0px 0px 3px var(--darkerer-pink)
|
text-shadow: 0px 0px 3px var(--darkerer-pink);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
|
@ -205,6 +230,17 @@ body {
|
||||||
main {
|
main {
|
||||||
padding-top: 8rem;
|
padding-top: 8rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
marquee {
|
||||||
|
display: block;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
marquee inner {
|
||||||
|
display: inline-block;
|
||||||
|
animation: marquee 8s linear infinite;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* CRT Effect */
|
/* CRT Effect */
|
||||||
|
|
@ -368,12 +404,19 @@ navbar {
|
||||||
|
|
||||||
status-dot {
|
status-dot {
|
||||||
display: block;
|
display: block;
|
||||||
|
animation: fadeInNOut 2s infinite;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
background-color: #00ff00;
|
background-color: #00ff00;
|
||||||
border: 1px solid #008000;
|
border: 1px solid #008000;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
current-date {
|
||||||
|
margin-left: auto;
|
||||||
|
padding-right: 0.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -393,7 +436,7 @@ home-content {
|
||||||
boxes {
|
boxes {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
width: min(90svw, 800px);
|
width: min(90svw, 850px);
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
|
|
||||||
box {
|
box {
|
||||||
|
|
@ -418,7 +461,7 @@ home-content {
|
||||||
padding: 0.15rem 0.55rem;
|
padding: 0.15rem 0.55rem;
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
background-color: var(--blue);
|
background-color: var(--blue);
|
||||||
font-weight: 500;
|
font-weight: 600;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
color: white;
|
color: white;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|
|
||||||
|
|
@ -20,5 +20,21 @@
|
||||||
<pink-statusbar>
|
<pink-statusbar>
|
||||||
<status-dot></status-dot>
|
<status-dot></status-dot>
|
||||||
<username>Online</username>
|
<username>Online</username>
|
||||||
|
<current-date></current-date>
|
||||||
</pink-statusbar>
|
</pink-statusbar>
|
||||||
</navbar>
|
</navbar>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const dateEl = document.querySelector('current-date');
|
||||||
|
if (dateEl) {
|
||||||
|
const update = () => {
|
||||||
|
const now = new Date();
|
||||||
|
const h = String(now.getHours()).padStart(2, '0');
|
||||||
|
const m = String(now.getMinutes()).padStart(2, '0');
|
||||||
|
const s = String(now.getSeconds()).padStart(2, '0');
|
||||||
|
dateEl.textContent = `${h}:${m}:${s}`;
|
||||||
|
};
|
||||||
|
update();
|
||||||
|
setInterval(update, 1000);
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
@ -1,7 +1,11 @@
|
||||||
<home-content>
|
<home-content>
|
||||||
<welcome>
|
<welcome>
|
||||||
<img src="/static/assets/images/welcome.webp" width="400px" alt="A welcome text in pink" />
|
<img src="/static/assets/images/welcome.webp" width="400px" alt="A welcome text in pink" />
|
||||||
<p>Welcome to my little corner of the Web!</p>
|
<marquee>
|
||||||
|
{% for _ in 0..12 %}
|
||||||
|
彡★Welcome to my little corner of the Web★彡
|
||||||
|
{% endfor %}
|
||||||
|
</marquee>
|
||||||
</welcome>
|
</welcome>
|
||||||
<boxes>
|
<boxes>
|
||||||
<box id="bigbox">
|
<box id="bigbox">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue