2021-04-05 07:12:51 +03:00
|
|
|
<script>
|
2021-05-06 08:22:25 +03:00
|
|
|
import Forum32 from "carbon-icons-svelte/lib/Forum32";
|
2021-04-05 07:12:51 +03:00
|
|
|
import SendAlt32 from "carbon-icons-svelte/lib/SendAlt32";
|
2021-05-07 03:43:37 +03:00
|
|
|
import Catalog32 from "carbon-icons-svelte/lib/Catalog32";
|
2021-04-05 07:12:51 +03:00
|
|
|
import UserAvatar32 from "carbon-icons-svelte/lib/UserAvatar32";
|
2021-05-29 20:47:46 +03:00
|
|
|
// import Calendar32 from "carbon-icons-svelte/lib/Calendar32";
|
2021-04-05 07:12:51 +03:00
|
|
|
export let segment;
|
|
|
|
|
let navClass = "";
|
|
|
|
|
|
|
|
|
|
$: navClass = ["discussion"].includes(segment) ? "hide" : "";
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
nav {
|
2021-05-07 03:43:37 +03:00
|
|
|
height: 95vh;
|
2021-04-05 07:12:51 +03:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
2021-05-08 22:03:44 +03:00
|
|
|
width: 100px;
|
2021-04-05 07:12:51 +03:00
|
|
|
padding-top: 10px;
|
|
|
|
|
position: sticky;
|
|
|
|
|
top: 0;
|
2021-05-07 03:43:37 +03:00
|
|
|
border-right: 1px solid var(--border-color);
|
2021-04-05 07:12:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* clearfix */
|
|
|
|
|
ul::after {
|
|
|
|
|
content: "";
|
|
|
|
|
display: block;
|
|
|
|
|
clear: both;
|
|
|
|
|
}
|
|
|
|
|
|
2021-05-07 03:43:37 +03:00
|
|
|
/* li.new-question {
|
2021-04-05 07:12:51 +03:00
|
|
|
margin-top: 10px;
|
2021-05-07 03:43:37 +03:00
|
|
|
} */
|
2021-04-05 07:12:51 +03:00
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
padding: 1em 0.5em;
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
2021-05-07 03:43:37 +03:00
|
|
|
flex-direction: column;
|
2021-04-05 07:12:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[aria-current] {
|
2021-05-06 08:22:25 +03:00
|
|
|
color: var(--main-primary-color);
|
2021-04-05 07:12:51 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@media only screen and (max-width: 1002px) {
|
|
|
|
|
nav.hide {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
ul {
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
li a span {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
2021-05-08 22:03:44 +03:00
|
|
|
|
|
|
|
|
<nav class={navClass}>
|
|
|
|
|
<ul class="flex items-center flex-col justify-evenly">
|
|
|
|
|
<div class="logo">
|
|
|
|
|
<a href="/" title="Go to univapros Home" id="logo" data-hveid="8"><img
|
|
|
|
|
src="/logo-192.png"
|
|
|
|
|
alt="Univapros logo"
|
|
|
|
|
height="48"
|
|
|
|
|
width="48"
|
|
|
|
|
data-atf="1" /></a>
|
|
|
|
|
</div>
|
|
|
|
|
<li>
|
|
|
|
|
<a
|
|
|
|
|
class="block"
|
|
|
|
|
aria-current={segment === undefined || segment === 'discussion' ? 'page' : undefined}
|
|
|
|
|
href="."><Forum32 class="carbon-icon" /><span>Discussion</span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a
|
|
|
|
|
class="block"
|
|
|
|
|
aria-current={segment === 'courses' ? 'page' : undefined}
|
|
|
|
|
href="courses"><Catalog32 class="carbon-icon" />
|
|
|
|
|
<span>Courses</span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a
|
|
|
|
|
class="block"
|
|
|
|
|
aria-current={segment === 'profile' ? 'page' : undefined}
|
|
|
|
|
href="profile"><UserAvatar32 class="carbon-icon" />
|
|
|
|
|
<span>Профиль</span></a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a
|
|
|
|
|
class="flex items-center"
|
|
|
|
|
href="https://t.me/unidiscuss"
|
|
|
|
|
target="_blank">
|
|
|
|
|
<!-- <img
|
|
|
|
|
alt="File:Telegram logo.svg"
|
|
|
|
|
class="mr-1"
|
|
|
|
|
src="https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Telegram_alternative_logo.svg/50px-Telegram_alternative_logo.svg.png"
|
|
|
|
|
decoding="async"
|
|
|
|
|
width="25"
|
|
|
|
|
height="25"
|
|
|
|
|
srcset="https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Telegram_alternative_logo.svg/50px-Telegram_alternative_logo.svg.png 1.5x, https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Telegram_logo.svg/1024px-Telegram_logo.svg.png 2x"
|
|
|
|
|
data-file-width="25"
|
|
|
|
|
data-file-height="25"
|
|
|
|
|
/> -->
|
|
|
|
|
<!-- <span><SendAlt32 class="carbon-icon" /> Канал</span> -->
|
|
|
|
|
<SendAlt32 class="carbon-icon" />
|
|
|
|
|
<span>Канал</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<!-- <li class="new-question">
|
|
|
|
|
<NewQuestion />
|
|
|
|
|
</li> -->
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|