Skip to content

Commit

Permalink
Adds Umbrel banner
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Apr 23, 2024
1 parent c5678f5 commit 4d181ff
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/components/HomePageHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ export default function HomepageHeader() {
<span className={styles.keepReading} onClick={() => setShowMore(!showMore)}>
{!showMore ? 'Keep Reading...' : 'Show Less'}
</span>
<div className={styles.sponsor}>
<span>
Dashy is kindly sponsored by <a href="https://umbrel.com?ref=dashy" target="_blank">Umbrel</a> -
the personal home cloud and OS for self-hosting
</span>
<a href="https://umbrel.com?ref=dashy" target="_blank">
<img src="/umbrel-banner.jpg" />
</a>
</div>
</div>
<CarbonAd />
{(!showMore) &&
Expand Down
2 changes: 1 addition & 1 deletion src/styles/Colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
--white: #f7f7f7;
--pale-grey: #e9e9e8;
--mid-grey: #a9a9a9;
--dark-grey: ##18191a;
--dark-grey: #18191a;
--black: #121212;
--pitch-black: #000000;

Expand Down
26 changes: 24 additions & 2 deletions src/styles/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ header.heroBanner {
cursor: pointer;
margin: 2rem auto;
position: absolute;
bottom: 2rem;
bottom: 0;
left: 42%;
@media (max-width: 966px) {
display: none;
Expand All @@ -90,4 +90,26 @@ header.heroBanner {
.scrollDownIcon {
width: 2rem;
path { fill: var(--text-color); }
}
}

.sponsor {
margin: 1rem auto;
display: flex;
flex-direction: column-reverse;
gap: 0.5rem;
background: var(--background);
padding: 0.5rem;
border-radius: 6px;
color: var(--text-color);
img {
border-radius: 6px;
}
span {
font-size: 1rem;
text-align: center;
a {
font-size: 1rem;
color: var(--text-color);
}
}
}
2 changes: 1 addition & 1 deletion src/utils/ui-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ const getColor = (index: number): string => {
}
};

export default getColor;
export default getColor;
Binary file added static/umbrel-banner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d181ff

Please sign in to comment.