2021-10-22 01:18:40 +00:00
|
|
|
|
<template>
|
2022-03-09 07:17:02 +00:00
|
|
|
|
<div class="site-container">
|
2021-10-22 01:18:40 +00:00
|
|
|
|
<div class="site-banner">
|
|
|
|
|
<div class="site-banner-main">
|
2021-10-22 07:37:22 +00:00
|
|
|
|
<div class="site-zfj site-zfj-anim">
|
2022-02-27 04:55:09 +00:00
|
|
|
|
<img
|
2022-03-29 23:44:37 +00:00
|
|
|
|
src="../assets/logo-png.png"
|
2022-02-27 04:55:09 +00:00
|
|
|
|
style="width: 220px; border-radius: 10px"
|
|
|
|
|
/>
|
2021-10-22 07:37:22 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="layui-anim site-desc site-desc-anim">
|
2021-10-22 09:50:59 +00:00
|
|
|
|
<p class="web-font-desc">layui - vue</p>
|
2022-03-30 13:16:15 +00:00
|
|
|
|
<cite>{{ t("home.description") }}</cite>
|
2021-10-22 07:37:22 +00:00
|
|
|
|
</div>
|
2021-10-22 01:18:40 +00:00
|
|
|
|
<div class="site-download">
|
2022-03-30 13:16:15 +00:00
|
|
|
|
<router-link class="layui-inline site-down" to="/zh-CN/guide">
|
|
|
|
|
Get Started
|
|
|
|
|
</router-link>
|
2022-04-02 09:08:34 +00:00
|
|
|
|
<a
|
|
|
|
|
class="layui-inline site-down"
|
|
|
|
|
href="javascript:void(0);"
|
|
|
|
|
@click="changeTheme"
|
|
|
|
|
>
|
2022-04-05 16:21:26 +00:00
|
|
|
|
{{ appStore.theme === "dark" ? "Turn Off" : "Turn On" }}
|
2022-03-30 15:10:11 +00:00
|
|
|
|
</a>
|
2021-10-22 07:37:22 +00:00
|
|
|
|
</div>
|
|
|
|
|
<div class="site-version">
|
|
|
|
|
<span
|
2022-04-05 02:31:31 +00:00
|
|
|
|
>{{ t("home.version") }}:<cite class="site-showv">
|
2022-04-05 19:55:16 +00:00
|
|
|
|
{{ version }}
|
2022-04-05 02:31:31 +00:00
|
|
|
|
</cite></span
|
2022-03-30 13:16:15 +00:00
|
|
|
|
>
|
|
|
|
|
<span
|
|
|
|
|
>{{ t("home.download") }}:<em class="site-showdowns"
|
2022-07-03 14:27:46 +00:00
|
|
|
|
>14,684</em
|
2021-10-22 07:37:22 +00:00
|
|
|
|
></span
|
2021-10-22 01:18:40 +00:00
|
|
|
|
>
|
|
|
|
|
</div>
|
2022-04-02 09:08:34 +00:00
|
|
|
|
<div class="site-banner-other">
|
|
|
|
|
<a
|
|
|
|
|
href="https://gitee.com/layui-vue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="nofollow"
|
|
|
|
|
class="site-star"
|
|
|
|
|
>
|
2022-07-03 14:27:46 +00:00
|
|
|
|
<i class="layui-icon"></i> Star <cite id="getStars">1272</cite>
|
2022-04-02 09:08:34 +00:00
|
|
|
|
</a>
|
|
|
|
|
<a
|
|
|
|
|
href="https://gitee.com/layui-vue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="nofollow"
|
|
|
|
|
class="site-fork"
|
|
|
|
|
>
|
|
|
|
|
Gitee
|
|
|
|
|
</a>
|
|
|
|
|
<a
|
|
|
|
|
href="https://github.com/layui-vue"
|
|
|
|
|
target="_blank"
|
|
|
|
|
rel="nofollow"
|
|
|
|
|
class="site-fork"
|
|
|
|
|
>
|
|
|
|
|
Github
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
2021-10-22 07:37:22 +00:00
|
|
|
|
</div>
|
2021-10-22 01:18:40 +00:00
|
|
|
|
</div>
|
2022-06-14 16:55:47 +00:00
|
|
|
|
<div class="box-list">
|
|
|
|
|
<lay-row :space="30">
|
|
|
|
|
<lay-col :md="6" :sm="12" :xs="12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<h1 class="title">🌈 Classic design</h1>
|
|
|
|
|
<p class="details">layui css.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
<lay-col :md="6" :sm="12" :xs="12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<h1 class="title">🐝 Small volume</h1>
|
|
|
|
|
<p class="details">only 8.5 MB.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
<lay-col :md="6" :sm="12" :xs="12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<h1 class="title">🍬 Setup script</h1>
|
|
|
|
|
<p class="details">use grammar sugar.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
<lay-col :md="6" :sm="12" :xs="12">
|
|
|
|
|
<div class="box">
|
|
|
|
|
<h1 class="title">😋 Quick build</h1>
|
|
|
|
|
<p class="details">easy to use</p>
|
|
|
|
|
</div>
|
|
|
|
|
</lay-col>
|
|
|
|
|
</lay-row>
|
|
|
|
|
</div>
|
2021-10-22 09:50:59 +00:00
|
|
|
|
<div class="footer footer-index">
|
2022-03-30 13:16:15 +00:00
|
|
|
|
<p>Released under the <a href="/index.html">MIT License</a>.</p>
|
|
|
|
|
<p>Copyright © 2021-2022 layui-vue.com</p>
|
2021-10-22 09:50:59 +00:00
|
|
|
|
</div>
|
2021-10-22 07:37:22 +00:00
|
|
|
|
</div>
|
2021-10-22 01:18:40 +00:00
|
|
|
|
</template>
|
2022-03-09 03:22:25 +00:00
|
|
|
|
|
|
|
|
|
<script>
|
2022-04-05 19:56:16 +00:00
|
|
|
|
import { inject } from "vue";
|
2022-03-30 13:16:15 +00:00
|
|
|
|
import { useI18n } from "vue-i18n";
|
2022-04-05 16:21:26 +00:00
|
|
|
|
import { useAppStore } from "../store/app";
|
|
|
|
|
|
2022-03-09 03:22:25 +00:00
|
|
|
|
export default {
|
|
|
|
|
name: "index",
|
|
|
|
|
setup() {
|
|
|
|
|
const { t } = useI18n();
|
2022-04-05 16:21:26 +00:00
|
|
|
|
const appStore = useAppStore();
|
2022-04-05 16:24:20 +00:00
|
|
|
|
|
2022-03-30 15:10:11 +00:00
|
|
|
|
const changeTheme = () => {
|
2022-04-05 16:21:26 +00:00
|
|
|
|
if (appStore.theme === "dark") {
|
|
|
|
|
appStore.theme = "light";
|
2022-03-30 15:10:11 +00:00
|
|
|
|
} else {
|
2022-04-05 16:21:26 +00:00
|
|
|
|
appStore.theme = "dark";
|
2022-03-30 15:10:11 +00:00
|
|
|
|
}
|
2022-04-02 09:08:34 +00:00
|
|
|
|
};
|
2022-03-09 03:22:25 +00:00
|
|
|
|
|
2022-04-05 19:55:16 +00:00
|
|
|
|
const version = inject("version");
|
|
|
|
|
|
2022-03-09 03:22:25 +00:00
|
|
|
|
return {
|
2022-03-30 19:37:01 +00:00
|
|
|
|
t,
|
2022-04-05 19:55:16 +00:00
|
|
|
|
version,
|
2022-04-05 16:21:26 +00:00
|
|
|
|
appStore,
|
2022-03-30 19:47:30 +00:00
|
|
|
|
changeTheme,
|
2022-03-30 13:16:15 +00:00
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
};
|
2022-03-09 03:22:25 +00:00
|
|
|
|
</script>
|
2021-10-22 01:18:40 +00:00
|
|
|
|
<style>
|
2022-03-29 23:44:37 +00:00
|
|
|
|
#app,
|
|
|
|
|
html,
|
|
|
|
|
body {
|
|
|
|
|
height: 100%;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2022-02-27 04:55:09 +00:00
|
|
|
|
.site-container {
|
2022-03-29 23:44:37 +00:00
|
|
|
|
background: #fff;
|
2022-02-27 04:55:09 +00:00
|
|
|
|
margin-top: 60px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 01:18:40 +00:00
|
|
|
|
.site-banner {
|
|
|
|
|
overflow: hidden;
|
2022-03-30 10:35:34 +00:00
|
|
|
|
text-align: center;
|
|
|
|
|
position: relative;
|
2022-06-14 16:55:47 +00:00
|
|
|
|
height: calc(100% - 60px);
|
2022-03-29 23:44:37 +00:00
|
|
|
|
background-image: url(../assets/background.svg);
|
|
|
|
|
background-repeat: no-repeat;
|
2022-03-30 10:35:34 +00:00
|
|
|
|
background-size: 100%;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
}
|
2022-03-30 10:35:34 +00:00
|
|
|
|
|
2021-10-22 01:18:40 +00:00
|
|
|
|
.site-banner-main {
|
2022-04-12 00:31:12 +00:00
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
height: calc(100vh - 180px);
|
|
|
|
|
justify-content: center;
|
|
|
|
|
position: relative;
|
|
|
|
|
text-align: center;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
}
|
2022-04-12 00:31:12 +00:00
|
|
|
|
|
2021-10-22 01:18:40 +00:00
|
|
|
|
.site-download {
|
2021-10-23 07:54:37 +00:00
|
|
|
|
margin-top: 72px;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
font-size: 0;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 01:18:40 +00:00
|
|
|
|
.site-download a {
|
|
|
|
|
position: relative;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
padding: 0 20px 0 20px;
|
|
|
|
|
height: 40px;
|
|
|
|
|
line-height: 40px;
|
2021-10-22 07:37:22 +00:00
|
|
|
|
border-radius: 4px;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
background: #f1f1f1;
|
|
|
|
|
border: 1px solid #f1f1f1;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
color: #476582;
|
|
|
|
|
font-weight: 500;
|
2022-04-02 09:08:34 +00:00
|
|
|
|
font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
|
|
|
Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue",
|
|
|
|
|
sans-serif;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
transition: all 0.5s;
|
|
|
|
|
-webkit-transition: all 0.5s;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
letter-spacing: 0.2px;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 01:18:40 +00:00
|
|
|
|
.site-download a:hover {
|
2022-03-30 13:16:15 +00:00
|
|
|
|
border-radius: 10px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2022-03-30 13:16:15 +00:00
|
|
|
|
.site-download a:first-child {
|
|
|
|
|
background: #009688;
|
|
|
|
|
color: white;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2022-04-02 09:08:34 +00:00
|
|
|
|
.site-download a + a {
|
2022-03-30 13:16:15 +00:00
|
|
|
|
margin-left: 20px;
|
2021-10-22 01:18:40 +00:00
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-zfj {
|
|
|
|
|
padding-top: 25px;
|
|
|
|
|
height: 220px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-zfj-anim i {
|
|
|
|
|
-webkit-animation-name: site-zfj;
|
|
|
|
|
animation-name: site-zfj;
|
|
|
|
|
-webkit-animation-duration: 5s;
|
|
|
|
|
animation-duration: 5s;
|
|
|
|
|
-webkit-animation-timing-function: linear;
|
|
|
|
|
animation-timing-function: linear;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-zfj i {
|
|
|
|
|
position: absolute;
|
|
|
|
|
left: 50%;
|
|
|
|
|
top: 50px;
|
|
|
|
|
width: 200px;
|
|
|
|
|
height: 200px;
|
|
|
|
|
margin-left: -100px;
|
|
|
|
|
font-size: 180px;
|
|
|
|
|
color: #c2c2c2;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-desc-anim {
|
|
|
|
|
-webkit-animation-name: site-desc;
|
|
|
|
|
animation-name: site-desc;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-desc {
|
|
|
|
|
position: relative;
|
|
|
|
|
height: 70px;
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-desc .web-font-desc {
|
|
|
|
|
color: #fff;
|
2022-03-30 10:35:34 +00:00
|
|
|
|
color: #213547;
|
|
|
|
|
font-size: 52px;
|
2022-03-30 10:38:47 +00:00
|
|
|
|
opacity: 0.82;
|
2021-10-22 07:37:22 +00:00
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.web-font-desc {
|
2022-03-30 10:35:34 +00:00
|
|
|
|
font-size: 76px;
|
|
|
|
|
line-height: 1.25;
|
|
|
|
|
font-weight: 900;
|
|
|
|
|
letter-spacing: -1.5px;
|
|
|
|
|
max-width: 960px;
|
|
|
|
|
margin: 0 auto;
|
2021-10-22 07:37:22 +00:00
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-desc cite {
|
|
|
|
|
position: absolute;
|
|
|
|
|
bottom: -40px;
|
|
|
|
|
left: 0;
|
|
|
|
|
width: 100%;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
2021-10-22 07:37:22 +00:00
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-version {
|
|
|
|
|
position: relative;
|
|
|
|
|
margin-top: 18px;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
2021-10-22 07:37:22 +00:00
|
|
|
|
font-size: 12px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-version span {
|
|
|
|
|
padding: 0 3px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-version * {
|
|
|
|
|
font-style: normal;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-version a {
|
2022-03-30 13:16:15 +00:00
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
2021-10-22 07:37:22 +00:00
|
|
|
|
text-decoration: none;
|
|
|
|
|
margin-top: -4px;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-banner-other {
|
2022-04-02 09:08:34 +00:00
|
|
|
|
position: relative;
|
2021-10-22 07:37:22 +00:00
|
|
|
|
left: 0;
|
2022-04-02 09:08:34 +00:00
|
|
|
|
top: 40px;
|
2022-03-30 10:35:34 +00:00
|
|
|
|
bottom: 90px;
|
2021-10-22 07:37:22 +00:00
|
|
|
|
width: 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
font-size: 0;
|
|
|
|
|
}
|
2022-03-30 13:16:15 +00:00
|
|
|
|
|
2022-06-14 16:55:47 +00:00
|
|
|
|
.box-list {
|
|
|
|
|
padding: 50px 250px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box {
|
|
|
|
|
border: 1px solid rgba(60, 60, 60, 0.12);
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
padding: 24px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background-color: #f9f9f9;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box .title {
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.box .details {
|
|
|
|
|
padding-top: 8px;
|
|
|
|
|
line-height: 24px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-30 13:16:15 +00:00
|
|
|
|
.site-container .layui-field-title {
|
|
|
|
|
border-top: 1px solid #d2d2d2;
|
|
|
|
|
}
|
|
|
|
|
|
2021-10-22 07:37:22 +00:00
|
|
|
|
.site-banner-other a {
|
|
|
|
|
display: inline-block;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
height: 28px;
|
|
|
|
|
line-height: 28px;
|
|
|
|
|
margin: 0 6px;
|
|
|
|
|
padding: 0 8px;
|
2021-10-22 08:37:47 +00:00
|
|
|
|
border-radius: 4px;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
|
|
|
|
border: 1px solid rgba(60, 60, 60, 0.7);
|
2021-10-22 07:37:22 +00:00
|
|
|
|
font-size: 14px;
|
|
|
|
|
transition: all 0.5s;
|
|
|
|
|
-webkit-transition: all 0.5s;
|
|
|
|
|
}
|
2022-06-14 16:55:47 +00:00
|
|
|
|
|
2021-10-22 09:50:59 +00:00
|
|
|
|
.footer {
|
2021-10-22 09:52:43 +00:00
|
|
|
|
width: 100%;
|
2022-06-22 02:02:20 +00:00
|
|
|
|
padding: 30px 0px;
|
2021-10-22 09:52:43 +00:00
|
|
|
|
line-height: 30px;
|
|
|
|
|
text-align: center;
|
2022-06-14 16:55:47 +00:00
|
|
|
|
border-top: 1px solid #eee;
|
2022-03-30 13:16:15 +00:00
|
|
|
|
color: rgba(60, 60, 60, 0.7);
|
2021-10-22 09:52:43 +00:00
|
|
|
|
font-weight: 300;
|
2022-03-30 10:35:34 +00:00
|
|
|
|
font-size: 13.6px;
|
|
|
|
|
background: #f9f9f9;
|
2021-10-22 09:52:43 +00:00
|
|
|
|
}
|
|
|
|
|
</style>
|