Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Commit

Permalink
📝 プライバシーポリシーの追加
Browse files Browse the repository at this point in the history
  • Loading branch information
ci7lus committed Feb 20, 2020
1 parent adccd3f commit 32349a1
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 1 deletion.
35 changes: 35 additions & 0 deletions src/components/pages/ThePrivacyPolicy.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import Vue, { VNode } from "vue"
import * as tsx from "vue-tsx-support"
import { Post } from "~/types/struct"
import { PostCard } from "~/components/commons/PostCard"

export const ThePrivacyPolicy = tsx.component({
name: "ThePrivacyPolicy",

render(): VNode {
return (
<div class="container mx-auto max-w-screen-md">
<div class="p-4 leading-relaxed">
<h1 class="border-b border-l-4 border-gray-400 pl-2 py-1 mb-2 font-bold">
プライバシーポリシー
</h1>
<p>
当サイトにおける利用者の個人情報の取り扱いにおいて、以下の通りプライバシーポリシーを定めます。
<br />
プライバシーポリシーは予告なく変更されることがあります。
</p>
<p class="my-2 pl-2 border-l-2 border-gray-400 font-bold">
アクセス解析ツールについて
</p>
<p>
当サイトでは、サイト運営者がよりよいコンテンツを提供するために、Google
Analytics によるトラフィック情報の収集を行なっております。
<br />
その際、利用者の匿名のままの識別を可能にするために Cookie
が利用されることがあります。これは利用者各位においてブラウザーの設定等で無効にすることで、拒否することができます。
</p>
</div>
</div>
)
},
})
8 changes: 7 additions & 1 deletion src/components/partials/global/TheFooter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue, { VNode } from "vue"
import * as tsx from "vue-tsx-support"
import { FeatherHeartIcon } from "~/components/commons/FeatherIcons"
import { SITE_NAME } from "~/config"
import { SITE_NAME, GA } from "~/config"

export const TheFooter = tsx.component({
name: "TheFooter",
Expand All @@ -23,6 +23,12 @@ export const TheFooter = tsx.component({
<span class="pl-1">
<FeatherHeartIcon size={12} />
</span>
{GA && (
<span class="text-gray-400">
&nbsp;/&nbsp;
<nuxt-link to="/privacy-policy">Privacy</nuxt-link>
</span>
)}
</div>
</div>
</div>
Expand Down
21 changes: 21 additions & 0 deletions src/pages/privacy-policy.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>
<ThePrivacyPolicy />
</template>

<script lang="ts">
import Vue from "vue"
import { GA } from "~/config"
import { ThePrivacyPolicy } from "~/components/pages/ThePrivacyPolicy"
export default Vue.extend({
head: {
title: "プライバシーポリシー",
},
components: { ThePrivacyPolicy },
async asyncData({ error }) {
if (!GA) {
return error({ statusCode: 404 })
}
},
})
</script>

1 comment on commit 32349a1

@vercel
Copy link

@vercel vercel bot commented on 32349a1 Feb 20, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Failed to assign a domain to your deployment due to the following error:

The chosen alias "caramelize.ci7lus.now.sh" is already in use.

(Learn more or visit the non-aliased deployment)

Please sign in to comment.