Files
classroomio/src/routes/timetable.svelte
T

61 lines
1.2 KiB
Svelte
Raw Normal View History

2021-04-07 07:26:07 +03:00
<script>
import TimeTable from "../components/TimeTable/index.svelte";
2021-04-07 09:33:04 +03:00
import { stores } from "@sapper/app";
const { page } = stores();
let tab = "";
$: tab = $page.query.tab || "mine";
2021-04-07 07:26:07 +03:00
</script>
2021-04-07 09:33:04 +03:00
<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>
2021-04-07 07:26:07 +03:00
<svelte:head>
<title>Расписание</title>
</svelte:head>
2021-04-07 09:33:04 +03:00
<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>