Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

リスト表示を追加 #3

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
106 changes: 106 additions & 0 deletions components/SyllabusCardModal/SyllabusCardModal.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
<template>
<v-card width="600px" height="300px" outlined variant="tonal">
<v-container fill-height>
<v-row>
<v-col class="title_text">{{syllabus.subject_name}}</v-col>
</v-row>
<v-row>
<v-col class="little_text">
{{teachers}}
</v-col>
</v-row>
<v-row>
<v-col class="little_text">
開講場所: {{syllabus.place}}
</v-col>
</v-row>
<v-row class="icons">
<v-col xl="2" lg="4">
<v-img max-height="30px" max-width="30px" :src="fieldImg" />
</v-col>
<v-col xl="2" lg="4n">
<v-img max-width="30px" max-height="30px" :src="methodImg" />
</v-col>
<v-col xl="2" lg="4" v-if="syllabus.term !== '通期'">
<v-img max-width="30px" max-height="30px" :src="termImg" />
</v-col>
<v-col xl="2" lg="4" v-if="syllabus.is_giga">
<v-img max-width="30px" max-height="30px" :src="gigaImg" />
</v-col>
</v-row>
<v-row>
<v-col class="link_to_syllabus" align="center">
<v-btn color="primary" @click="toSyllabus">シラバスを見る</v-btn>
</v-col>
</v-row>
</v-container>
</v-card>
</template>

<script lang="ts">
import {Component, Prop, Vue} from "nuxt-property-decorator";
import {Subject} from "@/pages/Types"
import {fieldIcon, giga_icon, methodIcon, termIcon} from "~/pages/Tools";

@Component
export default class SyllabusCardModal extends Vue{
@Prop({type: Object, required: true})
syllabus!: Subject;

toSyllabus(){
window.open(this.syllabus.url);
}

get fieldImg(){
return fieldIcon(this.syllabus.field);
}

get methodImg(){
return methodIcon(this.syllabus.method);
}

get termImg(){
return termIcon(this.syllabus.term);
}

get gigaImg(){
return giga_icon;
}

get teachers(){
let s = ""
const teachers = this.syllabus.staff;
for(let i = 0; i < 3 && i < teachers.length; i++){

s += teachers[i] + ((i === 2 || i === teachers.length - 1) ? "" : ", ");
}
if(teachers.length >= 3)
s += "等"
return s;
}
}
</script>

<style scoped>

.title_text {
font-size: 1.3em;
font-weight: bold;
}

.little_text{
font-size: 0.9em;
padding-top: 5px;
padding-bottom: 5px;
}

@media screen and (max-width: 600px) {
.title_text {
font-size: 1.1em;
}
.little_text{
font-size: 0.8em;
}
}
</style>

6 changes: 3 additions & 3 deletions docs/200.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html>
<html lang="en" data-n-head="%7B%22lang%22:%7B%221%22:%22en%22%7D%7D">
<head>
<title>syllabussearch-die-proto - syllabussearch-die-proto</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><base href="/Syllabus-proto/"><link rel="preload" href="/Syllabus-proto/_nuxt/4af8e2d.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/5484d1c.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/2443b63.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/215956b.js" as="script">
<meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><title>syllabussearch-die-proto - syllabussearch-die-proto</title><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><base href="/Syllabus-proto/"><link rel="preload" href="/Syllabus-proto/_nuxt/8c41c42.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/f037015.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/ab26e80.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/9985537.js" as="script">
</head>
<body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{_app:{basePath:"/Syllabus-proto/",assetsPath:"/Syllabus-proto/_nuxt/",cdnURL:null}}}</script>
<script src="/Syllabus-proto/_nuxt/4af8e2d.js"></script><script src="/Syllabus-proto/_nuxt/5484d1c.js"></script><script src="/Syllabus-proto/_nuxt/2443b63.js"></script><script src="/Syllabus-proto/_nuxt/215956b.js"></script></body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style> <script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script> <div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div> </div><script>window.__NUXT__={config:{_app:{basePath:"/Syllabus-proto/",assetsPath:"/Syllabus-proto/_nuxt/",cdnURL:null}}}</script>
<script src="/Syllabus-proto/_nuxt/8c41c42.js"></script><script src="/Syllabus-proto/_nuxt/f037015.js"></script><script src="/Syllabus-proto/_nuxt/ab26e80.js"></script><script src="/Syllabus-proto/_nuxt/9985537.js"></script></body>
</html>
6 changes: 3 additions & 3 deletions docs/Tools/index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<!doctype html>
<html lang="en" data-n-head="%7B%22lang%22:%7B%221%22:%22en%22%7D%7D">
<head>
<title>syllabussearch-die-proto - syllabussearch-die-proto</title><meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><base href="/Syllabus-proto/"><link rel="preload" href="/Syllabus-proto/_nuxt/4af8e2d.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/5484d1c.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/2443b63.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/215956b.js" as="script">
<meta data-n-head="1" charset="utf-8"><meta data-n-head="1" name="viewport" content="width=device-width,initial-scale=1"><meta data-n-head="1" data-hid="description" name="description" content=""><meta data-n-head="1" name="format-detection" content="telephone=no"><title>syllabussearch-die-proto - syllabussearch-die-proto</title><link data-n-head="1" rel="icon" type="image/x-icon" href="/favicon.ico"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&display=swap"><link data-n-head="1" rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css"><base href="/Syllabus-proto/"><link rel="preload" href="/Syllabus-proto/_nuxt/8c41c42.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/f037015.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/ab26e80.js" as="script"><link rel="preload" href="/Syllabus-proto/_nuxt/9985537.js" as="script">
</head>
<body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style><script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script><div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div></div><script>window.__NUXT__={config:{_app:{basePath:"/Syllabus-proto/",assetsPath:"/Syllabus-proto/_nuxt/",cdnURL:null}}}</script>
<script src="/Syllabus-proto/_nuxt/4af8e2d.js"></script><script src="/Syllabus-proto/_nuxt/5484d1c.js"></script><script src="/Syllabus-proto/_nuxt/2443b63.js"></script><script src="/Syllabus-proto/_nuxt/215956b.js"></script></body>
<div id="__nuxt"><style>#nuxt-loading{background:#fff;visibility:hidden;opacity:0;position:absolute;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;align-items:center;flex-direction:column;animation:nuxtLoadingIn 10s ease;-webkit-animation:nuxtLoadingIn 10s ease;animation-fill-mode:forwards;overflow:hidden}@keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}@-webkit-keyframes nuxtLoadingIn{0%{visibility:hidden;opacity:0}20%{visibility:visible;opacity:0}100%{visibility:visible;opacity:1}}#nuxt-loading>div,#nuxt-loading>div:after{border-radius:50%;width:5rem;height:5rem}#nuxt-loading>div{font-size:10px;position:relative;text-indent:-9999em;border:.5rem solid #f5f5f5;border-left:.5rem solid #000;-webkit-transform:translateZ(0);-ms-transform:translateZ(0);transform:translateZ(0);-webkit-animation:nuxtLoading 1.1s infinite linear;animation:nuxtLoading 1.1s infinite linear}#nuxt-loading.error>div{border-left:.5rem solid #ff4500;animation-duration:5s}@-webkit-keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes nuxtLoading{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}</style> <script>window.addEventListener("error",function(){var e=document.getElementById("nuxt-loading");e&&(e.className+=" error")})</script> <div id="nuxt-loading" aria-live="polite" role="status"><div>Loading...</div></div> </div><script>window.__NUXT__={config:{_app:{basePath:"/Syllabus-proto/",assetsPath:"/Syllabus-proto/_nuxt/",cdnURL:null}}}</script>
<script src="/Syllabus-proto/_nuxt/8c41c42.js"></script><script src="/Syllabus-proto/_nuxt/f037015.js"></script><script src="/Syllabus-proto/_nuxt/ab26e80.js"></script><script src="/Syllabus-proto/_nuxt/9985537.js"></script></body>
</html>
Loading