mirror of
https://github.com/Lissy93/dashy.git
synced 2025-01-03 14:51:37 +03:00
Adds Umbrel banner
This commit is contained in:
parent
c5678f5f28
commit
4d181fffa1
@ -44,6 +44,15 @@ export default function HomepageHeader() {
|
|||||||
<span className={styles.keepReading} onClick={() => setShowMore(!showMore)}>
|
<span className={styles.keepReading} onClick={() => setShowMore(!showMore)}>
|
||||||
{!showMore ? 'Keep Reading...' : 'Show Less'}
|
{!showMore ? 'Keep Reading...' : 'Show Less'}
|
||||||
</span>
|
</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>
|
</div>
|
||||||
<CarbonAd />
|
<CarbonAd />
|
||||||
{(!showMore) &&
|
{(!showMore) &&
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
--white: #f7f7f7;
|
--white: #f7f7f7;
|
||||||
--pale-grey: #e9e9e8;
|
--pale-grey: #e9e9e8;
|
||||||
--mid-grey: #a9a9a9;
|
--mid-grey: #a9a9a9;
|
||||||
--dark-grey: ##18191a;
|
--dark-grey: #18191a;
|
||||||
--black: #121212;
|
--black: #121212;
|
||||||
--pitch-black: #000000;
|
--pitch-black: #000000;
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ header.heroBanner {
|
|||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
margin: 2rem auto;
|
margin: 2rem auto;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 2rem;
|
bottom: 0;
|
||||||
left: 42%;
|
left: 42%;
|
||||||
@media (max-width: 966px) {
|
@media (max-width: 966px) {
|
||||||
display: none;
|
display: none;
|
||||||
@ -90,4 +90,26 @@ header.heroBanner {
|
|||||||
.scrollDownIcon {
|
.scrollDownIcon {
|
||||||
width: 2rem;
|
width: 2rem;
|
||||||
path { fill: var(--text-color); }
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -15,4 +15,4 @@ const getColor = (index: number): string => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export default getColor;
|
export default getColor;
|
||||||
|
BIN
static/umbrel-banner.jpg
Normal file
BIN
static/umbrel-banner.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 576 KiB |
Loading…
Reference in New Issue
Block a user