chore: add load more functionality, with refactored css
This commit is contained in:
@@ -1,13 +1,18 @@
|
||||
.subtitle {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 2.5rem;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.header {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
}
|
||||
|
||||
@media screen and (min-width: 950px) {
|
||||
.subtitle {
|
||||
width: 60%;
|
||||
padding-top: 2.5rem;
|
||||
padding-bottom: 5rem;
|
||||
}
|
||||
|
||||
.header {
|
||||
gap: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,15 +2,15 @@ import Title from "@/components/MyPages/Title"
|
||||
|
||||
import styles from "./header.module.css"
|
||||
|
||||
import { HeaderProps } from "@/types/components/myPages/stays/title"
|
||||
import type { HeaderProps } from "@/types/components/myPages/myStays/title"
|
||||
|
||||
export default function Header({ title, subtitle }: HeaderProps) {
|
||||
return (
|
||||
<header className={styles.header}>
|
||||
<Title as="h3" weight="semiBold" uppercase>
|
||||
<Title as="h3" level="h2" weight="semiBold" uppercase>
|
||||
{title}
|
||||
</Title>
|
||||
<Title as="h5" weight="regular" className={styles.subtitle}>
|
||||
<Title as="h5" level="h3" weight="regular" className={styles.subtitle}>
|
||||
{subtitle}
|
||||
</Title>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user