Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

icons added + some fixes #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/sidebarList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export const sidebarLists = {
component: ProjectDefensePlanification,
},
{

path: "soutenance-delibration",
name: "soutenance-delibration",
component: ProjectDefenseDelibration,
Expand Down
74 changes: 73 additions & 1 deletion src/lib/components/layout/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,79 @@
? 'border-opacity-100 opacity-100'
: 'border-opacity-40 opacity-75 dark:border-opacity-40'} transition-all"
>
<Link to={item.path}>{$_(`sidebar.${item.name}`)}</Link>
<Link to={item.path}>
{#if item.name == "members"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "users"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M15 19.128a9.38 9.38 0 002.625.372 9.337 9.337 0 004.121-.952 4.125 4.125 0 00-7.533-2.493M15 19.128v-.003c0-1.113-.285-2.16-.786-3.07M15 19.128v.106A12.318 12.318 0 018.624 21c-2.331 0-4.512-.645-6.374-1.766l-.001-.109a6.375 6.375 0 0111.964-3.07M12 6.375a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zm8.25 2.25a2.625 2.625 0 11-5.25 0 2.625 2.625 0 015.25 0z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "roles"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "periods"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "display"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M3 8.25V18a2.25 2.25 0 002.25 2.25h13.5A2.25 2.25 0 0021 18V8.25m-18 0V6a2.25 2.25 0 012.25-2.25h13.5A2.25 2.25 0 0121 6v2.25m-18 0h18M5.25 6h.008v.008H5.25V6zM7.5 6h.008v.008H7.5V6zm2.25 0h.008v.008H9.75V6z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "general information"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M11.25 11.25l.041-.02a.75.75 0 011.063.852l-.708 2.836a.75.75 0 001.063.853l.041-.021M21 12a9 9 0 11-18 0 9 9 0 0118 0zm-9-3.75h.008v.008H12V8.25z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}

{#if item.name == "validation"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4.5 12.75l6 6 9-13.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "supervisors"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M4.26 10.147a60.436 60.436 0 00-.491 6.347A48.627 48.627 0 0112 20.904a48.627 48.627 0 018.232-4.41 60.46 60.46 0 00-.491-6.347m-15.482 0a50.57 50.57 0 00-2.658-.813A59.905 59.905 0 0112 3.493a59.902 59.902 0 0110.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.697 50.697 0 0112 13.489a50.702 50.702 0 017.74-3.342M6.75 15a.75.75 0 100-1.5.75.75 0 000 1.5zm0 0v-3.675A55.378 55.378 0 0112 8.443m-7.007 11.55A5.981 5.981 0 006.75 15.75v-1.5" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "edit history"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M16.862 4.487l1.687-1.688a1.875 1.875 0 112.652 2.652L10.582 16.07a4.5 4.5 0 01-1.897 1.13L6 18l.8-2.685a4.5 4.5 0 011.13-1.897l8.932-8.931zm0 0L19.5 7.125M18 14v4.75A2.25 2.25 0 0115.75 21H5.25A2.25 2.25 0 013 18.75V8.25A2.25 2.25 0 015.25 6H10" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "tasks"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M15.666 3.888A2.25 2.25 0 0013.5 2.25h-3c-1.03 0-1.9.693-2.166 1.638m7.332 0c.055.194.084.4.084.612v0a.75.75 0 01-.75.75H9a.75.75 0 01-.75-.75v0c0-.212.03-.418.084-.612m7.332 0c.646.049 1.288.11 1.927.184 1.1.128 1.907 1.077 1.907 2.185V19.5a2.25 2.25 0 01-2.25 2.25H6.75A2.25 2.25 0 014.5 19.5V6.257c0-1.108.806-2.057 1.907-2.185a48.208 48.208 0 011.927-.184" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "progress"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M2.25 18L9 11.25l4.306 4.307a11.95 11.95 0 015.814-5.519l2.74-1.22m0 0l-5.94-2.28m5.94 2.28l-2.28 5.941" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "defense"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5M9 11.25v1.5M12 9v3.75m3-6v6" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "defense plan"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M3.75 3v11.25A2.25 2.25 0 006 16.5h2.25M3.75 3h-1.5m1.5 0h16.5m0 0h1.5m-1.5 0v11.25A2.25 2.25 0 0118 16.5h-2.25m-7.5 0h7.5m-7.5 0l-1 3m8.5-3l1 3m0 0l.5 1.5m-.5-1.5h-9.5m0 0l-.5 1.5m.75-9l3-3 2.148 2.148A12.061 12.061 0 0116.5 7.605" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{#if item.name == "soutenance-delibration"}
<svg class="h-7" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="1.5" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<path d="M9 12.75L11.25 15 15 9.75M21 12a9 9 0 11-18 0 9 9 0 0118 0z" stroke-linecap="round" stroke-linejoin="round"></path>
</svg>
{/if}
{$_(`sidebar.${item.name}`)}</Link>
</li>
</div>
{/each}
Expand Down
23 changes: 12 additions & 11 deletions src/lib/components/layout/navbar/LanguageMenu.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -107,21 +107,22 @@
</li>
<!-- svelte-ignore a11y-missing-attribute -->
<!-- svelte-ignore a11y-click-events-have-key-events -->
<li on:click={() => {
<li
class="{selectedLang == 'ar'
? 'bg-black bg-opacity-20'
: ''} rounded-md"
on:click={() => {
changleLanguage("ar");
}}
>
<a class="flex flex-row gap-4">
<svg
class="h-7 rounded-[4px] border"
xmlns="http://www.w3.org/2000/svg"
id="flag
-icons-ar"
viewBox="0 0 640 480"
>

<path fill="#063" d="M0 0h640v480H0z" />
</svg>
<svg
class="h-7 rounded-[4px] border"
xmlns="http://www.w3.org/2000/svg" id="flag-icons-dz" viewBox="0 0 640 480">
<path fill="#fff" d="M320 0h320v480H320z"/>
<path fill="#006233" d="M0 0h320v480H0z"/>
<path fill="#d21034" d="M424 180a120 120 0 1 0 0 120 96 96 0 1 1 0-120m4 60-108-35.2 67.2 92V183.2l-67.2 92z"/>
</svg>
<div>العربية</div>
</a>
</li>
Expand Down
13 changes: 8 additions & 5 deletions src/locale/en.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
{
"landing": {
"title": "Diploma-startup / Diploma- patent",
"description": "The objective of our platform is to enable the school's internship service to seamlessly track and manage the 'one diploma-one startup / one diploma-one patent' projects from submission to defense, within the framework of the provisions outlined in decree 1275. Our platform provides a comprehensive solution that streamlines the entire process of managing these projects, from submission to defense, and provides a set of tools that facilitate the work of the internship service and the project supervisors.",
"login": "login",
"register": "register"

"landing":{
"title":"Diploma-Startup / Diploma- Patent",
"description":"The objective of our platform is to enable the school's internship service to seamlessly track and manage the 'one diploma-one startup / one diploma-one patent' projects from submission to defense, within the framework of the provisions outlined in decree 1275. Our platform provides a comprehensive solution that streamlines the entire process of managing these projects, from submission to defense, and provides a set of tools that facilitate the work of the internship service and the project supervisors.",
"login": "Login",
"register": "Register"


},

"navbar": {
Expand Down
10 changes: 5 additions & 5 deletions src/locale/fr.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"landing": {
"title": "Diplôme-startup / Diplôme-brevet",
"description": "L'objectif de notre plateforme est de permettre au service des stages de l'école de suivre et de gérer de manière fluide les projets 'un diplôme-une startup / un diplôme-un brevet', de leur dépôt à leur soutenance, dans le cadre des dispositions définies par l'arrêté 1275. Notre plateforme offre une solution complète qui optimise l'ensemble du processus de gestion de ces projets, de leur dépôt à leur soutenance, en mettant à disposition un ensemble d'outils facilitant le travail du service des stages et des encadrants de projet.",
"login": "Se connecter",
"register": "registrer"
"landing":{
"title":"Diplôme-Startup / Diplôme-Brevet",
"description":"L'objectif de notre plateforme est de permettre au service des stages de l'école de suivre et de gérer de manière fluide les projets 'un diplôme-une startup / un diplôme-un brevet', de leur dépôt à leur soutenance, dans le cadre des dispositions définies par l'arrêté 1275. Notre plateforme offre une solution complète qui optimise l'ensemble du processus de gestion de ces projets, de leur dépôt à leur soutenance, en mettant à disposition un ensemble d'outils facilitant le travail du service des stages et des encadrants de projet.",
"login":"Se connecter",
"register": "S'enregistrer"
},

"navbar": {
Expand Down
2 changes: 1 addition & 1 deletion src/routes/LandingPage.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
alt="Innovium logo with text"
/>
<div class="justify-start flex h-5 ">
<Typewriter loop={1000} interval={50} cursor={false} delay={900}>
<Typewriter loop={100} interval={100} cursor={false} delay={10}>
<div
class="-mx-1 mt-6 text-center text-3xl font-bold tracking-tight "
>
Expand Down
2 changes: 1 addition & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const config = {
darkest: "#2C3333",
dark: "#2E4F4F",
light: "#0E8388",
lightest: "#CBE4DE",
lightest: "#e4f4f0",
},
},
},
Expand Down