This repository has been archived by the owner on Feb 11, 2023. It is now read-only.
forked from Tokyo-Metro-Gov/covid19
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #160 from covid19-oita/development
Release v2.4.5
- Loading branch information
Showing
2 changed files
with
141 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
<template> | ||
<div class="Contacts"> | ||
<div class="Contacts-Card"> | ||
<iframe | ||
src="https://docs.google.com/forms/d/e/1FAIpQLSc9PH4S3BnW4yjpgKf-svVo7cQ7vdSmHoJkMw2rLZWWxq6TCg/viewform?embedded=true" | ||
width="100%" | ||
height="850" | ||
frameborder="0" | ||
marginheight="0" | ||
marginwidth="0" | ||
>読み込んでいます…</iframe | ||
> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import Vue from 'vue' | ||
import { MetaInfo } from 'vue-meta' | ||
export default Vue.extend({ | ||
components: {}, | ||
data() { | ||
return { | ||
pc: true | ||
} | ||
}, | ||
computed: { | ||
tableAttrs(): any { | ||
return this.pc ? {} : { role: 'presentation' } | ||
}, | ||
headingAttrs(): any { | ||
return this.pc ? {} : { role: 'heading', 'aria-level': '3' } | ||
} | ||
}, | ||
mounted() { | ||
if (process.browser) { | ||
window.addEventListener('resize', this.handleResize) | ||
this.handleResize() | ||
} | ||
}, | ||
destroyed() { | ||
if (process.browser) { | ||
window.removeEventListener('resize', this.handleResize) | ||
} | ||
}, | ||
methods: { | ||
handleResize() { | ||
this.pc = window.innerWidth > 768 | ||
} | ||
}, | ||
head(): MetaInfo { | ||
return { | ||
title: this.$t('お問い合わせ先一覧') as string | ||
} | ||
} | ||
}) | ||
</script> | ||
|
||
<style lang="scss"> | ||
.Contacts { | ||
&-Card { | ||
@include card-container(); | ||
&-Table { | ||
width: 100%; | ||
border-collapse: collapse; | ||
th { | ||
font-size: 14px !important; | ||
} | ||
td { | ||
padding: 0 16px; | ||
font-size: 14px; | ||
} | ||
@include largerThan($medium) { | ||
thead tr { | ||
height: 48px; | ||
} | ||
tbody tr { | ||
height: 96px; | ||
} | ||
th, | ||
tr:not(:last-child) { | ||
border-top: none; | ||
border-left: none; | ||
border-right: none; | ||
border-bottom: thin solid rgba(0, 0, 0, 0.12); | ||
} | ||
tr:last-child { | ||
border: none; | ||
} | ||
} | ||
@include lessThan($medium) { | ||
thead { | ||
display: none; | ||
} | ||
tbody { | ||
tr { | ||
height: auto; | ||
.content { | ||
font-weight: bold; | ||
border-bottom: none !important; | ||
padding-top: 12px; | ||
padding-bottom: 8px; | ||
} | ||
.bureau { | ||
border-bottom: none !important; | ||
} | ||
.tel { | ||
padding-bottom: 12px; | ||
} | ||
} | ||
tr:not(:last-child) { | ||
border-bottom: thin solid rgba(0, 0, 0, 0.12); | ||
} | ||
} | ||
td { | ||
display: block; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
</style> |