delete unused

This commit is contained in:
HesterG 2023-07-14 10:27:06 +08:00
parent f3a4d5a791
commit dc2ea4df07
5 changed files with 0 additions and 98 deletions

View file

@ -1,21 +0,0 @@
import React from "react"
import style from "./styles.module.css"
import clsx from "clsx"
export const Subtitle = ({
children,
center,
size = "medium",
className = "",
}) => (
<p
className={clsx(
style.root,
{ [style.center]: center },
style[`size-${size}`],
className,
)}
>
{children}
</p>
)

View file

@ -1,16 +0,0 @@
.root {
font-size: var(--font-size-big-2);
font-weight: var(--ifm-font-weight-normal);
color: var(--palette-pale-blue);
margin: 0;
}
.center {
text-align: center;
}
@media (max-width: 996px) {
.root.size-medium {
font-size: var(--font-size-large);
}
}

View file

@ -1,23 +0,0 @@
import React from "react"
import style from "./styles.module.css"
import clsx from "clsx"
export const Title = ({
level = 2,
children,
center,
size = "medium",
className,
}) =>
React.createElement(
`h${level}`,
{
className: clsx(
style.root,
{ [style.center]: center },
style[`size-${size}`],
className,
),
},
children,
)

View file

@ -1,32 +0,0 @@
.root {
font-size: var(--font-size-big-3);
line-height: 1.2;
}
.center {
text-align: center;
}
.size-small {
font-size: var(--font-size-big-2);
}
@media screen and (min-width: 600px) {
.root {
font-size: var(--font-size-big-4);
}
.size-small {
font-size: var(--font-size-big-3);
}
}
@media screen and (min-width: 1000px) {
.root {
font-size: var(--font-size-big-5);
}
.size-small {
font-size: var(--font-size-big-4);
}
}

View file

@ -2,9 +2,6 @@ import React from "react"
import style from "./styles.module.css"
import clsx from "clsx"
import { Title } from "./Title"
import { Subtitle } from "./Subtitle"
export const Section = ({
fullWidth,
children,
@ -32,6 +29,3 @@ export const Section = ({
{children}
</div>
)
Section.Title = Title
Section.Subtitle = Subtitle