Skip to content

Commit

Permalink
remove pub
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie85270 committed Oct 30, 2023
1 parent f9929e6 commit 11f684b
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 79 deletions.
6 changes: 0 additions & 6 deletions components/layout/AppLayout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import FooterLight from '../kit/components/navigation/footer/FooterLight';
import Meta from '../site/Meta';
import AppHeader from '../site/header/AppHeader';
import AdBanner from '../site/Pub/Banner';

const footerLink = [
{
Expand Down Expand Up @@ -91,11 +90,6 @@ const AppLayout = ({ title, desc, children, withPub }: Props) => {
>
{children}
</main>
{withPub && (
<div className="top-0 right-0 px-2 pt-32 pr-4 mt-8 w-80 xs:hidden 2xl:absolute">
<AdBanner isVertical />
</div>
)}
</div>
</div>
<div className="dark">
Expand Down
17 changes: 0 additions & 17 deletions components/layout/ComponentLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import Link from 'next/link';
import ReactDOMServer from 'react-dom/server';
import Toggle from '../kit/components/form/toggle/Toggle';
import { formatHtml } from '../../utils/Utils';
import AdBanner from '../site/Pub/Banner';

interface Props {
element: JSX.Element;
Expand Down Expand Up @@ -206,22 +205,6 @@ const ComponentLayout = (props: Props) => {
</div>
</LiveProvider>
</div>
{props.withPub && (
<div
className={`bg-gray-100 shadow rounded-xl mb-4 ${
props.containerClasses ? props.containerClasses : ''
}`}
key={props.title}
>
<div className="flex flex-col items-center justify-between p-4 bg-white border md:flex-row rounded-xl">
<p className="mb-2 text-xl font-light text-gray-600 md:mb-0">Publicity </p>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
<div className="p-4">
<AdBanner />
</div>
</div>
)}
</>
);
};
Expand Down
28 changes: 0 additions & 28 deletions components/site/Pub/Banner.tsx

This file was deleted.

24 changes: 0 additions & 24 deletions components/site/Pub/SquarePub.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions components/site/section/SectionDesc.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import Link from 'next/link';
import Badge from '../../kit/components/elements/badges/Badge';
import SquarePub from '../Pub/SquarePub';

interface Props {
items: section[];
Expand Down Expand Up @@ -79,7 +78,6 @@ const SectionDesc = ({ title, items, id, hasCommingSoon, isTemplate, withPub }:
)}
</>
</div>
{withPub && <SquarePub />}
</div>
);
};
Expand Down
2 changes: 0 additions & 2 deletions pages/started/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import AppLayout from '../../components/layout/AppLayout';
import { LiveProvider, LiveEditor } from 'react-live';
import EDITOR_THEME from '../../editorTheme';
import Link from 'next/link';
import SquarePub from '../../components/site/Pub/SquarePub';

const confCode = `module.exports = {
important: true,
Expand Down Expand Up @@ -100,7 +99,6 @@ const StartedPage: FC = () => {
</a>
</Link>
</div>
<SquarePub />
</div>
</div>
<div className="pb-10 mb-10 text-lg text-gray-500 border-b border-gray-200" id="configuration">
Expand Down

0 comments on commit 11f684b

Please sign in to comment.