Skip to content

Commit a5ff8fb

Browse files
remove advertisement
1 parent b41f06e commit a5ff8fb

5 files changed

Lines changed: 0 additions & 126 deletions

File tree

src/components/Ad/index.js

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/css/custom.css

Lines changed: 0 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -92,83 +92,3 @@
9292
color: #DD1133;
9393
}
9494

95-
/* carbon ads */
96-
97-
#carbonads * {
98-
margin: initial;
99-
padding: initial;
100-
line-height: initial;
101-
}
102-
103-
#carbonads {
104-
--carbon-font-family: -apple-system, BlinkMacSystemFont,
105-
'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell,
106-
'Helvetica Neue', Helvetica, Arial, sans-serif;
107-
--carbon-font-size: 14px;
108-
--carbon-padding: 1.5ch;
109-
--carbon-max-char: 20ch;
110-
--carbon-bg-primary: hsl(0, 0%, 12%);
111-
--carbon-bg-secondary: hsl(0, 0%, 15%);
112-
--carbon-text-color: hsl(0, 0%, 90%);
113-
z-index: 10;
114-
font-size: var(--carbon-font-size);
115-
font-family: var(--carbon-font-family);
116-
}
117-
118-
#carbonads > span {
119-
display: flex;
120-
flex-direction: column;
121-
min-inline-size: 130px;
122-
max-inline-size: calc(
123-
130px + var(--carbon-max-char) + 8ch
124-
);
125-
padding: var(--carbon-padding);
126-
gap: var(--carbon-padding);
127-
background-color: var(--carbon-bg-primary);
128-
box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.085),
129-
0 0 2px hsl(0deg 0% 0% / 0.085),
130-
0 0 4px hsl(0deg 0% 0% / 0.085),
131-
0 0 8px hsl(0deg 0% 0% / 0.085);
132-
}
133-
134-
#carbonads a {
135-
color: var(--carbon-text-color);
136-
text-decoration: none;
137-
}
138-
139-
#carbonads a:hover {
140-
color: var(--carbon-text-color);
141-
}
142-
143-
#carbonads .carbon-wrap {
144-
display: flex;
145-
flex-wrap: wrap;
146-
gap: 1.5ex;
147-
}
148-
149-
#carbonads .carbon-img {
150-
flex: 0 0 130px;
151-
}
152-
153-
#carbonads .carbon-img img {
154-
display: block;
155-
}
156-
157-
#carbonads .carbon-text {
158-
flex-grow: 1;
159-
flex-basis: var(--carbon-max-char);
160-
line-height: 1.4;
161-
text-align: left;
162-
}
163-
164-
#carbonads .carbon-poweredby {
165-
padding: 6px 8px;
166-
background: var(--carbon-bg-secondary);
167-
color: var(--carbon-text-color);
168-
font-weight: 600;
169-
font-size: 0.6em;
170-
line-height: 1.4;
171-
letter-spacing: 0.2ch;
172-
text-align: center;
173-
text-transform: uppercase;
174-
}

src/pages/index.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import Layout from '@theme/Layout';
33
import cx from 'classnames';
44

55
import styles from './index.module.css';
6-
import Ad from '../components/Ad';
76
import { openCollectiveSponsors, users } from '../data/indexData';
87

98
class HomeSplash extends React.Component {
@@ -148,7 +147,6 @@ export default class Index extends React.Component {
148147
<Layout>
149148
<HomeSplash siteConfig={siteConfig} language={language} />
150149
<HomeContent>
151-
<div className={styles.centeredAd}><Ad /></div>
152150
<Showcase />
153151
<OCSponsors />
154152
</HomeContent>

src/pages/index.module.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,6 @@ h2.tagLine {
121121
}
122122
}
123123

124-
.centeredAd {
125-
display: flex;
126-
justify-content: center;
127-
min-height: 150px;
128-
margin-bottom: 3em;
129-
}
130-
131124
.buttons {
132125
display: flex;
133126
align-items: center;

src/theme/DocSidebarItems/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
import React from 'react';
22
import DocSidebarItems from '@theme-original/DocSidebarItems';
3-
import Ad from '../../components/Ad';
43

54
export default function DocSidebarItemsWrapper(props) {
65
return (
76
<>
87
<DocSidebarItems {...props} />
9-
<div style={{padding: '2ex 1ex'}}>
10-
<Ad key={props.activePath} desktopOnly />
11-
</div>
128
</>
139
);
1410
}

0 commit comments

Comments
 (0)