From 5e69ca7991aaa0ac87306ebc6582333b9c926846 Mon Sep 17 00:00:00 2001 From: ci7lus <7887955+ci7lus@users.noreply.github.com> Date: Mon, 23 Mar 2020 23:57:25 +0900 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E3=83=A9=E3=82=A4=E3=83=88?= =?UTF-8?q?=E3=83=A2=E3=83=BC=E3=83=89=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/global.css | 10 +++++++++ src/components/commons/PostCard.tsx | 6 +++--- src/components/commons/PostTag.tsx | 2 +- src/components/partials/global/TheError.tsx | 2 +- src/components/partials/global/TheFooter.tsx | 6 +++--- src/components/partials/global/TheHeader.tsx | 9 ++++---- src/components/partials/index/ThePostList.tsx | 6 +++--- .../partials/posts/ThePostDetail.tsx | 21 +++++++++++-------- src/layouts/default.vue | 6 ++++-- src/tailwind.config.js | 8 ++++++- 10 files changed, 49 insertions(+), 27 deletions(-) diff --git a/src/assets/css/global.css b/src/assets/css/global.css index aa5b2d8..2a18bb3 100644 --- a/src/assets/css/global.css +++ b/src/assets/css/global.css @@ -2,6 +2,16 @@ body { background-color: black; } +@media (prefers-color-scheme: light) { + body { + background-color: #edf2f7; + } + + .logo { + filter: brightness(0.2); + } +} + img[lazy] { transition: all 0.3s ease-out; } diff --git a/src/components/commons/PostCard.tsx b/src/components/commons/PostCard.tsx index db8f674..598b20a 100644 --- a/src/components/commons/PostCard.tsx +++ b/src/components/commons/PostCard.tsx @@ -39,13 +39,13 @@ export const PostCard = tsx.component({
{this.post.image ? (
) : ( -
+
)} -
+
{this.post.tags.map(tag => ( diff --git a/src/components/commons/PostTag.tsx b/src/components/commons/PostTag.tsx index 5bfe7e4..9c95e07 100644 --- a/src/components/commons/PostTag.tsx +++ b/src/components/commons/PostTag.tsx @@ -18,7 +18,7 @@ export const PostTag = tsx.component({ event.stopPropagation() this.$emit("click", this.tag) }} - class="inline-block bg-gray-700 p-3 py-1 text-xs font-semibold mr-2 rounded" + class="inline-block bg-gray-700 p-3 py-1 text-xs font-semibold mr-2 rounded light:bg-gray-300" > #{this.tag} diff --git a/src/components/partials/global/TheError.tsx b/src/components/partials/global/TheError.tsx index d557693..aa42628 100644 --- a/src/components/partials/global/TheError.tsx +++ b/src/components/partials/global/TheError.tsx @@ -13,7 +13,7 @@ export const TheError = tsx.component({ }, render(): VNode { return ( -
+
{this.statusCode}

{this.error.message}

diff --git a/src/components/partials/global/TheFooter.tsx b/src/components/partials/global/TheFooter.tsx index f2b98ec..74c77d0 100644 --- a/src/components/partials/global/TheFooter.tsx +++ b/src/components/partials/global/TheFooter.tsx @@ -7,9 +7,9 @@ export const TheFooter = tsx.component({ name: "TheFooter", render(): VNode { return ( -
+
-
+
{SITE_NAME} - Made with {GA && ( - +  /  Privacy diff --git a/src/components/partials/global/TheHeader.tsx b/src/components/partials/global/TheHeader.tsx index 0c47c74..aeaa529 100644 --- a/src/components/partials/global/TheHeader.tsx +++ b/src/components/partials/global/TheHeader.tsx @@ -10,7 +10,7 @@ export const TheHeader = tsx.component({ name: "TheHeader", render(): VNode { return ( -
+
@@ -22,10 +22,11 @@ export const TheHeader = tsx.component({ loading="auto" width="100" height="30" + class="logo" /> ) : (

{SITE_NAME} @@ -43,7 +44,7 @@ export const TheHeader = tsx.component({ rel="noopener" > @@ -56,7 +57,7 @@ export const TheHeader = tsx.component({ rel="noopener" > diff --git a/src/components/partials/index/ThePostList.tsx b/src/components/partials/index/ThePostList.tsx index 8e09493..8f03ff0 100644 --- a/src/components/partials/index/ThePostList.tsx +++ b/src/components/partials/index/ThePostList.tsx @@ -29,16 +29,16 @@ export const ThePostList = tsx.component({ Prev Next diff --git a/src/components/partials/posts/ThePostDetail.tsx b/src/components/partials/posts/ThePostDetail.tsx index 798980c..d6f22d3 100644 --- a/src/components/partials/posts/ThePostDetail.tsx +++ b/src/components/partials/posts/ThePostDetail.tsx @@ -94,13 +94,13 @@ export const ThePostDetail = tsx.component({  Tweet

-