Skip to content

Commit a0826c3

Browse files
authored
Merge pull request #36 from ansforge/main-klee
Main klee
2 parents f4b9e2f + 57d6985 commit a0826c3

33 files changed

+743
-316
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
node_modules
44

55
# Generated folders by gulp compilation
6-
./site
7-
./styleguide
6+
/site
7+
/styleguide

README.md

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,18 @@
1-
# S.K.E.L.E.T.O.R
1+
# ANS - RESSOURCES
2+
### Design System de l'ANS
3+
4+
---
25

36
Framework CSS créé par les équipes front d'Alterway.
7+
Maintenu par Klee Interactive.
48
- BEM pour le nommage des class et id
59
- SASS pour le CSS
610
- jQuery ou Vanilla JS selon le besoin
711
- Accessibilité : RGAA (AA) exigé
812
- GULP 4.x.x
13+
- Docksal
914

10-
# Génération du projet
15+
## Génération du projet
1116

1217
Pour la première fois
1318
```
@@ -29,30 +34,32 @@ Pour lancer avec le watcher
2934
fin watch
3035
```
3136

32-
## Si le GULP plante
37+
### Si le GULP plante
3338

3439
Faire :
35-
- rm -rf node_modules
36-
- rm -rf package-lock.json
37-
- fin npm cache clean --force
38-
- fin npm install
39-
40+
```
41+
rm -rf node_modules
42+
rm -rf package-lock.json
43+
fin npm cache clean --force
44+
fin npm install
45+
```
46+
---
4047
# Les grands principes
4148

42-
## Base
49+
### Base
4350
- Héritage de Boostrap 4.x.x
4451
- OOCSS et BEM
4552
- Architecture en Atomic Design
4653
- Compilation via Gulp 4.x.x
4754

48-
## Javascript
55+
### Javascript
4956
Les plugins JS sont en jQuery pour la majorité d'entre eux.
5057
Ils respectent les patterns d'accessibilité.
5158

52-
## Accessibilité
59+
### Accessibilité
5360
Respecter le RGAA, coder de façon accessible tant en HTML (twig), en CSS et en JS.
5461

55-
## Composants
62+
### Composants
5663
- dossier TWIG des composants : `web/twig/site/component`.
5764
- dossier CSS des composants : `web/style/site/5-component`.
5865

@@ -62,12 +69,21 @@ Ex. du composant qui a pour class `.a-info` :
6269
- création du .twig : `web/twig/site/component/1-atom/a-info.twig`
6370
- création du .scss : `web/style/site/5-component/1-atom/_a-info.scss`
6471

65-
# Mise à jour de version
72+
---
73+
74+
# Mise à jour de version officiel du projet
6675

6776
A chaque mise à jour de version :
77+
- Modèle : X:Y:Z (ex: 1.9.0)
6878
- Mettre à jour la date de livraison et le numéro de version sur la page `index.twig`
6979
- Lister tous les nouveaux éléments et les modifications apportées par la version sur la page `sg-versions.twig`
7080
- Lancer la commande `fin gulp` pour générer tous les fichiers puis zipper la version (les éléments du dossier `web/styleguide`) **en retirant les .zip des anciennes versions du dossier /zip**
7181
- Placer le nouveau fichier .zip dans le dossier `web/src/zip`
7282
- Vérifier le poids noté dans les twig de tous les fichiers zip. Vous obtiendrez ces informations dans la console en lançant la commande `fin gulp` (fonction zipSizes)
73-
- Taguer la branch `develop` à chaque livraison de version
83+
- Taguer la branch `develop` à chaque livraison de version
84+
85+
# Déploiement vers le GitHub ANS
86+
87+
Après que le tag ai été validé par l'ANS sur les environnement OVH (préprod ou prod)
88+
- Créer une MR de develop au niveau du tag vers la branche "synchro-github-ans"
89+
- Le push vers github se fait via un job "synchro_github" manuel.

src/img/blocs/menu-slide-bar.jpg

31.1 KB
Loading

src/img/footer/Footer-mobile.png

-5.33 KB
Loading

src/img/footer/[email protected]

-8.88 KB
Loading

src/img/logo-ministere.jpg

29.5 KB
Loading

src/img/logo-ministere.png

4.04 KB
Loading

src/img/logo-ministere.svg

Lines changed: 232 additions & 246 deletions
Loading

src/php/confirmation.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@
278278
<a class="nav-link" href="sg-c-messages.html">Messages de statut</a>
279279
</li>
280280

281+
<li class="nav-item common-nav-item">
282+
<a class="nav-link" href="sg-c-messages-cta.html">Messages avec CTA</a>
283+
</li>
284+
281285
<li class="nav-item common-nav-item">
282286
<a class="nav-link" href="sg-c-progress-bar.html">Barre de progression</a>
283287
</li>

src/style/blocs/3-organism/_o-banner.scss

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@
1515
}
1616

1717
.wysiwyg {
18-
ul, ol {
18+
19+
ul,
20+
ol {
1921
margin-left: 0;
2022
}
2123

@@ -56,13 +58,17 @@
5658
[data-contrast="high-c"] & {
5759
color: var(--gray-700);
5860
}
61+
62+
.svg-x {
63+
font-size: 1.7rem;
64+
}
5965
}
6066

6167
.o-banner__content {
6268
padding-top: var(--banner-padding-top);
6369
max-width: var(--banner-content-width);
6470

65-
[data-contrast="high-c"] & > * {
71+
[data-contrast="high-c"] &>* {
6672
background-color: var(--white);
6773
}
6874
}
@@ -108,7 +114,8 @@
108114
right: 0;
109115
bottom: 0;
110116
background-repeat: no-repeat;
111-
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 85 91'%3E%3Cpath fill='#{$primary}' d='M42.364 90.817h-.003C19.235 90.817.488 72.088.488 48.984V.198C3.762 3.84 10.336 6.94 23.68 7.15h18.684c23.126 0 41.872 18.73 41.872 41.834 0 23.104-18.746 41.833-41.872 41.833' /%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 153'%3E%3Cpath fill='%23D20050' d='M69.996 152.198h.005c38.616 0 69.919-31.274 69.919-69.853V.88c-5.467 6.081-16.443 11.259-38.726 11.61H69.996C31.38 12.49.076 43.762.076 82.344c0 38.579 31.304 69.853 69.92 69.853'/%3E%3C/svg%3E");
117+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 85 91'%3E%3Cpath fill='#{$primary}' d='M42.364 90.817h-.003C19.235 90.817.488 72.088.488 48.984V.198C3.762 3.84 10.336 6.94 23.68 7.15h18.684c23.126 0 41.872 18.73 41.872 41.834 0 23.104-18.746 41.833-41.872 41.833' /%3E%3C/svg%3E"),
118+
url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 153'%3E%3Cpath fill='%23D20050' d='M69.996 152.198h.005c38.616 0 69.919-31.274 69.919-69.853V.88c-5.467 6.081-16.443 11.259-38.726 11.61H69.996C31.38 12.49.076 43.762.076 82.344c0 38.579 31.304 69.853 69.92 69.853'/%3E%3C/svg%3E");
112119
background-size: 9rem, 14.2rem;
113120
background-position: top 9.2rem left 0, top 100% right 13rem;
114121
}
@@ -145,24 +152,24 @@
145152

146153
&::after {
147154
left: 0;
148-
background-image: url("data:image/svg+xml,%3Csvg width='71' height='75' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.696 75h.003c19.367 0 35.066-15.5 35.066-34.622V0c-2.742 3.014-8.247 5.58-19.422 5.754H35.696C16.33 5.754.63 21.254.63 40.378.63 59.499 16.33 75 35.696 75' fill='%231D71B8'/%3E%3C/svg%3E"),
149-
url("data:image/svg+xml,%3Csvg width='137' height='146' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M68.506.303h.004c37.443 0 67.796 29.968 67.796 66.936v78.064c-5.301-5.828-15.944-10.789-37.55-11.125h-30.25C31.063 134.178.711 104.21.711 67.239.711 30.271 31.063.303 68.506.303' fill='%23D20050'/%3E%3C/svg%3E"),
150-
url("data:image/svg+xml,%3Csvg width='129' height='94' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.14 93.346H.626c20.29-12.733 32.123-33.39 35.739-51.209 5.452-26.912 20.89-41.3 45.448-41.3 25.853 0 46.813 20.708 46.813 46.256 0 25.545-20.96 46.253-46.813 46.253H17.14z' fill='%231E70B7'/%3E%3C/svg%3E"),
151-
url("data:image/svg+xml,%3Csvg width='241' height='168' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.394 83.975C.394 38.087 37.636.89 83.578.89h156.816v10.137c0 86.171-69.936 156.035-156.219 156.035h-.597c-45.942 0-83.184-37.198-83.184-83.086' fill='%23DEE0EA'/%3E%3C/svg%3E"),
152-
url("data:image/svg+xml,%3Csvg width='49' height='71' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24.394 70.828c13.384 0 24.233-10.862 24.233-24.262V.828h-2.956C20.538.828.161 21.226.161 46.392v.174c0 13.4 10.849 24.262 24.233 24.262' fill='%23D20050'/%3E%3C/svg%3E"),
153-
url("data:image/svg+xml,%3Csvg width='153' height='77' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M91.444 76.101H-.097c32.615-20.469 66.516-40.706 95.502-64.273C157.823-34.687 186 76.267 91.445 76.1z' fill='%231E70B7'/%3E%3C/svg%3E");
154-
background-size: 7.1rem 7.5rem,
155-
13.7rem 14.6rem,
156-
12.9rem 9.4rem,
157-
24.1rem 16.8rem,
158-
4.9rem 7.1rem,
159-
15.3rem 7.7rem;
160-
background-position:top 49.5rem left 0,
161-
top 20.7rem left 13.1rem,
162-
top 8.4rem left 53.5rem,
163-
top -10rem left 57.8rem,
164-
top 50.5rem left 61.6rem,
165-
top 49.2rem left 88.5rem;
155+
background-image: url("data:image/svg+xml,%3Csvg width='71' height='75' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M35.696 75h.003c19.367 0 35.066-15.5 35.066-34.622V0c-2.742 3.014-8.247 5.58-19.422 5.754H35.696C16.33 5.754.63 21.254.63 40.378.63 59.499 16.33 75 35.696 75' fill='%231D71B8'/%3E%3C/svg%3E"),
156+
url("data:image/svg+xml,%3Csvg width='137' height='146' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M68.506.303h.004c37.443 0 67.796 29.968 67.796 66.936v78.064c-5.301-5.828-15.944-10.789-37.55-11.125h-30.25C31.063 134.178.711 104.21.711 67.239.711 30.271 31.063.303 68.506.303' fill='%23D20050'/%3E%3C/svg%3E"),
157+
url("data:image/svg+xml,%3Csvg width='129' height='94' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17.14 93.346H.626c20.29-12.733 32.123-33.39 35.739-51.209 5.452-26.912 20.89-41.3 45.448-41.3 25.853 0 46.813 20.708 46.813 46.256 0 25.545-20.96 46.253-46.813 46.253H17.14z' fill='%231E70B7'/%3E%3C/svg%3E"),
158+
url("data:image/svg+xml,%3Csvg width='241' height='168' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M.394 83.975C.394 38.087 37.636.89 83.578.89h156.816v10.137c0 86.171-69.936 156.035-156.219 156.035h-.597c-45.942 0-83.184-37.198-83.184-83.086' fill='%23DEE0EA'/%3E%3C/svg%3E"),
159+
url("data:image/svg+xml,%3Csvg width='49' height='71' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M24.394 70.828c13.384 0 24.233-10.862 24.233-24.262V.828h-2.956C20.538.828.161 21.226.161 46.392v.174c0 13.4 10.849 24.262 24.233 24.262' fill='%23D20050'/%3E%3C/svg%3E"),
160+
url("data:image/svg+xml,%3Csvg width='153' height='77' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M91.444 76.101H-.097c32.615-20.469 66.516-40.706 95.502-64.273C157.823-34.687 186 76.267 91.445 76.1z' fill='%231E70B7'/%3E%3C/svg%3E");
161+
background-size: 7.1rem 7.5rem,
162+
13.7rem 14.6rem,
163+
12.9rem 9.4rem,
164+
24.1rem 16.8rem,
165+
4.9rem 7.1rem,
166+
15.3rem 7.7rem;
167+
background-position: top 49.5rem left 0,
168+
top 20.7rem left 13.1rem,
169+
top 8.4rem left 53.5rem,
170+
top -10rem left 57.8rem,
171+
top 50.5rem left 61.6rem,
172+
top 49.2rem left 88.5rem;
166173
}
167174
}
168175

0 commit comments

Comments
 (0)