Skip to content

Commit ee40fc0

Browse files
committed
added warning
1 parent 5406f80 commit ee40fc0

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

src/components/global/navbar/navbar.css

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,16 @@
601601
border-bottom: 1px solid var(--sec-hvr-bdr);
602602
box-shadow: var(--navbar-warning-shadow, 0 6px 20px rgba(0, 0, 0, 0.35));
603603
z-index: 80;
604-
background: var(--navbar-warning-background, var(--warning-bg));
604+
animation: warning-flash 2s step-end infinite;
605+
}
606+
607+
@keyframes warning-flash {
608+
0%, 0.01% {
609+
background: #ff0000;
610+
}
611+
50% {
612+
background: #0040ff;
613+
}
605614
}
606615

607616
.navbar-warning-content {
@@ -622,6 +631,15 @@
622631
text-align: center;
623632
}
624633

634+
.navbar-warning-link {
635+
text-decoration: none;
636+
color: var(--fg);
637+
}
638+
639+
.navbar-warning-link:hover {
640+
text-decoration: underline;
641+
}
642+
625643
@media (max-width: 980px) {
626644
:root {
627645
--navbar-mobile-quick-gap: 0.45rem;

src/components/global/navbar/navbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="topWarningBar" class="navbar-warning-bar">
22
<div class="navbar-warning-content cntr">
3-
<div class="navbar-warning-text">Velocity and Cosmic websites are infected with malware—please remove them immediately.</div>
3+
<a href="https://www.youtube.com/watch?v=HIRuMV5B_Ak" target="_blank" rel="noopener noreferrer" class="navbar-warning-text navbar-warning-link">Velocity is infected with malware. If you've used either Cosmic or Velocity, you should wipe your Windows installation immediately to stay safe. ></a>
44
</div>
55
</div>
66

0 commit comments

Comments
 (0)