Skip to content

[next] feat(partners): new partners page #1159

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 6, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
},
"dependencies": {
"@vue/repl": "^0.4.0",
"@vue/theme": "^0.1.11"
"@vue/theme": "^0.1.12"
}
}
63 changes: 63 additions & 0 deletions src/.vitepress/theme/components/partner/PartnerHero.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<script setup lang="ts">

</script>

<template>
<div class="PartnerHero">
<div class="container">
<h1 class="title">
<slot name="title" />
</h1>
<p class="lead">
<slot name="lead" />
</p>
</div>
</div>
</template>

<style scoped>
.PartnerHero {
padding: 48px 24px;
text-align: center;
}

@media (min-width: 768px) {
.PartnerHero {
padding: 64px 32px;
}
}

.container {
margin: 0 auto;
max-width: 540px;
}

.title,
.lead,
.PartnerHero >>> .link {
transition: color 0.25s;
}

.title {
line-height: 32px;
font-size: 32px;
font-weight: 500;
}

@media (min-width: 768px) {
.title {
line-height: 40px;
font-size: 40px;
}
}

.lead {
padding-top: 8px;
font-size: 16px;
font-weight: 500;
color: var(--vt-c-text-2);
}

.PartnerHero >>> .link { color: var(--vt-c-brand); }
.PartnerHero >>> .link:hover { color: var(--vt-c-brand-dark); }
</style>
18 changes: 18 additions & 0 deletions src/.vitepress/theme/components/partner/PartnerList.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<script setup lang="ts">
import partners from './partners.json'
import PartnerListItem from './PartnerListItem.vue'
</script>

<template>
<div class="PartnerList">
<div v-for="partner in partners" :key="partner.name" class="item">
<PartnerListItem :partner="partner" />
</div>
</div>
</template>

<style scoped>
.item + .item {
padding-top: 16px;
}
</style>
Loading