File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments