Skip to content

Commit

Permalink
add announcement bar and show archived notice in announcement bar
Browse files Browse the repository at this point in the history
  • Loading branch information
genshen committed Jul 7, 2023
1 parent 31ec083 commit 8e818a1
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/resources/
public/
assets/jsconfig.json
.vercel
8 changes: 8 additions & 0 deletions assets/scss/template.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,11 @@
.home-hero .bg-image {
background-repeat: repeat;
}

// for header announcementBar
.announcement_bar {
--site-announcement-bar-stripe-color1: hsl(167 68% 85%);
--site-announcement-bar-stripe-color2: hsl(167 68% 95%);
background: repeating-linear-gradient(35deg,var(--site-announcement-bar-stripe-color1),var(--site-announcement-bar-stripe-color1) 20px,var(--site-announcement-bar-stripe-color2) 10px,var(--site-announcement-bar-stripe-color2) 40px);
font-weight: 700;
}
11 changes: 11 additions & 0 deletions layouts/partials/hooks/head-start/announcement-bar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<div class="announcement_bar"
style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 80px;">
<div style="text-align: center; color: rgb(198, 16, 95);">
<b>We moved to a <a href="https://hpcde.hpcer.dev">New Site</a>.
This site will NOT UPDATE any more.
</b>
</div>
<div style="text-align: center; color: rgb(198, 16, 95);">
<b>Please visit <a href="https://hpcde.hpcer.dev">https://hpcde.hpcer.dev</a> for latest news.</b>
</div>
</div>

0 comments on commit 8e818a1

Please sign in to comment.