Skip to content
Snippets Groups Projects
Commit 92899339 authored by Dorine Lambinet's avatar Dorine Lambinet
Browse files

Ajoute flowbite svelte et popover sur bouton impact budget indisponible

parent a6f384a4
Branches
Tags
1 merge request!90Carte budget etat
Pipeline #7228 passed
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
import { openModal } from "svelte-modals" import { openModal } from "svelte-modals"
import type { Writable } from "svelte/store" import type { Writable } from "svelte/store"
import { Popover } from "flowbite-svelte"
import { browser } from "$app/environment" import { browser } from "$app/environment"
import { goto } from "$app/navigation" import { goto } from "$app/navigation"
import { page } from "$app/stores" import { page } from "$app/stores"
...@@ -64,6 +66,8 @@ ...@@ -64,6 +66,8 @@
export let data: PageData export let data: PageData
let placement
const billName = getContext("billName") as Writable<string | undefined> const billName = getContext("billName") as Writable<string | undefined>
const budgetSimulation = getContext("budgetSimulation") as Writable< const budgetSimulation = getContext("budgetSimulation") as Writable<
BudgetSimulation | undefined BudgetSimulation | undefined
...@@ -1079,22 +1083,42 @@ ...@@ -1079,22 +1083,42 @@
<div> <div>
<h2 class="flex"> <h2 class="flex">
<div <div
class="flex h-14 items-center px-3 text-2xl text-black sm:text-3xl md:px-1 md:text-xl lg:px-2 lg:text-2xl xl:px-3 xl:text-3xl" class="flex h-14 items-center border-b-4 border-black px-3 text-2xl text-black sm:text-3xl md:px-1 md:text-xl lg:px-2 lg:text-2xl xl:px-3 xl:text-3xl"
> >
<span class="pb-2 font-bold tracking-wide text-black"> <span class="pb-2 font-bold tracking-wide text-black">
Impact cas type Impact cas type
</span> </span>
</div> </div>
<div <div
id="placement-bottom"
on:mouseenter={() => (placement = "bottom")}
class="flex h-14 items-center px-3 text-2xl text-black sm:text-3xl md:px-1 md:text-xl lg:px-2 lg:text-2xl xl:px-3 xl:text-3xl" class="flex h-14 items-center px-3 text-2xl text-black sm:text-3xl md:px-1 md:text-xl lg:px-2 lg:text-2xl xl:px-3 xl:text-3xl"
> >
<span <span class="pb-2 tracking-wide text-gray-300">
title="Le calcul budgétaire n'est pas disponible pour ce dispositif"
class="pb-2 tracking-wide text-gray-300"
>
Impact budgétaires Impact budgétaires
</span> </span>
</div> </div>
<Popover
triggeredBy="[id^='placement-']"
{placement}
class="m-10 w-80 text-sm font-light shadow-2xl"
title="Impact budgétaire indisponible"
>
<span class="text-black">
Le calcul des impacts budgétaires du dispositif «&nbsp;{displayMode.parametersVariableName}&nbsp;»
n'est pas encore disponible.
<span class="font-normal"
>Ce sujet vous intéresse ? Écrivez-nous à
<a
class="link"
href="mailto:leximpact@assemblee-nationale.fr"
>leximpact@assemblee-nationale.fr</a
></span
>
</span>
</Popover>
</h2> </h2>
</div> </div>
{/if} {/if}
...@@ -1111,7 +1135,7 @@ ...@@ -1111,7 +1135,7 @@
</h3> </h3>
<div class="my-5 flex justify-center"> <div class="my-5 flex justify-center">
<div <div
class="mx-6 grow-0 items-center rounded-lg bg-le-bleu py-2 text-lg uppercase text-white shadow-md hover:bg-gray-300 hover:text-black focus:outline-none md:mx-0" class="mx-6 grow-0 items-center rounded-lg bg-le-bleu py-2 px-4 text-lg uppercase text-white shadow-md hover:bg-blue-900 focus:outline-none md:mx-0"
> >
<a <a
href={`/auth/login?redirect=${encodeURIComponent( href={`/auth/login?redirect=${encodeURIComponent(
...@@ -1153,13 +1177,13 @@ ...@@ -1153,13 +1177,13 @@
</h3> </h3>
<div class="my-5 flex justify-center"> <div class="my-5 flex justify-center">
<div <div
class="mx-6 grow-0 items-center rounded-lg bg-le-bleu py-2 text-lg uppercase text-white shadow-md hover:bg-gray-300 hover:text-black focus:outline-none md:mx-0" class="mx-6 grow-0 items-center rounded-lg bg-le-bleu py-2 text-lg uppercase text-white shadow-md hover:bg-blue-900 focus:outline-none md:mx-0"
> >
<a <a
href="https://budget.leximpact.an.fr/authentication/signin/leximpact?redirect=/budget" href="https://budget.leximpact.an.fr/authentication/signin/leximpact?redirect=/budget"
title="Vers le simulateur CSG Budget de la Sécurité sociale" title="Vers le simulateur CSG Budget de la Sécurité sociale"
> >
<div class="flex h-12 items-center px-4 py-1"> <div class="flex h-10 items-center px-4 py-1">
<PictoBudgetEtat /> <PictoBudgetEtat />
<span class="pl-1 text-lg"> Simulateur budget CSG </span> <span class="pl-1 text-lg"> Simulateur budget CSG </span>
<iconify-icon class="ml-2 h-4 w-4" icon="ri-share-box-line" /> <iconify-icon class="ml-2 h-4 w-4" icon="ri-share-box-line" />
......
...@@ -3,8 +3,12 @@ const typography = require("@tailwindcss/typography") ...@@ -3,8 +3,12 @@ const typography = require("@tailwindcss/typography")
const colors = require("tailwindcss/colors") const colors = require("tailwindcss/colors")
const config = { const config = {
content: ["./src/**/*.{html,js,svelte,ts}"], content: ["./src/**/*.{html,js,svelte,ts}", "./src/**/*.{html,js,svelte,ts}",
"./node_modules/flowbite-svelte/**/*.{html,js,svelte,ts}",],
plugins: [ plugins: [
[
require('flowbite/plugin')
],
typography, typography,
function ({ addUtilities }) { function ({ addUtilities }) {
const extendLineThrough = { const extendLineThrough = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment