-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
87 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ on: | |
push: | ||
tags: | ||
- 'v?[0-9]+.[0-9]+.[0-9]+' | ||
- 'v?[0-9]+.[0-9]+.[0-9]+-[0-9]+' | ||
|
||
jobs: | ||
converge: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import './Announcement.scss'; | ||
|
||
const LAUNCH_DATE = new Date('2024-06-27'); | ||
const DAYS_LEFT = Math.ceil((LAUNCH_DATE - new Date()) / (1000 * 60 * 60 * 24)); | ||
const ANNOUNCEMENT_MESSAGE = | ||
DAYS_LEFT === 0 | ||
? 'RariMe app launched!' | ||
: `RariMe app launching in ${DAYS_LEFT} ${ | ||
DAYS_LEFT === 1 ? 'day' : 'days' | ||
}`; | ||
|
||
export default function Announcement() { | ||
return ( | ||
<a | ||
className="announcement" | ||
href="https://rarime.com" | ||
target="_blank" | ||
rel="noreferrer" | ||
> | ||
<span className="announcement__title">Announcement:</span> | ||
<div className="announcement__content"> | ||
<svg width="20" height="20"> | ||
<use href="/icons/sprite.svg#icon-rarime"></use> | ||
</svg> | ||
<span className="announcement__content-text"> | ||
{ANNOUNCEMENT_MESSAGE} | ||
</span> | ||
<svg width="13" height="13"> | ||
<use href="/icons/sprite.svg#icon-arrow-right"></use> | ||
</svg> | ||
</div> | ||
</a> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
.announcement { | ||
height: var(--announcement-height); | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
gap: to-rem(16); | ||
background-color: #CDFD4A; | ||
|
||
&, | ||
&:hover { | ||
color: var(--col-total-black); | ||
} | ||
} | ||
|
||
.announcement__title { | ||
font-size: to-rem(14); | ||
line-height: to-rem(20); | ||
font-weight: 600; | ||
display: none; | ||
|
||
@include respond-above(medium) { | ||
display: block; | ||
} | ||
} | ||
|
||
.announcement__content { | ||
display: flex; | ||
align-items: center; | ||
gap: to-rem(8); | ||
} | ||
|
||
.announcement__content-icon { | ||
width: to-rem(16); | ||
height: to-rem(16); | ||
} | ||
|
||
.announcement__content-text { | ||
font-size: to-rem(14); | ||
line-height: to-rem(20); | ||
font-weight: 500; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './Announcement'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.