Skip to main content
Homepage
Explore
Search or go to…
/
Register
Sign in
Explore
Primary navigation
Project
L
leximpact-socio-fiscal-ui
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Collapse sidebar
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
207a6c14
Commit
207a6c14
authored
Sep 22, 2021
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Add connexion button. Link CSG button to CSG authentication.
parent
c9cf2bec
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lib/components/NavBar.svelte
+56
-41
56 additions, 41 deletions
src/lib/components/NavBar.svelte
with
56 additions
and
41 deletions
src/lib/components/NavBar.svelte
+
56
−
41
View file @
207a6c14
...
@@ -150,20 +150,16 @@
...
@@ -150,20 +150,16 @@
<div
class=
"flex justify-end items-center"
>
<div
class=
"flex justify-end items-center"
>
{
#if
authenticationEnabled
}
{
#if
authenticationEnabled
}
{
#if
user
===
undefined
}
{
#if
user
===
undefined
}
<div
class=
"flex"
>
<div
class=
"flex
justify-between gap-2 items-center
"
>
<a
<a
title=
"Vers le simulateur CSG Budget de la Sécurité sociale"
href=
"/authentication/signin/leximpact?redirect={$page.path}"
href=
"/authentication/signin/leximpact?redirect={$page.path}"
class=
"
bg-le-jaune-dark
text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-
black
hover:bg-opacity-20 hover:text-white
shadow-md
"
class=
"text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-
gray-400
hover:bg-opacity-20 hover:text-white
p-1
"
type=
"button"
type=
"button"
>
>
<div
class=
"flex items-center m-1"
>
<div
class=
"flex items-center"
>
<div>
<p
class=
"hidden md:inline-block pl-1"
>
Budget CSG
</p>
</div>
<!-- Material icon: VPN key-->
<!-- Material icon: VPN key-->
<svg
<svg
class=
"fill-current text-white inline rounded m
x-2
"
class=
"fill-current text-white inline rounded m
-3 md:m-0
"
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
height=
"18px"
height=
"18px"
viewBox=
"0 0 22 22"
viewBox=
"0 0 22 22"
...
@@ -172,9 +168,37 @@
...
@@ -172,9 +168,37 @@
d=
"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"
d=
"M12.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"
/></svg
/></svg
>
>
<p
class=
"hidden lg:inline-block pl-1"
>
Se connecter
</p>
</div>
</a>
<div
class=
"bg-le-jaune-dark text-white uppercase text-sm rounded-sm focus:outline-none hover:bg-gray-400 hover:bg-opacity-20 hover:text-white shadow-md"
>
<a
title=
"Vers le simulateur CSG Budget de la Sécurité sociale"
href=
"https://budget.leximpact.an.fr/authentication/signin/leximpact?redirect=/budget"
class=
""
type=
"button"
>
<div
class=
"flex items-center m-1"
>
<div
class=
"hidden md:inline-block p-1"
>
Budget CSG
</div>
<!-- Material icon: arrow forward-->
<svg
class=
"fill-current text-white inline rounded mx-2 lg:ml-0"
xmlns=
"http://www.w3.org/2000/svg"
height=
"18px"
viewBox=
"0 0 22 22"
width=
"18px"
fill=
"#000000"
><path
d=
"M0 0h24v24H0z"
fill=
"none"
/><path
d=
"M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"
/></svg
>
</div>
</div>
</a>
</a>
</div>
</div>
</div>
{
:
else
}
{
:
else
}
<!-- User profile + se déconnecter -->
<!-- User profile + se déconnecter -->
<div
class=
"flex justify-between gap-2 items-center"
>
<div
class=
"flex justify-between gap-2 items-center"
>
...
@@ -213,21 +237,12 @@
...
@@ -213,21 +237,12 @@
>
>
<a
<a
title=
"Accès au simulateur CSG sur le budget de la Sécurité sociale"
title=
"Accès au simulateur CSG sur le budget de la Sécurité sociale"
href=
"https://budget.leximpact.an.fr/budget"
href=
"https://budget.leximpact.an.fr/
authentication/signin/leximpact?redirect=/
budget"
class=
""
class=
""
type=
"button"
type=
"button"
>
>
<div
class=
"flex items-center m-1"
>
<div
class=
"flex items-center m-1"
>
<div>
<div
class=
"hidden md:inline-block p-1"
>
Budget CSG
</div>
<p
class=
"hidden lg:inline-block xl:hidden p-1"
>
Budget CSG
</p>
<p
class=
"hidden md:inline-block lg:hidden xl:inline-block p-1"
>
Budget CSG
</p>
</div>
<!-- Material icon: arrow forward-->
<!-- Material icon: arrow forward-->
<svg
<svg
class=
"fill-current text-white inline rounded mx-2 lg:ml-0"
class=
"fill-current text-white inline rounded mx-2 lg:ml-0"
...
@@ -362,45 +377,45 @@
...
@@ -362,45 +377,45 @@
aria-orientation=
"vertical"
aria-orientation=
"vertical"
aria-labelledby=
"user-menu"
aria-labelledby=
"user-menu"
>
>
{
#if
authenticationEnabled
}
{
#if
user
===
undefined
}
<a
<a
href=
"/authentication/signin/leximpact?redirect=
{$page.path}
"
href=
"
https://budget.leximpact.an.fr
/authentication/signin/leximpact?redirect=
/budget
"
class=
"border-b block px-4 py-3 text-base bg-le-jaune-dark text-white hover:text-black"
class=
"border-b block px-4 py-3 text-base bg-le-jaune-dark text-white hover:text-black"
role=
"menuitem"
role=
"menuitem"
>
>
<!-- Material icon:
VPN key
-->
<!-- Material icon:
arrow forward
-->
<svg
<svg
class=
"fill-current inline rounded m
r
-2"
class=
"fill-current
text-white
inline rounded m
x
-2
lg:ml-0
"
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
height=
"18px"
height=
"18px"
viewBox=
"0 0 22 22"
viewBox=
"0 0 22 22"
width=
"18px"
width=
"18px"
fill=
"#000000"
><path
d=
"M0 0h24v24H0z"
fill=
"none"
/><path
><path
d=
"M0 0h24v24H0z"
fill=
"none"
/><path
d=
"M12
.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2
z"
d=
"M12
4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8
z"
/></svg
/></svg
>
Estimer la CSG - budget de la Sécurité sociale
</a
>
>
{
:
else
}
Estimer la CSG - budget de la Sécurité sociale
</a
>
{
#if
authenticationEnabled
}
{
#if
user
===
undefined
}
<a
<a
href=
"
https://socio-fiscal.leximpact.an.fr/
"
href=
"
/authentication/signin/leximpact?redirect={$page.path}
"
class=
"border-b block px-4 py-3 text-
base bg-le-jaune-dark text-white hover:text-black
"
class=
"border-b block px-4 py-3 text-
sm text-gray-700 font-bold hover:bg-gray-100
"
role=
"menuitem"
role=
"menuitem"
>
>
<!-- Material icon:
arrow forward
-->
<!-- Material icon:
VPN key
-->
<svg
<svg
class=
"fill-current inline rounded mr-2"
class=
"fill-current
text-gray-700
inline rounded mr-2"
xmlns=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
height=
"18px"
height=
"18px"
viewBox=
"0 0 22 22"
viewBox=
"0 0 22 22"
width=
"18px"
width=
"18px"
fill=
"#000000"
><path
d=
"M0 0h24v24H0z"
fill=
"none"
/><path
><path
d=
"M0 0h24v24H0z"
fill=
"none"
/><path
d=
"M12
4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8
z"
d=
"M12
.65 10C11.83 7.67 9.61 6 7 6c-3.31 0-6 2.69-6 6s2.69 6 6 6c2.61 0 4.83-1.67 5.65-4H17v4h4v-4h2v-4H12.65zM7 14c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2
z"
/></svg
/></svg
>
Se connecter
</a
>
>
Estimer cotisations
&
prestations sur particulier type
{
:
else
}
</a>
<a
<a
href=
"/authentication/signout"
href=
"/authentication/signout"
class=
"border-b-4 block px-4 py-3 text-base text-gray-700 hover:bg-gray-100"
class=
"border-b-4 block px-4 py-3 text-base text-gray-700 hover:bg-gray-100"
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment