Skip to content

Commit

Permalink
Adds Carbon to sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Jan 8, 2024
1 parent fb1b152 commit fc1f364
Show file tree
Hide file tree
Showing 5 changed files with 530 additions and 7 deletions.
3 changes: 0 additions & 3 deletions src/components/CarbonAd.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import React, { useEffect } from 'react';

const CarbonAds = () => {
return (
<>
<div id="carbonads"></div>
<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CWYIC53L&placement=dashyto" id="_carbonads_js"></script>
</>
);
};

Expand Down
5 changes: 1 addition & 4 deletions src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import React from 'react';
import Layout from '@theme/Layout';
import useDocusaurusContext from '@docusaurus/useDocusaurusContext';
import Head from '@docusaurus/Head';
import styles from './index.module.scss';


import HomePageHeader from '../components/HomePageHeader';
import HomePageFeatures from '../components/HomepageFeatures';
Expand All @@ -16,7 +13,7 @@ export default function Home() {
description="Dashy, the self-hosted dashboard app for your homelab">
<HomePageHeader />
<HomePageFeatures />
<main>
<main>
</main>
</Layout>
);
Expand Down
26 changes: 26 additions & 0 deletions src/styles/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,29 @@ html[data-theme='light'] {
--carbon-text-color: hsl(0, 0%, 90%);
}
}

.sidebar-ad {
--carbon-bg-primary: var(--background, #18191a);
--carbon-bg-secondary: #282a36;
--carbon-text-color: #e6e6e6;

#carbonads {
margin: 0.5rem;
}
#carbonads .carbon-img img, .avatar__photo-link {
border-radius: 5px;
}
#carbonads .carbon-wrap {
justify-content: center;
}
#carbonads .carbon-text {
font-size: 1rem;
}
#carbonads > span {
box-shadow: none;
}
#carbonads .carbon-poweredby {
border-radius: 5px;
font-size: 0.7rem;
}
}
Loading

0 comments on commit fc1f364

Please sign in to comment.