Skip to content

Commit d8b05e8

Browse files
committed
add: carbon ads
1 parent c78fd66 commit d8b05e8

File tree

16 files changed

+94
-4
lines changed

16 files changed

+94
-4
lines changed

src/components/CarbonAds.astro

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
interface Props {
3+
isDoc?: boolean;
4+
}
5+
6+
const { isDoc = false } = Astro.props;
7+
---
8+
9+
<section class:list={[!isDoc && 'absolute top-16 right-0 z-10']}>
10+
<div class="carbon-band">
11+
<script
12+
is:inline
13+
async
14+
type="text/javascript"
15+
src="//cdn.carbonads.com/carbon.js?serve=CK7I6KJE&placement=sdkmanio"
16+
id="_carbonads_js"></script>
17+
</div>
18+
</section>

src/components/Navbar.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import mainMenu from '@/data/main-menu';
88
import { Image } from 'astro:assets';
99
---
1010

11-
<header class="bg-background/10 sticky top-0 z-10 shadow backdrop-blur-sm">
11+
<header class="bg-background/10 sticky top-0 z-20 shadow backdrop-blur-sm">
1212
<Container class="flex h-16 items-center justify-between">
1313
<nav class="flex items-center gap-12">
1414
<div class="flex items-center gap-3">

src/components/PageHeader.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface Props {
1212
const { title, breadcrumbs, isDoc = false } = Astro.props;
1313
---
1414

15-
<header class:list={[!isDoc && 'pt-10 pb-10']}>
15+
<header class:list={[!isDoc && 'mt-28 pt-10 pb-10 lg:mt-0']}>
1616
<Container class:list={[!!isDoc && 'px-0!']}>
1717
<Breadcrumbs breadcrumbs={breadcrumbs} />
1818

src/components/sections/welcome/Hero.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Code } from 'astro-expressive-code/components';
55
import { Image } from 'astro:assets';
66
---
77

8-
<section class="relative py-20">
8+
<section class="relative mt-16 py-20 lg:mt-0">
99
<Image
1010
class="absolute top-1/2 left-1/2 w-[90%] -translate-x-1/2 -translate-y-1/2 opacity-50 dark:opacity-80"
1111
src={bgEllipse}

src/content/docs/install.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ title: Installation
88
isDoc
99
/>
1010

11+
<CarbonAds isDoc />
12+
1113
Installing SDKMAN! on UNIX is a breeze. It effortlessly sets up on macOS, Linux
1214
and Windows (with WSL). Plus, it's compatible with both Bash and ZSH shells.
1315

src/content/docs/usage.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Usage
44

55
<PageHeader title="Usage" breadcrumbs={[{ text: 'Usage' }]} isDoc />
66

7+
<CarbonAds isDoc />
8+
79
## Installing an SDK
810

911
### Latest Stable

src/content/docs/vendors.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ title: Vendors
44

55
<PageHeader title="Vendors" breadcrumbs={[{ text: 'Vendors' }]} isDoc />
66

7+
<CarbonAds isDoc />
8+
79
SDKMAN! is unique in that it empowers SDK Vendors to publish their candidate
810
releases on our platform. We provide a secure API that can be used to manage all
911
aspects of a release on SDKMAN!. Such aspects include **Releasing** a new

src/pages/[slug].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import CarbonAds from '@/components/CarbonAds.astro';
23
import PageHeader from '@/components/PageHeader.astro';
34
import Link from '@/components/ui/Link.astro';
45
import Note from '@/components/ui/Note.astro';
@@ -23,5 +24,5 @@ const { Content, headings } = await render(doc);
2324
---
2425

2526
<DocsLayout title={doc.data.title} headings={headings}>
26-
<Content components={{ a: Link, Note, PageHeader }} />
27+
<Content components={{ a: Link, Note, PageHeader, CarbonAds }} />
2728
</DocsLayout>

src/pages/brand.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import CarbonAds from '@/components/CarbonAds.astro';
23
import BrandCard from '@/components/cards/BrandCard.astro';
34
import PageHeader from '@/components/PageHeader.astro';
45
import Container from '@/components/ui/Container.astro';
@@ -9,6 +10,7 @@ const breadcrumbs = [{ text: 'Brand' }];
910
---
1011

1112
<Layout title="Brand">
13+
<CarbonAds />
1214
<PageHeader title="Brand" breadcrumbs={breadcrumbs} />
1315

1416
<Container class="pb-20">

src/pages/contributors.astro

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
import CarbonAds from '@/components/CarbonAds.astro';
23
import PageHeader from '@/components/PageHeader.astro';
34
import OpenCollectiveList from '@/components/sections/contributors/OpenCollectiveList.astro';
45
import Layout from '@/layouts/Layout.astro';
@@ -7,6 +8,7 @@ const breadcrumbs = [{ text: 'Contributors' }];
78
---
89

910
<Layout title="Contributors">
11+
<CarbonAds />
1012
<PageHeader title="Contributors" breadcrumbs={breadcrumbs} />
1113

1214
<OpenCollectiveList />

0 commit comments

Comments
 (0)