File tree Expand file tree Collapse file tree 3 files changed +464
-1
lines changed Expand file tree Collapse file tree 3 files changed +464
-1
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
2
<div class =" ContentCard-Outer" >
3
- <v-card class =" ContentCard elevation-4" >
3
+ <v-card class =" ContentCard elevation-4" @click = " toLessonDetail " >
4
4
<v-card-actions class =" ContentCard-Actions" >
5
5
<subject-tag
6
6
class =" ContentCard-SubjectTag"
@@ -50,6 +50,7 @@ import Vue from 'vue'
50
50
import SubjectTag from ' @/components/SubjectTag.vue'
51
51
import ContentCardEditorButton from ' @/components/ContentCardEditorButton.vue'
52
52
import { classData } from ' ~/types/store/classData'
53
+ import LessonWithId = classData .LessonWithId
53
54
54
55
export default Vue .extend ({
55
56
components: {
@@ -65,6 +66,12 @@ export default Vue.extend({
65
66
type: Boolean ,
66
67
default: false
67
68
}
69
+ },
70
+ methods: {
71
+ toLessonDetail() {
72
+ const lesson = this .lesson as LessonWithId
73
+ this .$router .push (' /lesson/?lessonId=' + lesson .docId )
74
+ }
68
75
}
69
76
})
70
77
</script >
@@ -73,30 +80,37 @@ export default Vue.extend({
73
80
.ContentCard-Outer {
74
81
display : flex ;
75
82
}
83
+
76
84
.ContentCard-Button-Outer {
77
85
display : flex ;
78
86
flex-direction : column ;
79
87
flex : 0 1 auto ;
80
88
margin-left : 12px ;
89
+
81
90
.ContentCard-Button {
82
91
margin-bottom : 12px ;
83
92
}
84
93
}
94
+
85
95
.ContentCard {
86
96
flex : 1 1 auto ;
87
97
color : $color-gray ;
88
98
border-radius : 14px !important ;
99
+
89
100
.ContentCard-Actions {
90
101
padding : 16px 16px 0 ;
91
102
}
103
+
92
104
.ContentCard-SubjectTag {
93
105
margin-right : 4px ;
94
106
}
107
+
95
108
.ContentCard-Title {
96
109
font-weight : bold ;
97
110
font-size : 14px ;
98
111
line-height : 1.75 ;
99
112
}
113
+
100
114
.ContentCard-Description {
101
115
font-size : 12px ;
102
116
color : $color-gray ;
Original file line number Diff line number Diff line change
1
+ <template >
2
+ <v-app >
3
+ <v-overlay :value =" loading" color =" #0071C2" opacity =" 1" z-index =" 9999" >
4
+ <div class =" loader" >
5
+ Loading
6
+ </div >
7
+ </v-overlay >
8
+ <v-app-bar fixed app class =" bar" elevation =" 0" >
9
+ <HeaderLogo />
10
+ <v-spacer />
11
+ <v-btn outlined rounded color =" #0071C2" @click =" back" >
12
+ <v-icon >mdi-arrow-left</v-icon >
13
+ もどる
14
+ </v-btn >
15
+ </v-app-bar >
16
+ <v-content class =" content" >
17
+ <!-- <v-container class="classes-container px-4 py-8">-->
18
+ <v-container class =" classes-container px-4 py-4" >
19
+ <nuxt />
20
+ </v-container >
21
+ </v-content >
22
+ </v-app >
23
+ </template >
24
+
25
+ <script lang="ts">
26
+ import Vue from ' vue'
27
+ import HeaderLogo from ' @/assets/svgs/header_logo.svg'
28
+ // import { vxm } from '@/store'
29
+
30
+ type LocalData = {
31
+ loading: boolean
32
+ date: Date
33
+ }
34
+
35
+ export default Vue .extend ({
36
+ components: {
37
+ HeaderLogo
38
+ },
39
+ data(): LocalData {
40
+ return {
41
+ loading: true ,
42
+ date: new Date ()
43
+ }
44
+ },
45
+ // watch: {
46
+ // date(value) {
47
+ // vxm.app.setDate(value)
48
+ // }
49
+ // },
50
+ mounted(): void {
51
+ this .loading = false
52
+ },
53
+ methods: {
54
+ back() {
55
+ this .$router .back ()
56
+ }
57
+ }
58
+ })
59
+ </script >
60
+
61
+ <style scoped lang="scss">
62
+ .v-btn {
63
+ font-weight : bold ;
64
+ font-size : 12px ;
65
+ line-height : 16px ;
66
+ background-color : $color-white ;
67
+ }
68
+
69
+ .date-icon {
70
+ margin-right : 15px ;
71
+ }
72
+
73
+ .date {
74
+ position : absolute ;
75
+ top : 50% ;
76
+ left : 50% ;
77
+ transform : translate (-50% , -50% );
78
+ }
79
+
80
+ .bar {
81
+ background-color : $color-back-gray ;
82
+ text-align : center ;
83
+ }
84
+
85
+ .content {
86
+ background-color : $color-base-color-01 ;
87
+ }
88
+
89
+ .header-calender {
90
+ margin : 0 auto ;
91
+ width : 100% ;
92
+ max-width : 640px ;
93
+ height : 40px ;
94
+ }
95
+
96
+ .classes-container {
97
+ height : 100% ;
98
+ }
99
+ </style >
You can’t perform that action at this time.
0 commit comments