123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- <script lang="ts" setup>
- import { computed } from 'vue'
- import { useLang } from '../../composables/lang'
- import homeLocale from '../../../i18n/pages/home.json'
- defineProps<{
- isHome?: boolean
- }>()
- const lang = useLang()
- const homeLang = computed(() => homeLocale[lang.value])
- </script>
- <template>
- <footer class="footer" :class="{ 'is-home': isHome }">
- <div class="footer-main">
- <h4>{{ homeLang['10'] }}</h4>
- <a
- href="https://github.com/element-plus/element-plus"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['11'] }}
- </a>
- <a
- href="https://element-plus.gitee.io/zh-CN/"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['china_mirror'] }}
- </a>
- <a
- href="https://github.com/element-plus/element-plus/releases"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['12'] }}
- </a>
- <a
- href="https://element.eleme.io/"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['13'] }}
- </a>
- </div>
- <div class="footer-main">
- <h4>{{ homeLang['19'] }}</h4>
- <a
- href="https://discord.com/invite/gXK9XNzW3X"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['discord'] }}
- </a>
- <a
- href="https://github.com/element-plus/element-plus/issues"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['16'] }}
- </a>
- <a
- href="https://github.com/element-plus/element-plus/blob/dev/.github/CONTRIBUTING.en-US.md"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['17'] }}
- </a>
- <a
- href="https://segmentfault.com/t/element-plus"
- class="footer-main-link"
- target="_blank"
- >
- {{ homeLang['18'] }}
- </a>
- </div>
- </footer>
- </template>
- <style lang="scss">
- .dark .footer {
- background-color: var(--el-fill-color-lighter);
- }
- .footer {
- background-color: #f5f7fa;
- box-sizing: border-box;
- padding: 42px 64px 64px;
- // height: 340px;
- &.is-home {
- background-color: var(--bg-color);
- max-width: 900px;
- margin: 0 auto;
- padding: 40px 19px;
- }
- .container {
- box-sizing: border-box;
- width: auto;
- }
- .footer-main {
- font-size: 0;
- display: inline-block;
- vertical-align: top;
- margin-right: 130px;
- h4 {
- font-size: 18px;
- line-height: 1;
- margin: 0 0 15px;
- font-weight: 400;
- color: var(--el-text-color-primary);
- }
- .footer-main-link {
- display: block;
- margin: 0;
- line-height: 2;
- font-size: 14px;
- color: var(--text-color-light);
- &:hover {
- color: var(--text-color);
- }
- }
- }
- .footer-social {
- float: right;
- text-align: right;
- .footer-social-title {
- color: var(--text-color-light);
- font-size: 18px;
- line-height: 1;
- margin: 0 0 20px;
- padding: 0;
- font-weight: bold;
- }
- .ep-icon-github {
- transition: 0.3s;
- display: inline-block;
- line-height: 32px;
- text-align: center;
- color: #c8d6e8;
- background-color: transparent;
- font-size: 32px;
- vertical-align: middle;
- margin-right: 20px;
- &:hover {
- transform: scale(1.2);
- color: #8d99ab;
- }
- }
- .doc-icon-gitter {
- margin-right: 0;
- }
- }
- }
- @media (max-width: 1140px) {
- .footer {
- height: auto;
- }
- }
- @media (max-width: 1000px) {
- .footer-social {
- display: none;
- }
- }
- @media (max-width: 768px) {
- .footer {
- .footer-main {
- margin-bottom: 30px;
- }
- }
- }
- </style>
|