Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Refactor categories page, start modal bus event, clean code

Smaug673907f16ad748bf
diff --git a/frontend/App.vue b/frontend/App.vue
index fa673ddf..702a3fae 100644
--- a/frontend/App.vue
+++ b/frontend/App.vue
@@ -1,5 +1,6 @@
<template>
<div style="height: 100vh">
+ <ModalManager />
<NuxtPage />
<Notification />
</div>
diff --git a/frontend/components/ModalManager.vue b/frontend/components/ModalManager.vue
new file mode 100644
index 00000000..e5cd91c8
--- /dev/null
+++ b/frontend/components/ModalManager.vue
@@ -0,0 +1,51 @@
+<!-- Modal BUS -->
+<!-- This component is used to manage modals in the application. -->
+<template>
+ <Transition name="modal">
+ <div v-if="modals.length" class="modal-mask">
+ <div v-for="(modal, index) in modals" :key="modal.name" class="modal-pos" :style="{ zIndex: 120 + index }">
+ <!-- Overlay sur les modals du dessous -->
+ <div v-if="index !== modals.length - 1" class="modal-overlay"></div>
+
+ <div class="modal-container">
+ <component :is="modal.component" v-bind="modal.props" />
+ </div>
+ </div>
+ </div>
+ </Transition>
+</template>
+<script setup lang="ts">
+const modals = useModal().modals;
+</script>
+
+<style scoped lang="scss">
+.modal-container {
+ width: 75%;
+ max-width: 800px;
+ margin: auto;
+ padding: 20px;
+ background-color: var(--bg-contrast);
+ border-radius: 10px;
+ box-shadow: 0 2px 8px rgba(0, 0, 0, 0.33);
+ transition: all 0.3s ease;
+ font-size: initial;
+}
+.modal-overlay {
+ position: absolute;
+ inset: 0;
+ background-color: rgba(0, 0, 0, 0.2); // ou plus sombre selon l’effet souhaité
+ border-radius: 10px;
+ z-index: 1; // juste en-dessous du contenu du modal
+ pointer-events: none; // le masque ne bloque pas les interactions
+}
+.modal-enter-from,
+.modal-leave-to {
+ opacity: 0;
+}
+
+.modal-enter-from .modal-container,
+.modal-leave-to .modal-container {
+ -webkit-transform: scale(1.1);
+ transform: scale(1.1);
+}
+</style>
diff --git a/frontend/components/Sidebar/CollapseItem.vue b/frontend/components/Sidebar/CollapseItem.vue
index cb021f06..11c63e9a 100644
--- a/frontend/components/Sidebar/CollapseItem.vue
+++ b/frontend/components/Sidebar/CollapseItem.vue
@@ -19,7 +19,7 @@
<SidebarItem v-else :item="item" />
</template>
<script setup lang="ts">
-import type { Item } from './tree_builder';
+import type { Item } from '../../composables/tree_builder';
const props = defineProps<{ item: Item; root?: boolean }>();
diff --git a/frontend/components/Sidebar/Sidebar.vue b/frontend/components/Sidebar/Sidebar.vue
index 03ee119f..5297bf84 100644
--- a/frontend/components/Sidebar/Sidebar.vue
+++ b/frontend/components/Sidebar/Sidebar.vue
@@ -38,7 +38,6 @@ import SidebarWorkspaces from './SidebarWorkspaces.vue';
import Resizable from './Resizable.vue';
import IconClose from './IconClose.vue';
import Search from './Search.vue';
-import { ItemsManager, type Item } from './tree_builder';
import { navigationItems } from './helpers';
import type { Category } from '~/stores';
diff --git a/frontend/components/Sidebar/SidebarItem.vue b/frontend/components/Sidebar/SidebarItem.vue
index a85fe40b..5602d236 100644
--- a/frontend/components/Sidebar/SidebarItem.vue
+++ b/frontend/components/Sidebar/SidebarItem.vue
@@ -10,7 +10,6 @@
<script setup lang="ts">
import { navigationItems } from './helpers';
-import type { Item } from './tree_builder';
const documentStore = useDocumentsStore();
const categoriesStore = useCategoriesStore();
diff --git a/frontend/components/WorkspaceTree.vue b/frontend/components/WorkspaceTree.vue
new file mode 100644
index 00000000..4a29fbc6
--- /dev/null
+++ b/frontend/components/WorkspaceTree.vue
@@ -0,0 +1,72 @@
+<template>
+ <div class="tree-node">
+ <div class="tree-content">
+ <div class="tree-label">
+ <Icon name="folder" style="display: inline" />
+ <span>{{ node.title }}</span>
+ </div>
+ <div class="tree-actions">
+ <span style="padding: 2px" @click="$emit('edit', node)" title="Editer"><Icon name="edit" style="display: inline" /></span>
+ <span style="padding: 2px" @click="$emit('delete', node)" title="Supprimer"><Icon name="delete" style="display: inline" /></span>
+ </div>
+ </div>
+
+ <div class="tree-children" v-if="node.childrens && node.childrens.length">
+ <WorkspaceTree v-for="child in node.childrens" :key="child.id" :node="child" @edit="$emit('edit', $event)" @delete="$emit('delete', $event)" />
+ </div>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import type { Category } from '~/stores';
+
+defineProps<{ node: Item<Category> }>();
+
+defineEmits(['edit', 'delete']);
+</script>
+
+<style scoped lang="scss">
+.tree-node {
+ position: relative;
+ margin-left: 20px;
+ padding-left: 12px;
+ border-left: 1px solid var(--border-color);
+}
+
+.tree-content {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ position: relative;
+}
+
+.tree-content::before {
+ content: '';
+ position: absolute;
+ left: -12px;
+ top: 50%;
+ width: 12px;
+ height: 1px;
+ background-color: var(--border-color);
+}
+
+.tree-label {
+ padding: 4px 0;
+ font-size: 14px;
+ display: flex;
+ align-items: center;
+ span {
+ margin-left: 4px;
+ }
+}
+
+.tree-actions {
+ display: flex;
+}
+
+.tree-actions button {
+ border: none;
+ background: none;
+ cursor: pointer;
+}
+</style>
diff --git a/frontend/composables/icons.ts b/frontend/composables/icons.ts
index 19899908..f0ace1d6 100644
--- a/frontend/composables/icons.ts
+++ b/frontend/composables/icons.ts
@@ -11,10 +11,11 @@ const icons = {
delete: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z" /></svg>`,
draft: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--turquoise)" d="M240-80q-33 0-56.5-23.5T160-160v-640q0-33 23.5-56.5T240-880h320l240 240v480q0 33-23.5 56.5T720-80H240Zm280-520v-200H240v640h480v-440H520ZM240-800v200-200 640-640Z"/></svg>`,
edit: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="var(--font-color)"><path d="M200-200h57l391-391-57-57-391 391v57Zm-80 80v-170l528-527q12-11 26.5-17t30.5-6q16 0 31 6t26 18l55 56q12 11 17.5 26t5.5 30q0 16-5.5 30.5T817-647L290-120H120Zm640-584-56-56 56 56Zm-141 85-28-29 57 57-29-28Z"/></svg>`,
- filessssss: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--red);" d="M200-200h360v-200h200v-360H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v400L600-120H200Zm80-280v-80h200v80H280Zm0-160v-80h400v80H280Zm-80 360v-560 560Z"/></svg>`,
- file: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="fill:none" stroke="var(--red)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path style="fill:none" d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path style="fill:none" d="M14 2v4a2 2 0 0 0 2 2h4"/><path style="fill:none" d="M10 9H8"/><path style="fill:none" d="M16 13H8"/><path style="fill:none" d="M16 17H8"/></svg>`,
+ file: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--red);" d="M200-200h360v-200h200v-360H200v560Zm0 80q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h560q33 0 56.5 23.5T840-760v400L600-120H200Zm80-280v-80h200v80H280Zm0-160v-80h400v80H280Zm-80 360v-560 560Z"/></svg>`,
+ file_OLD_______: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="fill:none" stroke="var(--red)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path style="fill:none" d="M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z"/><path style="fill:none" d="M14 2v4a2 2 0 0 0 2 2h4"/><path style="fill:none" d="M10 9H8"/><path style="fill:none" d="M16 13H8"/><path style="fill:none" d="M16 17H8"/></svg>`,
file_parent: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--green);" d="M320-320h200v-200H320v200Zm0-280h480v-200H320v200Zm280 280h200v-200H600v200Zm-280 80q-33 0-56.5-23.5T240-320v-480q0-33 23.5-56.5T320-880h480q33 0 56.5 23.5T880-800v480q0 33-23.5 56.5T800-240H320ZM160-80q-33 0-56.5-23.5T80-160v-560h80v560h560v80H160Z"/></svg>`,
- folder: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path style="fill:var(--yellow)" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"/></svg>`,
+ folder_OLD_____: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640v400q0 33-23.5 56.5T800-160H160Zm0-80h640v-400H447l-80-80H160v480Zm0 0v-480 480Z"/></svg>`,
+ folder: `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" style="fill:var(--yellow)"><path style="fill:var(--yellow)" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h240l80 80h320q33 0 56.5 23.5T880-640H447l-80-80H160v480l96-320h684L837-217q-8 26-29.5 41.5T760-160H160Zm84-80h516l72-240H316l-72 240Zm0 0 72-240-72 240Zm-84-400v-80 80Z"/></svg>`,
logout: `<svg xmlns="http://www.w3.org/2000/svg" style="fill:var(--font-color);" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h280v80H200Zm440-160-55-58 102-102H360v-80h327L585-622l55-58 200 200-200 200Z"/></svg>`,
plus: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z"/></svg>`,
profil: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M234-276q51-39 114-61.5T480-360q69 0 132 22.5T726-276q35-41 54.5-93T800-480q0-133-93.5-226.5T480-800q-133 0-226.5 93.5T160-480q0 59 19.5 111t54.5 93Zm246-164q-59 0-99.5-40.5T340-580q0-59 40.5-99.5T480-720q59 0 99.5 40.5T620-580q0 59-40.5 99.5T480-440Zm0 360q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q53 0 100-15.5t86-44.5q-39-29-86-44.5T480-280q-53 0-100 15.5T294-220q39 29 86 44.5T480-160Zm0-360q26 0 43-17t17-43q0-26-17-43t-43-17q-26 0-43 17t-17 43q0 26 17 43t43 17Zm0-60Zm0 360Z"/></svg>`,
diff --git a/frontend/composables/modal_bus.ts b/frontend/composables/modal_bus.ts
new file mode 100644
index 00000000..71edd477
--- /dev/null
+++ b/frontend/composables/modal_bus.ts
@@ -0,0 +1,9 @@
+// Modal bus for managing modal state
+
+const modals = ref<{ component: any; name: string; props: any }[]>([]);
+
+export function useModal() {
+ return {
+ modals,
+ };
+}
diff --git a/frontend/components/Sidebar/tree_builder.ts b/frontend/composables/tree_builder.ts
similarity index 74%
rename from frontend/components/Sidebar/tree_builder.ts
rename to frontend/composables/tree_builder.ts
index 5b1c441a..ae46a7e9 100644
--- a/frontend/components/Sidebar/tree_builder.ts
+++ b/frontend/composables/tree_builder.ts
@@ -1,13 +1,13 @@
import type { Document, Category } from '~/stores';
-import type { DefaultItem } from './helpers';
+import type { DefaultItem } from '../components/Sidebar/helpers';
-export interface Item {
+export interface Item<T = Document | Category | DefaultItem> {
id: string;
title: string;
route: string;
parent_id: string;
- data: Document | Category | DefaultItem;
- childrens?: Item[];
+ data: T;
+ childrens?: Item<T>[];
show: Ref<boolean>;
}
export class ItemsManager {
@@ -25,13 +25,13 @@ export class ItemsManager {
// Génère l'arbre dynamiquement, sans indexation préalable
public generateTree(): Item[] {
return this.items
- .filter(item => item.parent_id === '' || !this.itemMap.has(item.parent_id)) // Racines
+ .filter(item => item.parent_id === '' || !this.itemMap.has(item.parent_id) || (item.data.type === 'category' && item.data.role === 2)) // Racines
.map(rootItem => this.buildTree(rootItem));
}
// Construit un sous-arbre dynamiquement
private buildTree(item: Item): Item {
- const children = this.items.filter(child => child.parent_id === item.id);
+ const children = this.items.filter(child => child.parent_id === item.id || (child.data.type === 'category' && child.data.workspace_id === item.id));
return {
...item,
childrens: children.map(child => this.buildTree(child)),
diff --git a/frontend/composables/utils.ts b/frontend/composables/utils.ts
index 1bf9f8ef..472f422d 100644
--- a/frontend/composables/utils.ts
+++ b/frontend/composables/utils.ts
@@ -67,3 +67,17 @@ export function parseUserAgent(uaString?: string) {
return { os, browser };
}
+
+export interface ANode {
+ id: string;
+ name: string;
+ title: string;
+ icon: string;
+ openedIcon: string;
+ closedIcon: string;
+ isOpen: boolean;
+ isParent: boolean;
+ showLoading: boolean;
+ buttons: Array<{ icon: string; title: string; click: (node: ANode) => void }>;
+ children: ANode[];
+}
diff --git a/frontend/pages/dashboard/categories/_modals/CreateCategoryModal.vue b/frontend/pages/dashboard/categories/_modals/CreateCategoryModal.vue
new file mode 100644
index 00000000..f17159a9
--- /dev/null
+++ b/frontend/pages/dashboard/categories/_modals/CreateCategoryModal.vue
@@ -0,0 +1,75 @@
+<!-- Category creation modal -->
+<!-- Should be like folder creation on linux or mac -->
+<template>
+ <div class="modal fade" id="createCategoryModal" tabindex="-1" role="dialog" aria-labelledby="createCategoryModalLabel" aria-hidden="true">
+ <div class="modal-dialog modal-dialog-centered" role="document">
+ <div class="modal-content">
+ <div class="modal-header">
+ <h5 class="modal-title" id="createCategoryModalLabel">Create Category</h5>
+ <button type="button" class="close" aria-label="Close">
+ <span aria-hidden="true">&times;</span>
+ </button>
+ </div>
+ <div class="modal-body">
+ <div>
+ <div class="form-group">
+ <label for="categoryName">Category Name</label>
+ <input type="text" class="form-control" id="categoryName" v-model="category.name" required />
+ </div>
+ <AppButton type="primary" @click="createCategory">Create</AppButton>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script setup lang="ts">
+import type { Category } from '~/stores';
+import test_wp2 from './test_wp2.vue';
+
+const categoriesStore = useCategoriesStore();
+
+const category = ref<Category>({
+ name: '',
+ type: 'category',
+ id: '',
+ role: 0,
+});
+const createCategory = () => {
+ useModal().modals.value.push({
+ component: shallowRef(test_wp2),
+ name: 'CreateCategoryModal',
+ props: undefined,
+ });
+ // categoriesStore.post(category.value)
+};
+</script>
+
+<style scoped lang="scss">
+.modal-header {
+ background-color: #f8f9fa;
+ border-bottom: 1px solid #dee2e6;
+}
+
+.modal-title {
+ font-size: 1.25rem;
+ font-weight: 500;
+}
+
+.modal-body {
+ padding: 1.5rem;
+}
+
+.form-group {
+ margin-bottom: 1rem;
+}
+
+.form-control {
+ width: 100%;
+}
+
+.close {
+ cursor: pointer;
+}
+</style>
diff --git a/frontend/pages/dashboard/categories/_modals/test_wp2.vue b/frontend/pages/dashboard/categories/_modals/test_wp2.vue
new file mode 100644
index 00000000..8f0617cc
--- /dev/null
+++ b/frontend/pages/dashboard/categories/_modals/test_wp2.vue
@@ -0,0 +1 @@
+<template>Test2</template>
diff --git a/frontend/pages/dashboard/categories/index.vue b/frontend/pages/dashboard/categories/index.vue
index 97c9330a..f340a5d2 100644
--- a/frontend/pages/dashboard/categories/index.vue
+++ b/frontend/pages/dashboard/categories/index.vue
@@ -1,87 +1,96 @@
<template>
- <div class="categories-container">
- <NuxtLink to="/dashboard/categories/new" class="add-category-btn">+ Add new category</NuxtLink>
+ <div style="padding: 24px; gap: 16px">
+ <header>
+ <h1 style="font-size: 20px; font-weight: bold">Workspaces & Categories</h1>
- <!-- Main Categories -->
- <div v-for="mainCategory in categoriesStore.getParents" :key="mainCategory.id" class="category-group">
- <div class="category-card main-category">
- {{ mainCategory.name }}
- <div class="action-menu">
- <NuxtLink :to="`/dashboard/categories/${mainCategory.id}/edit`">✎</NuxtLink>
- </div>
- </div>
-
- <!-- Sub Categories -->
- <div class="sub-categories">
- <div v-for="subCategory in categoriesStore.getChilds(mainCategory.id)" :key="subCategory.id" class="category-card sub-category">
- {{ subCategory.name }}
- <div class="action-menu">
- <NuxtLink :to="`/dashboard/categories/${subCategory.id}/edit`">✎</NuxtLink>
- </div>
- </div>
+ <div style="display: flex; gap: 8px">
+ <AppButton type="primary" @click="createWorkspace">+ Workspace</AppButton>
+ <AppButton type="primary" @click="createCategory">+ Category</AppButton>
+ <AppButton type="secondary" variant="outline">Importer</AppButton>
</div>
+ </header>
+ <div style="padding: 10px 0; border-top: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center">
+ <input v-model="search" placeholder="Search category..." style="width: 50%; padding: 8px; border: 1px solid #ccc; border-radius: 4px" />
+ </div>
+ <div v-if="workspaces.length" class="workspace" v-for="workspace in workspaces" :key="workspace.id">
+ <h3 class="wp-name">{{ workspace.title }}</h3>
+ <WorkspaceTree v-for="node in workspace.childrens" :node="node" @edit="editNode" @delete="deleteNode" />
</div>
+
+ <div v-else style="color: #6c757d; font-style: italic">No workspaces</div>
</div>
</template>
-<style scoped lang="scss">
-.categories-container {
- display: flex;
- flex-wrap: wrap;
- gap: 30px;
- padding: 20px;
-}
+<script setup lang="ts">
+import CreateCategoryModal from './_modals/CreateCategoryModal.vue';
+import type { Category } from '~/stores';
-.add-category-btn {
- background: none;
- color: $primary-color;
- cursor: pointer;
- font-size: 1.1em;
- margin-top: 20px;
-}
+const categories = useCategoriesStore().getAll;
+const tree = new ItemsManager(
+ categories.map((c: Category) => {
+ return {
+ id: c.id,
+ title: c.name,
+ type: 'category',
+ route: `/categories/${c.id}`,
+ parent_id: c.parent_id || '',
+ data: c,
+ show: ref(true),
+ } as Item<Category>;
+ }),
+).generateTree() as Item<Category>[];
+console.log(tree);
+const workspaces = tree.filter((i: Item<Category>) => i.data.role === 2);
+console.log(workspaces);
+const search = ref('');
-.category-group {
- width: 100%;
- border-bottom: 2px solid var(--border-color);
- padding-bottom: 20px;
- margin-bottom: 20px;
+function createWorkspace() {
+ // logique de création de workspace
+ useModal().modals.value?.push({
+ component: shallowRef(CreateCategoryModal),
+ name: '',
+ props: undefined,
+ });
}
-.category-card {
- background-color: var(--bg-contrast);
- padding: 15px;
- border-radius: 8px;
- position: relative;
- transition: box-shadow $transition-duration;
- margin-bottom: 10px;
-
- &:hover {
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
- }
+function createCategory() {
+ // logique de création de catégorie
}
-.main-category {
- font-weight: bold;
- font-size: 1.2em;
+function editNode(node: Item) {
+ // ouvrir modal ou formulaire d'édition
}
-.sub-categories {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 20px;
+function deleteNode(node: Item) {
+ // confirmation + suppression
+}
+</script>
- @media screen and (min-width: 768px) {
- grid-template-columns: repeat(3, 1fr);
- }
+<style scoped>
+header {
+ display: flex;
+ justify-content: space-between;
+ align-items: baseline;
+ padding-bottom: 16px;
+}
+.workspace {
+ display: flex;
+ flex-direction: column;
+ background-color: #fff;
+ padding: 5px 15px;
+ border-radius: 10px;
+ border: var(--border-color) 1px solid;
+ width: 100%;
+ display: block;
+ margin-bottom: 16px;
}
-.action-menu {
- position: absolute;
- top: 8px;
- right: 8px;
- font-size: 1.5em;
+.wp-name {
+ font-size: 15px;
+ font-weight: bold;
+}
+.card-component {
+ display: block;
+ margin: 2px 0;
}
</style>
-<script lang="ts" setup>
-const categoriesStore = useCategoriesStore();
-</script>
diff --git a/frontend/styles/_variables.scss b/frontend/styles/_variables.scss
index 6b6fa076..ba7efaa6 100644
--- a/frontend/styles/_variables.scss
+++ b/frontend/styles/_variables.scss
@@ -21,14 +21,14 @@ $secondary-500: color.adjust($secondary-400, $lightness: 10%);
@forward "./font.scss";
-$external-font: 'Poppins', sans-serif;
+$external-font: 'Inter', sans-serif;
$monospace-font: monospace;
// Transitions
$transition-duration: 0.3s;
-$primary-color: #007aff;
+$primary-color: #0070e7;
$primary-light: color.adjust(#007aff, $lightness: 10%);
$primary-dark: color.adjust(#007aff, $lightness: -10%);
diff --git a/frontend/styles/document-theme.scss b/frontend/styles/document-theme.scss
index 69797c72..610197fc 100644
--- a/frontend/styles/document-theme.scss
+++ b/frontend/styles/document-theme.scss
@@ -1,6 +1,7 @@
@use "./_variables.scss" as *;
.document-theme {
+ font-family: "Poppins", sans-serif;
max-width: 100%;
a {
diff --git a/frontend/styles/font.scss b/frontend/styles/font.scss
index 12be856f..ea4df558 100644
--- a/frontend/styles/font.scss
+++ b/frontend/styles/font.scss
@@ -1,60 +1,90 @@
-/* latin-ext */
+/* cyrillic-ext */
@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 400;
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwkT9nA2.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
-/* latin */
+/* cyrillic */
@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 400;
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwAT9nA2.woff2) format('woff2');
+ unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+}
+
+/* greek-ext */
+@font-face {
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/poppins/v21/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwgT9nA2.woff2) format('woff2');
+ unicode-range: U+1F00-1FFF;
+}
+
+/* greek */
+@font-face {
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwcT9nA2.woff2) format('woff2');
+ unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
+}
+
+/* vietnamese */
+@font-face {
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwsT9nA2.woff2) format('woff2');
+ unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 500;
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwoT9nA2.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
- font-family: 'Poppins';
- font-style: normal;
- font-weight: 500;
+ font-family: 'Inter';
+ font-style: italic;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/poppins/v21/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCm3FwrK3iLTcvnUwQT9g.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2JL7SUc.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvvYwYL8g.woff2) format('woff2');
+ unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa0ZL7SUc.woff2) format('woff2');
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvmYwYL8g.woff2) format('woff2');
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@@ -62,9 +92,9 @@
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2ZL7SUc.woff2) format('woff2');
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvuYwYL8g.woff2) format('woff2');
unicode-range: U+1F00-1FFF;
}
@@ -72,9 +102,9 @@
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1pL7SUc.woff2) format('woff2');
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvhYwYL8g.woff2) format('woff2');
unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
@@ -82,9 +112,9 @@
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa2pL7SUc.woff2) format('woff2');
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvtYwYL8g.woff2) format('woff2');
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@@ -92,79 +122,218 @@
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa25L7SUc.woff2) format('woff2');
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcvsYwYL8g.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
font-family: 'Inter';
font-style: normal;
- font-weight: 100 900;
+ font-weight: 300 700;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/inter/v13/UcC73FwrK3iLTeHuS_fvQtMwCp50KnMa1ZL7.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+ src: url(https://fonts.gstatic.com/s/inter/v18/UcCo3FwrK3iLTcviYwY.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
-/* JETBRAINS MONO */
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 300;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLm21lVGdeOcEg.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+/* latin */
@font-face {
- font-family: 'JetBrains Mono';
- font-style: normal;
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 300;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLm21lVF9eO.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
font-weight: 400;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTN1OVgaY.woff2) format('woff2');
- unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiGyp8kv8JHgFVrJJLufntAKPY.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
-/* cyrillic */
+/* latin */
@font-face {
- font-family: 'JetBrains Mono';
- font-style: normal;
+ font-family: 'Poppins';
+ font-style: italic;
font-weight: 400;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTPlOVgaY.woff2) format('woff2');
- unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiGyp8kv8JHgFVrJJLucHtA.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
-/* greek */
+/* latin-ext */
@font-face {
- font-family: 'JetBrains Mono';
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 500;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmg1hVGdeOcEg.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 500;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmg1hVF9eO.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 600;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmr19VGdeOcEg.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 600;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmr19VF9eO.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmy15VGdeOcEg.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: italic;
+ font-weight: 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiDyp8kv8JHgFVrJJLmy15VF9eO.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
font-style: normal;
- font-weight: 400;
+ font-weight: 300;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOVOVgaY.woff2) format('woff2');
- unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLDz8Z1JlFc-K.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
-/* vietnamese */
+/* latin */
@font-face {
- font-family: 'JetBrains Mono';
+ font-family: 'Poppins';
font-style: normal;
- font-weight: 400;
+ font-weight: 300;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNVOVgaY.woff2) format('woff2');
- unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLDz8Z1xlFQ.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
- font-family: 'JetBrains Mono';
+ font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTNFOVgaY.woff2) format('woff2');
- unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiEyp8kv8JHgFVrJJnecmNE.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
- font-family: 'JetBrains Mono';
+ font-family: 'Poppins';
font-style: normal;
font-weight: 400;
font-display: swap;
- src: url(https://fonts.gstatic.com/s/jetbrainsmono/v18/tDbY2o-flEEny0FZhsfKu5WU4zr3E_BX0PnT8RD8yKxTOlOV.woff2) format('woff2');
- unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiEyp8kv8JHgFVrJJfecg.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 500;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLGT9Z1JlFc-K.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 500;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLGT9Z1xlFQ.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 600;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLEj6Z1JlFc-K.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 600;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLEj6Z1xlFQ.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
+}
+
+/* latin-ext */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLCz7Z1JlFc-K.woff2) format('woff2');
+ unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
+}
+
+/* latin */
+@font-face {
+ font-family: 'Poppins';
+ font-style: normal;
+ font-weight: 700;
+ font-display: swap;
+ src: url(https://fonts.gstatic.com/s/poppins/v22/pxiByp8kv8JHgFVrLCz7Z1xlFQ.woff2) format('woff2');
+ unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
\ No newline at end of file
diff --git a/frontend/styles/main.scss b/frontend/styles/main.scss
index d686dd17..18db68a4 100644
--- a/frontend/styles/main.scss
+++ b/frontend/styles/main.scss
@@ -37,7 +37,7 @@
.modal-mask {
position: fixed;
- z-index: 100;
+ z-index: 120;
top: 0;
left: 0;
width: 100vw;
@@ -46,6 +46,17 @@
display: flex;
}
+.modal-pos {
+ position: fixed;
+ top: 0;
+ left: 0;
+ width: 100vw;
+ height: 100vh;
+ display: flex;
+
+}
+
+
body {
background: var(--bg-color);
color: var(--font-color);