added _Ads
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-09-05 21:57:39 +03:00
parent 17ade1f8bd
commit 41109cec4f
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C
3 changed files with 26 additions and 2 deletions

View File

@ -0,0 +1,22 @@
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
// @ts-ignore
import { classNames } from "../util/lang"
const Ads: QuartzComponent = ({ displayClass, fileData }: QuartzComponentProps) => {
return (
<blockquote className="callout tip" data-callout="tip">
<div className="callout-title">
<div className="callout-icon"></div>
<div className="callout-title-inner"><p>Спонсор поста: VDSina</p></div>
</div>
<div className="callout-content">
<p>Хостинг провайдер, которым пользуюсь сам. Сервера на территории РФ и Нидерландов, 2 ТБ трафика на
сервер. И возможность установить свой образ ОС.<br /> <br />Скидка 10% при регистрации по
ссылке: <a href="https://vdsina.ru/?partner=3yw9q78nd5">https://vdsina.ru/?partner=3yw9q78nd5</a>
</p>
</div>
</blockquote>
)
}
export default (() => Ads) satisfies QuartzComponentConstructor

View File

@ -20,10 +20,11 @@ import MobileOnly from "./MobileOnly"
import RecentNotes from "./RecentNotes" import RecentNotes from "./RecentNotes"
import Breadcrumbs from "./Breadcrumbs" import Breadcrumbs from "./Breadcrumbs"
import Comments from "./Comments" import Comments from "./Comments"
import Remark from "./Remark" import Remark from "./_Remark"
import ScrollToTop from "./_ScrollToTop" import ScrollToTop from "./_ScrollToTop"
import GithubSource from "./_GithubSource" import GithubSource from "./_GithubSource"
import RandomPageButton from "./_RandomPageButton" import RandomPageButton from "./_RandomPageButton"
import Ads from "./_Ads"
export { export {
ArticleTitle, ArticleTitle,
@ -51,5 +52,6 @@ export {
Remark, Remark,
GithubSource, GithubSource,
ScrollToTop, ScrollToTop,
RandomPageButton RandomPageButton,
Ads
} }