Skip to content

Commit bf7c851

Browse files
author
Alexia Michelle
committed
shurg host banner
1 parent 654d6fe commit bf7c851

4 files changed

Lines changed: 101 additions & 6 deletions

File tree

src/css/custom.css

Lines changed: 34 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,16 @@ h6 {
116116
background: var(--ifm-background-color) !important;
117117
}
118118

119-
.footer {
120-
background: #080a10 !important;
121-
border-top: none;
122-
color: #d6dae2;
123-
padding: 5rem 0 4rem;
119+
.sponsor-banner-wrapper {
120+
background: #080a10;
121+
display: flex;
122+
justify-content: center;
123+
align-items: center;
124+
padding: 1.75rem 1rem 1.25rem;
124125
position: relative;
125126
}
126127

127-
.footer::before {
128+
.sponsor-banner-wrapper::before {
128129
content: '';
129130
position: absolute;
130131
top: 0;
@@ -135,6 +136,33 @@ h6 {
135136
opacity: 0.85;
136137
}
137138

139+
html[data-theme='light'] .sponsor-banner-wrapper {
140+
background: #f7f8fb;
141+
}
142+
143+
.sponsor-banner-link {
144+
display: inline-flex;
145+
transition: opacity 180ms ease;
146+
}
147+
148+
.sponsor-banner-link:hover {
149+
opacity: 0.75;
150+
text-decoration: none;
151+
}
152+
153+
.sponsor-banner-img {
154+
height: 48px;
155+
width: auto;
156+
}
157+
158+
.footer {
159+
background: #080a10 !important;
160+
border-top: none;
161+
color: #d6dae2;
162+
padding: 3rem 0 4rem;
163+
position: relative;
164+
}
165+
138166
.footer .footer__title {
139167
color: #f5f7fb;
140168
}

src/theme/Footer/index.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import React from 'react';
2+
import Footer from '@theme-original/Footer';
3+
import ThemedImage from '@theme/ThemedImage';
4+
import useBaseUrl from '@docusaurus/useBaseUrl';
5+
import Link from '@docusaurus/Link';
6+
7+
export default function FooterWrapper(props) {
8+
return (
9+
<>
10+
<div className="sponsor-banner-wrapper">
11+
<Link
12+
href="https://shurg.host"
13+
className="sponsor-banner-link"
14+
aria-label="Powered by Shrug.host"
15+
>
16+
<ThemedImage
17+
alt="Powered by Shrug.host"
18+
className="sponsor-banner-img"
19+
sources={{
20+
light: useBaseUrl('/img/shrug-host-dark.svg'),
21+
dark: useBaseUrl('/img/shrug-host-light.svg'),
22+
}}
23+
/>
24+
</Link>
25+
</div>
26+
<Footer {...props} />
27+
</>
28+
);
29+
}

static/img/shrug-host-dark.svg

Lines changed: 19 additions & 0 deletions
Loading

static/img/shrug-host-light.svg

Lines changed: 19 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)