Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
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
?
Snippets
Groups
Projects
Show more breadcrumbs
leximpact
Simulateur socio-fiscal
leximpact-socio-fiscal-ui
Commits
bffaa146
Commit
bffaa146
authored
Mar 24, 2021
by
Emmanuel Raviart
Browse files
Options
Downloads
Patches
Plain Diff
Remove counter & styles. Add about page.
parent
4b71020a
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/lib/Counter.svelte
+0
-34
0 additions, 34 deletions
src/lib/Counter.svelte
src/lib/NavBar.svelte
+4
-3
4 additions, 3 deletions
src/lib/NavBar.svelte
src/routes/index.svelte
+5
-50
5 additions, 50 deletions
src/routes/index.svelte
with
9 additions
and
87 deletions
src/lib/Counter.svelte
deleted
100644 → 0
+
0
−
34
View file @
4b71020a
<script
lang=
"ts"
>
let
count
:
number
=
0
const
increment
=
()
=>
{
count
+=
1
}
</script>
<button
on:click=
{
increment
}
>
Clicks:
{
count
}
</button>
<style
lang=
"postcss"
>
button
{
font-family
:
inherit
;
font-size
:
inherit
;
/* Tailwind's creator recommends against @apply.
This is all just proof that it works in your Svelte style blocks. */
@apply
py-4
px-8;
@apply
text-red-500;
@apply
bg-red-500
bg-opacity-10;
@apply
rounded-full;
@apply
border-2
border-transparent;
@apply
outline-none;
@apply
w-48;
font-variant-numeric
:
tabular-nums
;
}
button
:focus
{
@apply
border-opacity-100;
}
button
:active
{
@apply
bg-red-500
bg-opacity-20;
}
</style>
This diff is collapsed.
Click to expand it.
src/lib/NavBar.svelte
+
4
−
3
View file @
bffaa146
...
...
@@ -3,6 +3,7 @@
const
menuItems
=
[
{
href
:
"
.
"
,
label
:
"
Accueil
"
},
{
href
:
"
about
"
,
label
:
"
À propos
"
},
{
href
:
"
calculations
"
,
label
:
"
Calculs
"
},
{
href
:
"
entities
"
,
label
:
"
Entités
"
},
{
href
:
"
parameters
"
,
label
:
"
Paramètres
"
},
...
...
@@ -153,17 +154,17 @@
aria-labelledby=
"user-menu"
>
<a
href=
"
#
"
href=
"
profile
"
class=
"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
role=
"menuitem"
>
Your Profile
</a
>
<a
href=
"
#
"
href=
"
settings
"
class=
"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
role=
"menuitem"
>
Settings
</a
>
<a
href=
"
#
"
href=
"
sign_out
"
class=
"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100"
role=
"menuitem"
>
Sign out
</a
>
...
...
This diff is collapsed.
Click to expand it.
src/routes/index.svelte
+
5
−
50
View file @
bffaa146
<script
lang=
"ts"
>
import
Counter
from
"
$lib/Counter.svelte
"
</script>
<main>
<h1>
Simulateur socio-fiscal Leximpact
</h1>
<Counter
/>
<h2>
Usage
</h2>
<h2>
Utilisation
</h2>
<ul>
<li><a
href=
"calculations"
>
Calcul
ation
s
</a></li>
<li><a
href=
"entities"
>
Entit
ie
s
</a></li>
<li><a
href=
"parameters"
>
Param
eter
s
</a></li>
<li><a
href=
"calculations"
>
Calculs
</a></li>
<li><a
href=
"entities"
>
Entit
é
s
</a></li>
<li><a
href=
"parameters"
>
Param
ètre
s
</a></li>
<li><a
href=
"variables"
>
Variables
</a></li>
</ul>
<h2>
Documentation
</h2>
<ul>
<li><a
href=
"spec"
>
API d
ocumentation
</a></li>
<li><a
href=
"spec"
>
D
ocumentation
de l'API
</a></li>
</ul>
</main>
<style
lang=
"postcss"
>
:root
{
font-family
:
-
apple-system
,
BlinkMacSystemFont
,
"Segoe UI"
,
Roboto
,
Oxygen
,
Ubuntu
,
Cantarell
,
"Open Sans"
,
"Helvetica Neue"
,
sans-serif
;
}
main
{
@apply
text-center;
@apply
p-4;
@apply
mx-auto;
}
h1
{
@apply
text-red-600;
@apply
uppercase;
@apply
text-6xl;
@apply
font-thin;
@apply
leading-tight;
@apply
my-16
mx-auto;
@apply
max-w-xs;
}
p
{
@apply
max-w-xs;
@apply
my-8
mx-auto;
@apply
leading-snug;
}
@screen
sm
{
h1
{
@apply
max-w-none;
}
p
{
@apply
max-w-none;
}
}
</style>
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