home: add marquee, finished statusline
This commit is contained in:
parent
7dca27d244
commit
40c818dce2
3 changed files with 68 additions and 5 deletions
|
|
@ -20,5 +20,21 @@
|
|||
<pink-statusbar>
|
||||
<status-dot></status-dot>
|
||||
<username>Online</username>
|
||||
<current-date></current-date>
|
||||
</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>
|
||||
<welcome>
|
||||
<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>
|
||||
<boxes>
|
||||
<box id="bigbox">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue