From a77e7a49bc164caf76bde951859fb7f3168c988b Mon Sep 17 00:00:00 2001 From: mashirozx Date: Sun, 8 Aug 2021 17:10:19 +0800 Subject: [PATCH] Add header profile drawer --- app/functions.php | 2 +- .../postThumbCards/PostThumbCardMobile.vue | 26 ++- .../content/components/comment/Composer.vue | 30 ++- src/components/image/Image.vue | 18 +- src/components/link/Link.vue | 15 +- src/layouts/components/header/Header.vue | 188 +++++++++++++++--- src/locales/default.json | 21 +- src/locales/defaultMessages.json | 61 +++++- 8 files changed, 308 insertions(+), 53 deletions(-) diff --git a/app/functions.php b/app/functions.php index 8500532..6167c2f 100644 --- a/app/functions.php +++ b/app/functions.php @@ -5,7 +5,7 @@ define('SAKURA_VERSION', wp_get_theme()->get('Version')); define('SAKURA_TEXT_DOMAIN', wp_get_theme()->get('TextDomain')); -define('SAKURA_DEVEPLOMENT', false); +define('SAKURA_DEVEPLOMENT', true); define('SAKURA_DEVEPLOMENT_HOST', 'http://127.0.0.1:9000'); // PHP loaders diff --git a/src/components/cards/postThumbCards/PostThumbCardMobile.vue b/src/components/cards/postThumbCards/PostThumbCardMobile.vue index d422dd2..c523c15 100644 --- a/src/components/cards/postThumbCards/PostThumbCardMobile.vue +++ b/src/components/cards/postThumbCards/PostThumbCardMobile.vue @@ -8,14 +8,18 @@ :alt="$props.data.title" placeholder="https://via.placeholder.com/1024x768" :draggable="false" + :ratio="9 / 16" /> -
+
+ {{ $props.data.publistTime }} +
+

{{ $props.data.title }} -

+
{{ $props.data.readCount }} @@ -82,11 +86,21 @@ export default defineComponent({ user-select: none; @include polyfills.flex-gap(12px, 'column nowrap'); > * { - width: calc(100% - 24px); + width: calc(100% - 48px); } > .row__wrapper { &--thumbnail { - width: 100%; + width: calc(100% - 24px); + border-radius: 10px; + overflow: hidden; + .image { + object-fit: cover; + transform: scale(1); + transition: transform 0.3s ease-in-out; + &:hover { + transform: scale(1.1); + } + } } &--tags { max-height: 32px; @@ -106,6 +120,10 @@ export default defineComponent({ } } } + &--date { + color: #888888; + font-size: 12px; + } &--title { line-height: 30px; font-size: x-large; // 24 diff --git a/src/components/content/components/comment/Composer.vue b/src/components/content/components/comment/Composer.vue index f65f5c0..a72b536 100644 --- a/src/components/content/components/comment/Composer.vue +++ b/src/components/content/components/comment/Composer.vue @@ -82,9 +82,9 @@
-
+