Skip to content

Commit

Permalink
Merge pull request #26 from traP-jp/rivDesign2
Browse files Browse the repository at this point in the history
とりあえず現時点のデザインの進捗
  • Loading branch information
oER4 authored Dec 15, 2023
2 parents 0bde0a4 + cec87be commit b1353b2
Show file tree
Hide file tree
Showing 3 changed files with 172 additions and 19 deletions.
5 changes: 3 additions & 2 deletions src/components/TaskItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ const props = defineProps<{
border: 5px;
box-shadow: 5px;
background-color: white;
border-radius: 10px;
padding: auto;
padding-left: 20px;
border-radius: 6px;
border: 1px solid #959595;
border: 3px solid #000;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
margin: 3px;
}
</style>
24 changes: 21 additions & 3 deletions src/components/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,36 @@ const props = defineProps<{
<div>
<h1>{{ props.title }}</h1>
<h2>
<div v-for="item in props.taskList" :key="item.id">
<div v-if="item.difficulty === props.filterSignal">
<task-item :cont="item" />
<div class="verticalScroll">
<div v-for="item in props.taskList" :key="item.id">
<div v-if="item.difficulty === props.filterSignal">
<task-item :cont="item" />
</div>
</div>
</div>
</h2>
</div>
</template>

<style lang="scss" scoped>
.horizonScroll {
width: 300px;
height: 150px;
background-color: white;
overflow-y: hidden;
}
.verticalScroll {
width: 500px;
height: 460px;
background-color: white;
overflow-x: hidden;
}
h1 {
background-color: white;
font-size: 30px;
font-style: normal;
font-weight: 700;
line-height: normal;
}
h2 {
width: 400px;
Expand Down
162 changes: 148 additions & 14 deletions src/pages/TaskDashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,78 @@ import apiClient from '../apis/index'
import type { tasks } from '../apis/generated'
const taskLista = ref<tasks>([
{
id: 1,
title: '電磁気学の課題',
condition: 998244353,
difficulty: 2,
dueDate: '2021-10-10',
description: 'やる'
},
{
id: 2,
title: '単位認定の申請',
condition: 5,
difficulty: 3,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 3,
title: '単位認定の申請',
condition: 5,
difficulty: 1,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 1,
title: '電磁気学の課題',
condition: 998244353,
difficulty: 2,
dueDate: '2021-10-10',
description: 'やる'
},
{
id: 2,
title: '単位認定の申請',
condition: 5,
difficulty: 3,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 3,
title: '単位認定の申請',
condition: 5,
difficulty: 1,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 1,
title: '電磁気学の課題',
condition: 998244353,
difficulty: 2,
dueDate: '2021-10-10',
description: 'やる'
},
{
id: 2,
title: '単位認定の申請',
condition: 5,
difficulty: 3,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 3,
title: '単位認定の申請',
condition: 5,
difficulty: 1,
dueDate: '2021-10-10',
description: 'スコアレポートを提出'
},
{
id: 1,
title: '電磁気学の課題',
Expand Down Expand Up @@ -39,27 +111,69 @@ apiClient.suggestion.getSuggest('3').then((res) => (suggest.value = res))

<template>
<div>
<h1>ダッシュボード</h1>
<!-- <br /> -->
<h2>Yaranai</h2>
<!-- <br /> -->
<div>
<svg
xmlns="http://www.w3.org/2000/svg"
width="42"
height="37"
viewBox="0 0 42 37"
fill="none"
>
<g clip-path="url(#clip0_211_254)">
<path
d="M14.553 24.3006C11.5676 23.0589 9.15294 20.9633 7.70617 18.3584C6.25939 15.7536 5.86658 12.7946 6.59236 9.96797C7.31813 7.14137 9.11926 4.61549 11.6996 2.80569C14.2799 0.995888 17.4857 0.00991821 20.79 0.00991821C24.0942 0.00991821 27.3 0.995888 29.8803 2.80569C32.4606 4.61549 34.2618 7.14137 34.9876 9.96797C35.7133 12.7946 35.3205 15.7536 33.8737 18.3584C32.427 20.9633 30.0123 23.0589 27.027 24.3006V29.168H14.553V24.3006ZM14.553 30.991H27.027V33.7255C27.027 35.2386 25.634 36.46 23.9085 36.46H17.6715C16.8444 36.46 16.0512 36.1719 15.4663 35.6591C14.8815 35.1463 14.553 34.4507 14.553 33.7255V30.991ZM18.711 21.6937V25.522H22.869V21.6937C25.3929 21.2419 27.6357 19.9845 29.1625 18.1651C30.6893 16.3458 31.3912 14.0941 31.1323 11.8467C30.8734 9.59932 29.672 7.51627 27.7612 6.00142C25.8503 4.48658 23.366 3.64785 20.79 3.64785C18.2139 3.64785 15.7296 4.48658 13.8187 6.00142C11.9079 7.51627 10.7065 9.59932 10.4476 11.8467C10.1887 14.0941 10.8906 16.3458 12.4174 18.1651C13.9442 19.9845 16.187 21.2419 18.711 21.6937Z"
fill="black"
/>
</g>
<defs>
<clipPath id="clip0_211_254">
<rect width="41.58" height="36.46" fill="white" />
</clipPath>
</defs>
</svg>
<task-list :title="'おすすめのタスク'" :task-list="suggest" :filter-signal="1" />
<button v-on="null">やりたくない</button>
<br />
<v-btn>やりたくない</v-btn>
</div>
<br />
<svg xmlns="http://www.w3.org/2000/svg" width="41" height="41" viewBox="0 0 41 41" fill="none">
<g clip-path="url(#clip0_211_248)">
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M20.5 2.27084C21.2137 2.27084 21.8733 2.65114 22.2309 3.26877L41.0226 35.7271C41.3808 36.3458 41.3815 37.1088 41.0244 37.7281C40.6672 38.3475 40.0067 38.7292 39.2917 38.7292H1.70837C0.993415 38.7292 0.332834 38.3475 -0.0242749 37.7281C-0.381384 37.1088 -0.380699 36.3458 -0.0224786 35.7271L18.7692 3.26877C19.1268 2.65114 19.7864 2.27084 20.5 2.27084ZM5.17727 34.7292H35.8228L20.5 8.26257L5.17727 34.7292Z"
fill="black"
/>
<path
fill-rule="evenodd"
clip-rule="evenodd"
d="M20.4984 14.2292C21.603 14.2283 22.4991 15.123 22.5 16.2276L22.5068 24.7693C22.5077 25.8738 21.613 26.77 20.5084 26.7709C19.4039 26.7717 18.5077 25.877 18.5068 24.7725L18.5 16.2308C18.4991 15.1262 19.3938 14.2301 20.4984 14.2292ZM20.5 27.8959C21.6046 27.8959 22.5 28.7913 22.5 29.8959V30.75C22.5 31.8546 21.6046 32.75 20.5 32.75C19.3954 32.75 18.5 31.8546 18.5 30.75V29.8959C18.5 28.7913 19.3954 27.8959 20.5 27.8959Z"
fill="black"
/>
</g>
<defs>
<clipPath id="clip0_211_248">
<rect width="41" height="41" fill="white" />
</clipPath>
</defs>
</svg>
<task-list :title="'未設定項目のあるタスク'" :task-list="taskLista" :filter-signal="1" />
<!-- <br /> -->
<div>
<button v-on="null">タスクを追加</button>
<!-- <br /> -->
<div class="pageContainer">
<task-list :title="'こなしやすいタスク'" :task-list="taskLista" :filter-signal="1" />
<task-list
:title="'ほどほどにこなしやすいタスク'"
:task-list="taskLista"
:filter-signal="2"
/>
<task-list :title="'こなしにくいタスク'" :task-list="taskLista" :filter-signal="3" />
<br />

<v-btn>タスクを追加</v-btn>
<!-- <br /> -->
<div class="pageContainer">
<div>
<task-list :title="'ハードルが低い'" :task-list="taskLista" :filter-signal="1" />
</div>
<div>
<task-list :title="'ハードルが普通'" :task-list="taskLista" :filter-signal="2" />
</div>
<div>
<task-list :title="'ハードルが高い'" :task-list="taskLista" :filter-signal="3" />
</div>
</div>
</div>
Expand All @@ -69,4 +183,24 @@ apiClient.suggestion.getSuggest('3').then((res) => (suggest.value = res))
.pageContainer {
display: flex;
}
h2 {
color: #000;
font-size: 90px;
font-style: normal;
font-weight: 700;
line-height: normal;
}
button {
width: 177px;
height: 24px;
line-height: 12px;
background: white;
color: black;
text-align: center;
border-radius: 100vh;
font-size: 18px;
font-family: inherit;
}
</style>

0 comments on commit b1353b2

Please sign in to comment.