Skip to content

Commit

Permalink
feat: 样式调整,添加图片压缩入口
Browse files Browse the repository at this point in the history
  • Loading branch information
ATQQ committed Mar 30, 2024
1 parent 624094e commit 61af4bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
1 change: 0 additions & 1 deletion packages/client/src/components/ConfigPanel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ const isFullScreen = computed(() => width.value < 768)

<style lang="scss" scoped>
i {
margin-right: 10px;
cursor: pointer;
}
Expand Down
27 changes: 20 additions & 7 deletions packages/client/src/components/HomeHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,28 @@
import { useIsExpired } from '@/composables';
import ConfigPanel from './ConfigPanel.vue';
const isExpired = useIsExpired()
import { ElAlert } from 'element-plus';
import { ElAlert, ElLink } from 'element-plus';
</script>
<template>
<header>
<div class="left">
<img src="../assets/logo.gif">
<span>七牛云 OSS 图床</span>
<span>七牛云 OSS 图床</span>
</div>
<span class="right">
<ConfigPanel />
<a href="https://github.com/ATQQ/image-bed-qiniu/tree/master/packages/client#-%E4%B8%83%E7%89%9B%E4%BA%91oss%E5%9B%BE%E5%BA%8A-" target="_blank" noreferrer noopener>
GitHub
<ElLink
type="success"
href="https://demos.sugarat.top/pages/png-compress/"
target="_blank" noreferrer noopener>
图片在线压缩
</ElLink>
<a href="https://github.com/ATQQ/image-bed-qiniu/tree/master/packages/client#-%E4%B8%83%E7%89%9B%E4%BA%91oss%E5%9B%BE%E5%BA%8A-"
target="_blank" noreferrer noopener>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 20 20">
<path fill="currentColor"
d="M20 10.25c0 2.234-.636 4.243-1.908 6.027c-1.271 1.784-2.914 3.018-4.928 3.703c-.234.045-.406.014-.514-.093a.539.539 0 0 1-.163-.4V16.67c0-.863-.226-1.495-.677-1.895a8.72 8.72 0 0 0 1.335-.24c.394-.107.802-.28 1.223-.52a3.66 3.66 0 0 0 1.055-.888c.282-.352.512-.819.69-1.402c.178-.583.267-1.252.267-2.008c0-1.077-.343-1.994-1.028-2.75c.32-.81.286-1.717-.105-2.723c-.243-.08-.594-.03-1.054.147a6.94 6.94 0 0 0-1.198.587l-.495.32a9.03 9.03 0 0 0-2.5-.346a9.03 9.03 0 0 0-2.5.347a11.52 11.52 0 0 0-.553-.36c-.23-.143-.593-.314-1.088-.514c-.494-.2-.868-.26-1.12-.18c-.381 1.005-.412 1.912-.09 2.722c-.686.756-1.03 1.673-1.03 2.75c0 .756.09 1.423.268 2.002c.178.578.406 1.045.683 1.401a3.53 3.53 0 0 0 1.048.894c.421.24.83.414 1.224.52c.395.108.84.188 1.335.241c-.347.32-.56.779-.638 1.375a2.539 2.539 0 0 1-.586.2a3.597 3.597 0 0 1-.742.067c-.287 0-.57-.096-.853-.287c-.282-.192-.523-.47-.723-.834a2.133 2.133 0 0 0-.631-.694c-.256-.178-.471-.285-.645-.32l-.26-.04c-.182 0-.308.02-.378.06c-.07.04-.09.09-.065.153a.738.738 0 0 0 .117.187a.961.961 0 0 0 .17.16l.09.066c.192.09.38.259.567.508c.187.249.324.476.41.68l.13.307c.113.338.304.612.574.821c.269.21.56.343.872.4c.312.058.614.09.905.094c.29.004.532-.011.723-.047l.299-.053c0 .338.002.734.007 1.188l.006.72c0 .16-.056.294-.17.4c-.112.108-.286.139-.52.094c-2.014-.685-3.657-1.92-4.928-3.703C.636 14.493 0 12.484 0 10.25c0-1.86.447-3.574 1.341-5.145a10.083 10.083 0 0 1 3.64-3.73A9.6 9.6 0 0 1 10 0a9.6 9.6 0 0 1 5.02 1.375a10.083 10.083 0 0 1 3.639 3.73C19.553 6.675 20 8.391 20 10.25Z" />
</svg>
</a>
</span>
</header>
Expand All @@ -25,26 +35,29 @@ header {
justify-content: space-between;
padding: 18px;
}
.left {
display: flex;
align-items: center;
font-size: 14px;
img{
img {
height: 40px;
margin-right: 10px;
}
}
.right {
display: flex;
align-items: center;
a {
color: var(--el-text-color-regular);
text-decoration: none;
margin-left: 8px;
}
}
.expired{
.expired {
max-width: 400px;
margin: 0 auto;
}
Expand Down

0 comments on commit 61af4bb

Please sign in to comment.