Skip to content

Commit

Permalink
Merge pull request #163 from eltana-org/holiday-hours
Browse files Browse the repository at this point in the history
Holiday Hours
  • Loading branch information
GrantBirki committed Dec 13, 2023
2 parents d996299 + 074b7a0 commit e0b9271
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/components/widgets/Announcement.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import announcement from '~/config/components/announcement';

<!-- if info set -->{
announcement && announcement.enabled && announcement.type === 'info' && (
<div class="hidden md:block bg-blue-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-blue-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<div class="bg-blue-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-blue-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<Fragment set:html={announcement.text} />
</div>
)
Expand All @@ -13,7 +13,7 @@ import announcement from '~/config/components/announcement';
<!-- if warn set -->
{
announcement && announcement.enabled && announcement.type === 'warn' && (
<div class="hidden md:block bg-yellow-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-yellow-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<div class="bg-yellow-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-yellow-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<Fragment set:html={announcement.text} />
</div>
)
Expand All @@ -22,7 +22,7 @@ import announcement from '~/config/components/announcement';
<!-- if error set -->
{
announcement && announcement.enabled && announcement.type === 'error' && (
<div class="hidden md:block bg-red-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-red-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<div class="bg-red-900 dark:bg-slate-800 dark:border-slate-800 dark:text-slate-400 border-b border-red-900 text-sm px-3 py-2 text-gray-200 overflow-hidden whitespace-nowrap text-ellipsis not-prose">
<Fragment set:html={announcement.text} />
</div>
)
Expand Down
8 changes: 4 additions & 4 deletions src/config/components/announcement.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

const announcement = {
// If the announcement component should be enabled or not
enabled: false,
enabled: true,

// Announcement text with HTML support
text: 'This is an <b>announcement</b>',
text: '🎄 View our updated <a style="text-decoration:underline" href="/holiday-hours">holiday hours</a> 🎄',

// Warning level: "info" | "warning" | "error"
type: 'info',
// Warning level: "info" | "warn" | "error"
type: 'error',
};

export default announcement;
11 changes: 11 additions & 0 deletions src/pages/holiday-hours.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: 'Holiday Hours'
layout: '~/layouts/MarkdownLayout.astro'
---

🎄 Here is our up-to-date holiday schedule:

- Christmas Eve: Regular hours both stores
- Christmas: Capitol Hill closed, Stone Way 7am to 2pm
- NYE: Regular hours both stores
- NYD: Regular hours both stores

0 comments on commit e0b9271

Please sign in to comment.