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

add: sections in config for homepage customization #491

Merged
merged 9 commits into from
Aug 5, 2024

Conversation

geoffreyaldebert
Copy link
Contributor

@geoffreyaldebert geoffreyaldebert commented Jul 25, 2024

  • Ajout de la propriété sections dans la config pour pouvoir éditorialiser la homepage en fonction des différents besoins. Cette propriété est structurée de la manière suivante :
    sections:
      - title: # Titre de la section
        content: # Contenu de la section, en markdown
        sub_section_datasets: # possibilité d'ajouter des cartes datasets dans une section
        sub_section_cards: # possibilité d'ajouter des cartes DSFR dans une section
        sub_section_tiles: # possibilité d'ajouter des tiles DSFR dans une section
        sub_section_buttons: # possibilité d'ajouter des boutons DSFR dans une section
      - title: ...
        content: ...
        sub_section_datasets: ...
        sub_section_cards: ...
        sub_section_tiles: ...
        sub_section_buttons: ...

Usage structure sub_section_datasets :

sub_section_datasets:
    title: "Jeux de données"
    datasets:
        - "5b7ffc618b4c4169d30727e0"
        - "621df2954fa5a3b5a023e23c"

Usage structure sub_section_cards :

sub_section_cards:
  title: Section cartes
  cards:
    - id: '660ac80b9e9351349f5c1f14'
      name: 'Tarification cantine des collèges et lycées'
      description: 'Départements et régions, simplifiez...'
      url: 'bouquets/tarification-cantine-des-colleges-et-lycees'
      image_url: '/simplification/assets/tarification_cantine.jpg'
    - id: '660ac8ab8fd1a813e28cecd2'
      name: 'Portail famille des communes'
      description: "Communes et intercommunalités, simplifiez ..."
      url: 'bouquets/portail-famille'
      image_url: 'https://super.image.com'

Usage structure sub_section_tiles :

sub_section_tiles:
  title: Section tiles
  tiles:
    - id: '6571f26dc009674feb726be9'
      name: 'Données climatologiques de base'
      description: 'Données climatologiques pour toutes les stations françaises.'
      url: 'datasets?topic=6571f26dc009674feb726be9'
    - id: '6571f2db0273fc306408f265'
      name: 'Données climatologiques de référence pour le changement climatique'
      description: 'Données recommandées par Météo-France pour réaliser des diagnostics et études climatiques.'

Usage structure sub_section_buttons :

sub_section_buttons:
  - name: "Tous les cas d'usages de particuliers"
    url: 'bouquets?theme=Administrations&subtheme=Particuliers'
    class: 'fr-btn fr-btn--icon-left fr-btn--lg fr-icon-checkbox-circle-fill'
  - name: 'Pas de service informatique ? Découvrir les solutions clé en main'
    url: 'bouquets?theme=Administrations&subtheme=Particuliers'
    class: 'fr-btn fr-btn--icon-left fr-btn--lg fr-icon-checkbox-circle-fill fr-btn--secondary'
  • Premier draft d'une config pour le futur site simplification.data.gouv.fr
  • Remise à niveau des verticales meteo et defis
  • Suppression des composants non utilisés HomeTopics HomeButtons HomeCharts
  • Renommage des propriétés de config list_highlighted_topics en list_search_topics et url_highlighted_topics en url_search_topics et suppression de la propriété plus utile type_highlighted_topics

Les sections permettent d'avoir une vraie main sur la customization d'une homepage :
image

Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for ecospheres ready!

Name Link
🔨 Latest commit 3b4f3bd
🔍 Latest deploy log https://app.netlify.com/sites/ecospheres/deploys/66a2444d1d49b70008791cdc
😎 Deploy Preview https://deploy-preview-491--ecospheres.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for meteo-france ready!

Name Link
🔨 Latest commit 6b3548f
🔍 Latest deploy log https://app.netlify.com/sites/meteo-france/deploys/66abb70444b3d50008b955b7
😎 Deploy Preview https://deploy-preview-491--meteo-france.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

netlify bot commented Jul 25, 2024

Deploy Preview for ecospheres ready!

Name Link
🔨 Latest commit 6b3548f
🔍 Latest deploy log https://app.netlify.com/sites/ecospheres/deploys/66abb704ef1c930008b63aa4
😎 Deploy Preview https://deploy-preview-491--ecospheres.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@geoffreyaldebert geoffreyaldebert requested a review from abulte July 25, 2024 13:32
@geoffreyaldebert geoffreyaldebert requested a review from streino July 25, 2024 13:39
Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

configs/simplification/config.yaml Outdated Show resolved Hide resolved
configs/simplification/config.yaml Outdated Show resolved Hide resolved
public/simplification/assets/marches.png Outdated Show resolved Hide resolved
public/simplification/pages/accessibility.md Outdated Show resolved Hide resolved
src/components/sections/SubSectionButtons.vue Outdated Show resolved Hide resolved
src/components/sections/SubSectionTiles.vue Outdated Show resolved Hide resolved
src/components/sections/SubSectionButtons.vue Outdated Show resolved Hide resolved
src/custom/defis/routes.ts Show resolved Hide resolved
src/store/DatasetStore.ts Outdated Show resolved Hide resolved
src/store/DatasetStore.ts Outdated Show resolved Hide resolved
@geoffreyaldebert geoffreyaldebert requested a review from abulte August 1, 2024 16:27
@geoffreyaldebert
Copy link
Contributor Author

another round @abulte ? 😉

Copy link
Contributor

@abulte abulte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

Un "squash and merge" serait bienvenue pour se débarrasser de la grosse image dans l'historique je crois.

src/store/DatasetStore.ts Show resolved Hide resolved
@geoffreyaldebert
Copy link
Contributor Author

🚀

@geoffreyaldebert geoffreyaldebert merged commit d650f55 into main Aug 5, 2024
7 checks passed
@geoffreyaldebert geoffreyaldebert deleted the feat/homepage-sections branch August 5, 2024 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants