-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'doc-v2' into doc-v2-beta
- Loading branch information
Showing
782 changed files
with
28,049 additions
and
4,702 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,112 @@ | ||
<template> | ||
<div> | ||
</div> | ||
<HopeHomePage> | ||
<template #center> | ||
<div class="feature-panel"> | ||
<div class="feature-wrapper"> | ||
<div | ||
class="feature-item" | ||
v-for="product in products" | ||
:key="product.title" | ||
> | ||
<h3>{{ product.title }}</h3> | ||
<div class="feature-link-wrapper"> | ||
<a | ||
v-for="link in product.links" | ||
:key="link.link" | ||
class="feature-link-item" | ||
:href="link.link" | ||
> | ||
<img | ||
width="20" | ||
height="20" | ||
v-if="link.icon" | ||
:src="link.icon" | ||
alt="Platform" | ||
/> | ||
<span v-if="link.text"> {{ link.text }} </span> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="feature-wrapper"> | ||
<div | ||
v-for="project in projects" | ||
:key="project.title" | ||
class="feature-item" | ||
style="flex-basis: 100%" | ||
> | ||
<h3>{{ project.title }}</h3> | ||
<p v-if="project.desc">{{ project.desc }}</p> | ||
<template v-for="info in project.info" :key="info.link"> | ||
<h4 v-if="info.name">{{ info.name }}</h4> | ||
<div class="feature-link-wrapper"> | ||
<a | ||
v-for="link in info.links" | ||
:key="link.text" | ||
class="feature-link-item" | ||
:href="link.link" | ||
> | ||
<img | ||
width="20" | ||
height="20" | ||
v-if="link.icon" | ||
:src="link.icon" | ||
alt="Platform" | ||
/> | ||
<span v-if="link.text"> {{ link.text }} </span> | ||
</a> | ||
</div> | ||
</template> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
</HopeHomePage> | ||
</template> | ||
<script setup lang="ts"> | ||
// import HopeHomePage from "vuepress-theme-hope/components/HomePage.js"; | ||
import { useRouter } from 'vue-router' | ||
import HopeHomePage from "vuepress-theme-hope/components/HomePage.js"; | ||
import Sidebar from "vuepress-theme-hope/modules/sidebar/components/Sidebar.js"; | ||
import { usePageFrontmatter } from "@vuepress/client"; | ||
import { useRouter } from "vue-router"; | ||
const router = useRouter() | ||
router.push('/product/introduction') | ||
const frontmatter = usePageFrontmatter(); | ||
const products = frontmatter.value.products || []; | ||
const projects = frontmatter.value.projects || []; | ||
// const router = useRouter() | ||
// router.push('/product/introduction') | ||
</script> | ||
<style scoped> | ||
.home { | ||
padding-top: var(--navbar-height); | ||
} | ||
.feature-wrapper { | ||
justify-content: flex-start; | ||
border-width: 0 0 1px 0; | ||
border-color: var(--border-color); | ||
border-style: solid; | ||
} | ||
@media screen and ((min-width: 1440px)) { | ||
.feature-item { | ||
flex-basis: calc(33% - 3rem); | ||
} | ||
} | ||
.feature-link-wrapper { | ||
display: flex; | ||
justify-content: flex-start; | ||
flex-wrap: wrap; | ||
} | ||
.feature-link-item { | ||
padding: 0.5rem 1rem 0.5rem 0; | ||
transition: color 0.2s linear; | ||
transition: padding 0.2s linear; | ||
} | ||
.feature-link-item:hover { | ||
color: var(--accent-color); | ||
padding-top: 0.3rem; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.