87 lines
1.3 KiB
Vue
87 lines
1.3 KiB
Vue
|
|
<template>
|
||
|
|
<section class="collection-page-section">
|
||
|
|
<div class="title">
|
||
|
|
<div class="title-line" />
|
||
|
|
<h2
|
||
|
|
v-if="$slots.title"
|
||
|
|
class="title-text"
|
||
|
|
>
|
||
|
|
<slot name="title" />
|
||
|
|
</h2>
|
||
|
|
</div>
|
||
|
|
<p
|
||
|
|
v-if="$slots.lead"
|
||
|
|
class="lead"
|
||
|
|
>
|
||
|
|
<slot name="lead" />
|
||
|
|
</p>
|
||
|
|
<div
|
||
|
|
v-if="$slots.items"
|
||
|
|
class="items"
|
||
|
|
>
|
||
|
|
<slot name="items" />
|
||
|
|
</div>
|
||
|
|
</section>
|
||
|
|
</template>
|
||
|
|
|
||
|
|
<style scoped>
|
||
|
|
.collection-page-section {
|
||
|
|
padding: 0 32px;
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 768px) {
|
||
|
|
.collection-page-section {
|
||
|
|
padding: 0 48px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (min-width: 960px) {
|
||
|
|
.collection-page-section {
|
||
|
|
padding: 0 64px;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
.title {
|
||
|
|
position: relative;
|
||
|
|
margin: 0 auto;
|
||
|
|
max-width: 1152px;
|
||
|
|
text-align: center;
|
||
|
|
color: var(--vp-c-text-2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.title-line {
|
||
|
|
position: absolute;
|
||
|
|
top: 16px;
|
||
|
|
left: 0;
|
||
|
|
width: 100%;
|
||
|
|
height: 1px;
|
||
|
|
background-color: var(--vp-c-divider);
|
||
|
|
}
|
||
|
|
|
||
|
|
.title-text {
|
||
|
|
position: relative;
|
||
|
|
display: inline-block;
|
||
|
|
padding: 0 24px;
|
||
|
|
letter-spacing: 0;
|
||
|
|
line-height: 32px;
|
||
|
|
font-size: 20px;
|
||
|
|
font-weight: 500;
|
||
|
|
background-color: var(--vp-c-bg);
|
||
|
|
}
|
||
|
|
|
||
|
|
.lead {
|
||
|
|
margin: 0 auto;
|
||
|
|
max-width: 480px;
|
||
|
|
padding-top: 12px;
|
||
|
|
text-align: center;
|
||
|
|
line-height: 24px;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 500;
|
||
|
|
color: var(--vp-c-text-2);
|
||
|
|
}
|
||
|
|
|
||
|
|
.items {
|
||
|
|
padding-top: 40px;
|
||
|
|
}
|
||
|
|
</style>
|