Improve timetable visibility

This commit is contained in:
rotimi_best
2021-04-07 09:33:04 +03:00
parent a80ecc31d0
commit a9baae1e2f
3 changed files with 138 additions and 88 deletions
+52 -1
View File
@@ -1,9 +1,60 @@
<script>
import TimeTable from "../components/TimeTable/index.svelte";
import { stores } from "@sapper/app";
const { page } = stores();
let tab = "";
$: tab = $page.query.tab || "mine";
</script>
<style>
.root {
margin: 0 auto;
border-left: 1px solid #eaecef;
border-right: 1px solid #eaecef;
}
.root .header {
border-bottom: 1px solid #eaecef;
padding: 15px;
}
.active {
position: relative;
display: inline-block;
}
.active::after {
position: absolute;
content: "";
width: 100%;
height: 3px;
background-color: #3182ce;
display: block;
}
</style>
<svelte:head>
<title>Расписание</title>
</svelte:head>
<TimeTable />
<div class="root">
<div class="header flex justify-between mb-2">
<h4 class="title">Расписание</h4>
<div class="flex justify-evenly items-center">
<a
class="mr-5 text-sm {tab === 'mine' && 'active'}"
href="/timetable?tab=mine">
Мои
</a>
<a
class="mr-5 text-sm {tab === 'saved' && 'active'}"
href="/timetable?tab=saved">
Сохранение
</a>
</div>
</div>
<TimeTable />
<TimeTable />
<TimeTable />
</div>