Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
tiann committed Dec 27, 2019
1 parent 3e22240 commit f899b13
Show file tree
Hide file tree
Showing 12 changed files with 238 additions and 6,325 deletions.
6 changes: 6 additions & 0 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
module.exports = {
title: "Tai Chi",
description: "A Rootless Xposed styled Framework",
head: [
['link', { rel: 'icon', href: '/logo.svg' }]
],
locales: {
// 键名是该语言所属的子路径
// 作为特例,默认语言可以使用 '/' 作为其路径。
Expand Down Expand Up @@ -37,6 +41,7 @@ module.exports = {
nav: [
{ text: "Home", link: "/" },
{ text: "Guide", link: "/doc/getting_started/" },
{ text: 'Commit Module', link: 'http://admin.taichi.cool' },
],
lastUpdated: "Last Updated",
docsRepo: "taichi-framework/TaiChi",
Expand Down Expand Up @@ -69,6 +74,7 @@ module.exports = {
nav: [
{ text: "首页", link: "/zh/" },
{ text: "使用教程", link: "/zh/doc/getting_started/" },
{ text: '提交模块', link: 'http://admin.taichi.cool' },
],
},
},
Expand Down
217 changes: 217 additions & 0 deletions docs/.vuepress/theme/components/Home.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,217 @@
<template>
<main class="home" aria-labelledby="main-title">
<header class="hero">
<img v-if="data.heroImage" :src="$withBase(data.heroImage)" :alt="data.heroAlt || 'hero'" />

<h1 v-if="data.heroText !== null" id="main-title">{{ data.heroText || $title || 'Hello' }}</h1>

<p class="description">{{ data.tagline || $description || 'Welcome to your VuePress site' }}</p>

<div class="actions">
<div class="action" v-if="data.actionText2 && data.actionLink2">
<NavLink class="action-button action2" :item="actionLink2" />
</div>

<div class="action" v-if="data.actionText && data.actionLink">
<NavLink class="action-button" :item="actionLink" />
</div>
</div>
</header>

<div class="features" v-if="data.features && data.features.length">
<div class="feature" v-for="(feature, index) in data.features" :key="index">
<h2>{{ feature.title }}</h2>
<p>{{ feature.details }}</p>
</div>
</div>

<Content class="theme-default-content custom" />

<div class="footer" v-if="data.footer">{{ data.footer }}</div>
</main>
</template>

<script>
import NavLink from '@theme/components/NavLink.vue'
export default {
components: { NavLink },
computed: {
data() {
return this.$page.frontmatter
},
actionLink() {
return {
link: this.data.actionLink,
text: this.data.actionText
}
},
actionLink2() {
return {
link: this.data.actionLink2,
text: this.data.actionText2
}
}
}
}
</script>

<style lang="stylus">
.home {
padding: $navbarHeight 2rem 0;
max-width: 960px;
margin: 0px auto;
display: block;
.hero {
text-align: center;
img {
max-width: 100%;
max-height: 280px;
display: block;
margin: 3rem auto 1.5rem;
}
h1 {
font-size: 3rem;
}
}
h1, .description, .actions {
margin: 1.8rem auto;
}
.description {
max-width: 35rem;
font-size: 1.6rem;
line-height: 1.3;
color: lighten($textColor, 40%);
}
}
.action {
margin: 0.6rem;
}
.actions {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
align-content: stretch;
justify-content: center;
}
.action-button {
display: inline-block;
font-size: 1.2rem;
color: #fff;
background-color: $accentColor;
padding: 0.8rem 1.6rem;
border-radius: 4px;
transition: background-color 0.1s ease;
box-sizing: border-box;
border-bottom: 1px solid darken($accentColor, 10%);
&:hover {
background-color: lighten($accentColor, 10%);
}
}
.action2 {
color: $textColor;
background-color: #fff;
transition: background-color 0.1s ease;
border: 1px solid darken($textColor, 10%);
&:hover {
background-color: lighten($textColor, 90%);
}
}
.features {
border-top: 1px solid $borderColor;
padding: 1.2rem 0;
margin-top: 2.5rem;
display: flex;
flex-wrap: wrap;
align-items: flex-start;
align-content: stretch;
justify-content: space-between;
}
.feature {
flex-grow: 1;
flex-basis: 30%;
max-width: 30%;
h2 {
font-size: 1.4rem;
font-weight: 500;
border-bottom: none;
padding-bottom: 0;
color: lighten($textColor, 10%);
}
p {
color: lighten($textColor, 25%);
}
}
.footer {
padding: 2.5rem;
border-top: 1px solid $borderColor;
text-align: center;
color: lighten($textColor, 25%);
}
@media (max-width: $MQMobile) {
.home {
.features {
flex-direction: column;
}
.feature {
max-width: 100%;
padding: 0 2.5rem;
}
}
}
@media (max-width: $MQMobileNarrow) {
.home {
padding-left: 1.5rem;
padding-right: 1.5rem;
.hero {
img {
max-height: 210px;
margin: 2rem auto 1.2rem;
}
h1 {
font-size: 2rem;
}
h1, .description, .actions {
margin: 1.2rem auto;
}
.description {
font-size: 1.2rem;
}
.action-button {
font-size: 1rem;
padding: 0.6rem 1.2rem;
}
}
.feature {
h2 {
font-size: 1.25rem;
}
}
}
}
</style>
3 changes: 3 additions & 0 deletions docs/.vuepress/theme/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extend: '@vuepress/theme-default'
}
2 changes: 2 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ heroText: Tai Chi
tagline: A Rootless Xposed-Style Framework
actionText: Learn More →
actionLink: /doc/
actionText2: Download
actionLink2: download
features:
- title: Supporting latest Android
details: Fully support Android 5.0 ~ 10. Almost all devices including Samsung, Huawei, Xiaomi, Oppo, Vivo are supported.
Expand Down
5 changes: 2 additions & 3 deletions docs/download/download.md → docs/download.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
---
title: 太极下载
layout: post
sidebar: false
---

# TaiChi Download

[中文用户在这里下载](download_cn.md)
[中文用户在这里下载](/zh/download)

## TaiChi APP

Expand All @@ -17,7 +17,6 @@ If you want to download modules, go [Module Download](../module/module.md)。

In addition, TaiChi is Daily Build now, you can try new release every day. Just follow [Daily Build][daily-build].


## TaiChi Magisk module

If you want to use Magisk mode of TaiChi, you must flash Magisk module of TaiChi first. Here the modules:
Expand Down
34 changes: 0 additions & 34 deletions docs/index.html

This file was deleted.

Loading

0 comments on commit f899b13

Please sign in to comment.