PicList/docs/APP.vue

217 lines
6.4 KiB
Vue
Raw Normal View History

2017-12-11 08:52:14 -05:00
<template lang='pug'>
#app(v-cloak)
#header
.mask
img.logo(src="~icons/256x256.png", alt="PicGo")
h1.title PicGo
2019-01-12 08:04:09 -05:00
small(v-if="version") {{ version }}
2017-12-11 08:52:14 -05:00
h2.desc 图片上传+管理新体验
2018-07-10 23:19:47 -04:00
button.download(@click="goLink('https://github.com/Molunerfinn/picgo/releases')") 免费下载
2019-03-08 01:39:00 -05:00
button.download(@click="goLink('https://picgo.github.io/PicGo-Doc/zh/guide/')") 查看文档
2017-12-11 08:52:14 -05:00
h3.desc
| 基于#[a(href="https://github.com/SimulatedGREG/electron-vue" target="_blank") electron-vue]开发
2018-07-10 23:19:47 -04:00
h3.desc
| 支持macOS,Windows,Linux
2019-01-12 08:04:09 -05:00
h3.desc
2019-08-17 22:20:30 -04:00
| 支持#[a(href="https://picgo.github.io/PicGo-Doc/zh/guide/config.html#%E6%8F%92%E4%BB%B6%E8%AE%BE%E7%BD%AE%EF%BC%88v2-0%EF%BC%89" target="_blank") 插件系统]让PicGo更强大
2017-12-11 08:52:14 -05:00
#container.container-fluid
.row.ex-width
2019-08-17 22:20:30 -04:00
img.gallery.col-xs-10.col-xs-offset-1.col-md-offset-2.col-md-8(src="https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/first.png")
2017-12-11 08:52:14 -05:00
.row.ex-width.display-list
.display-list__item(v-for="(item, index) in itemList" :key="index" :class="{ 'o-item': index % 2 !== 0 }")
.col-xs-10.col-xs-offset-1.col-md-7.col-md-offset-0
img(:src="item.url")
.col-xs-10.col-xs-offset-1.col-md-5.col-md-offset-0.display-list__content
.display-list__title {{ item.title }}
2017-12-11 08:52:14 -05:00
.display-list__desc {{ item.desc }}
.row.ex-width.info
.col-xs-10.col-xs-offset-1
2019-01-12 08:04:09 -05:00
| &copy;2017 - {{ year }} #[a(href="https://github.com/Molunerfinn" target="_blank") Molunerfinn]
2017-12-11 08:52:14 -05:00
</template>
<script>
export default {
name: '',
data () {
return {
2019-01-12 08:04:09 -05:00
version: '',
year: new Date().getFullYear(),
2017-12-11 08:52:14 -05:00
itemList: [
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/second.png',
2017-12-11 08:52:14 -05:00
title: '精致设计',
2018-01-10 03:51:09 -05:00
desc: 'macOS系统下支持拖拽至menubar图标实现上传。menubar app 窗口显示最新上传的5张图片以及剪贴板里的图片。点击图片自动将上传的链接复制到剪贴板。Windows平台不支持'
2017-12-11 08:52:14 -05:00
},
2018-07-10 23:19:47 -04:00
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/third.png',
2018-07-10 23:19:47 -04:00
title: 'Mini小窗',
desc: 'Windows以及Linux系统下提供一个mini悬浮窗用于用户拖拽上传节约你宝贵的桌面空间。'
},
2017-12-11 08:52:14 -05:00
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/forth.png',
2017-12-11 08:52:14 -05:00
title: '便捷管理',
desc: '查看你的上传记录,重复使用更方便。支持点击图片大图查看。支持删除图片(仅本地记录),让界面更加干净。'
},
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/fifth.png',
2017-12-11 08:52:14 -05:00
title: '可选图床',
2019-01-12 08:04:09 -05:00
desc: '默认支持微博图床、七牛图床、腾讯云COS、又拍云、GitHub、SM.MS、阿里云OSS、Imgur。方便不同图床的上传需求。2.0版本开始更可以自己开发插件实现其他图床的上传需求。'
2017-12-11 08:52:14 -05:00
},
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/sixth.png',
2017-12-11 08:52:14 -05:00
title: '多样链接',
2019-01-12 08:04:09 -05:00
desc: '支持5种默认剪贴板链接格式包括一种自定义格式让你的文本编辑游刃有余。'
},
{
2019-08-17 22:20:30 -04:00
url: 'https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/seventh.png',
2019-01-12 08:04:09 -05:00
title: '插件系统',
desc: '2.0版本开始支持插件系统让PicGo发挥无限潜能成为一个极致的效率工具。'
2017-12-11 08:52:14 -05:00
}
]
}
},
2019-01-12 08:04:09 -05:00
created () {
this.getVersion()
},
2017-12-11 08:52:14 -05:00
methods: {
goLink (link) {
window.open(link, '_blank')
2019-01-12 08:04:09 -05:00
},
async getVersion () {
const release = 'https://api.github.com/repos/Molunerfinn/PicGo/releases/latest'
const res = await this.$http.get(release)
this.version = res.data.name
2017-12-11 08:52:14 -05:00
}
}
}
</script>
<style lang='stylus'>
[v-cloak]
display none
*
box-sizing border-box
body,
html,
h1
margin 0
padding 0
font-family "Source Sans Pro","Helvetica Neue","PingFang SC","Hiragino Sans GB","Microsoft YaHei","微软雅黑",Arial,sans-serif
2017-12-11 08:52:14 -05:00
#app
position relative
.mask
position absolute
2017-12-12 21:28:36 -05:00
width 100%
2017-12-11 08:52:14 -05:00
height 100vh
top 0
left 0
background rgba(0,0,0, 0.7)
z-index -1
#header
height 100vh
2017-12-12 21:28:36 -05:00
width 100%
2019-08-17 22:20:30 -04:00
background-image url("https://cdn.jsdelivr.net/gh/Molunerfinn/test/picgo-site/bg.jpeg")
2017-12-11 08:52:14 -05:00
background-attachment fixed
background-size cover
background-position center
text-align center
padding 15vh
position relative
z-index 2
.logo
width 120px
.title
color #4BA2E2
font-size 36px
font-weight 300
margin 10px auto
2019-01-12 08:04:09 -05:00
text-align center
small
margin-left 10px
font-size 14px
2017-12-11 08:52:14 -05:00
.desc
font-weight 400
margin 20px auto 10px
color #ddd
a
text-decoration none
color #4BA2E2
.download
display inline-block
line-height 1
white-space nowrap
cursor pointer
background transparent
border 1px solid #d8dce5
color #ddd
-webkit-appearance none
text-align center
box-sizing border-box
outline none
margin 20px 12px
transition .1s
font-weight 500
user-select none
padding 12px 20px
font-size 14px
border-radius 20px
padding 12px 23px
transition .2s all ease-in-out
&:hover
background #ddd
color rgba(0,0,0, 0.7)
#container
position relative
text-align center
margin-top -10vh
z-index 3
.gallery
margin-bottom 60px
cursor pointer
transition all .2s ease-in-out
&:hover
transform scale(1.05)
.display-list
&__item
padding 48px
text-align left
background #2E2E2E
overflow hidden
&.o-item
background #fff
.display-list__desc
color #2E2E2E
img
width 100%
cursor pointer
transition all .2s ease-in-out
&:hover
transform scale(1.05)
&__content
padding-top 120px
&__title
color #4BA2E2
font-size 50px
&__desc
color #fff
margin-top 20px
.info
padding 48px 0
background #2E2E2E
color #fff
a
text-decoration none
color #fff
@media (max-width: 768px)
2018-01-10 03:51:09 -05:00
#header
padding 10vh
2017-12-11 08:52:14 -05:00
#container
.display-list
&__item
padding 24px 12px
&__content
padding-top 30px
&__title
font-size 25px
&__desc
margin-top 12px
</style>