Skip to content

Commit 5c9a4a6

Browse files
committed
閲覧者(学生側)ページ作成
1 parent d3d404e commit 5c9a4a6

File tree

4 files changed

+30
-16
lines changed

4 files changed

+30
-16
lines changed

src/components/ContentCard.vue

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<v-card class="ContentCard">
3-
<v-card-actions>
3+
<v-card-actions class="ContentCard-Actions">
44
<subject-tag
55
v-for="(item, idx) in subjects"
66
:key="idx"
@@ -10,11 +10,20 @@
1010
:icon-color="item.iconColor || 'white'"
1111
:background-color="item.backgroundColor || '#A5D8FF'"
1212
/>
13+
<subject-tag
14+
class="ContentCard-SubjectTag"
15+
:name="'動画'"
16+
:icon="'mdi-video'"
17+
:icon-color="'#424242'"
18+
:background-color="'#E0E0E0'"
19+
/>
1320
</v-card-actions>
1421
<v-card-title>
1522
<h2 class="ContentCard-Title">{{ title }}</h2>
1623
</v-card-title>
17-
<v-card-text class="ContentCard-Description">{{ description }}</v-card-text>
24+
<v-card-text>
25+
<p class="ContentCard-Description">{{ description }}</p>
26+
</v-card-text>
1827
</v-card>
1928
</template>
2029

@@ -45,16 +54,21 @@ export default Vue.extend({
4554
.ContentCard {
4655
color: $color-gray;
4756
border-radius: 14px !important;
57+
.ContentCard-Actions {
58+
padding: 16px 16px 0;
59+
}
4860
.ContentCard-SubjectTag {
4961
margin-right: 4px;
5062
}
5163
.ContentCard-Title {
5264
font-weight: bold;
5365
font-size: 14px;
66+
line-height: 1.75;
5467
}
5568
.ContentCard-Description {
56-
white-space: pre-wrap;
5769
font-size: 12px;
70+
color: $color-gray;
71+
margin: 0;
5872
}
5973
}
6074
</style>

src/components/PeriodCard.vue

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,34 +52,36 @@ export default Vue.extend({
5252
<style scoped lang="scss">
5353
.PeriodCard {
5454
display: flex;
55+
border-bottom: 1px solid $color-base-color-02;
5556
56-
&-NumberBlock {
57+
.PeriodCard-NumberBlock {
5758
display: flex;
5859
flex-direction: column;
5960
margin: 12px;
6061
}
6162
62-
&-Number {
63+
.PeriodCard-Number {
6364
display: flex;
6465
flex-direction: column;
6566
align-items: center;
6667
color: $color-white;
6768
background-color: $color-base-color-06;
68-
max-width: 40px;
69+
width: 40px;
6970
border-radius: 3em;
7071
padding: 12px 4px;
7172
margin-bottom: 8px;
7273
73-
&-Num {
74+
.PeriodCard-Number-Num {
7475
font-size: 22px;
7576
}
7677
77-
&-Text {
78+
.PeriodCard-Number-Text {
7879
font-size: 8px;
80+
font-weight: bold;
7981
}
8082
}
8183
82-
&-Time {
84+
.PeriodCard-Time {
8385
display: flex;
8486
flex-direction: column;
8587
justify-content: center;

src/layouts/classes.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
<v-app-bar fixed app class="bar" elevation="0">
99
<HeaderLogo />
1010
<v-spacer />
11-
<v-btn outlined rounded color="#0071C2">
12-
ログアウト
13-
<v-icon right>mdi-exit-to-app</v-icon>
11+
<v-btn fab small outlined rounded color="#0071C2">
12+
<v-icon>mdi-clipboard-account</v-icon>
1413
</v-btn>
1514
<template v-slot:extension>
1615
<div class="header-calender">

src/pages/classes/index.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<template>
22
<div class="MainPage">
3-
<period-card
4-
v-if="classData.getLessonsByDisplayDate.length"
5-
:class-data="classData"
6-
/>
3+
<div v-if="classData.getLessonsByDisplayDate.length">
4+
<period-card :class-data="classData" />
5+
</div>
76
<v-row v-else-if="today" class="DataBlock">
87
<h1 style="color: white; width: 100vw; text-align: center;">
98
今日の時間割はまだ届いていないみたいです

0 commit comments

Comments
 (0)