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

Update app-card.js #1647

Merged
merged 3 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions components/donnees-nationales/app-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@ import PropTypes from 'prop-types'

const statusColors = {
'en cours de test': '#ECC94B',
'en réflexion': '#8d99ae',
default: '#E2E8F0',
'en réflexion': '#f4a259',
default: '#68D391',
}

const typeColors = {
'Non défini': '#ced4da',
API: '#68D391',
Téléchargement: '#a3cef1',
default: '#E2E8F0',
Géocodeur: '#70a0af'
}

const getStatusColor = status => statusColors?.[status] || statusColors.default
Expand Down
18 changes: 17 additions & 1 deletion pages/donnees-nationales/base-usages.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import Head from '@/components/head'
import Section from '@/components/section'
import SectionText from '@/components/section-text'
import AppCard from '@/components/donnees-nationales/app-card'
import ButtonLink from '@/components/button-link'

import appsDataSource from '@/data/partners/usecases-ban.json'

Expand Down Expand Up @@ -85,6 +86,17 @@ function BaseUsages() {
<div className='cards'>
{filteredApps.map(appDescription => <AppCard key={appDescription.id_application} {...appDescription} />)}
</div>
<Section title='Vous utilisez la Base Adresse Nationale ?'>
<SectionText>
<p>Faites nous part de votre usage et faites apparaître votre application sur cette page</p>
</SectionText>

<div className='centered'>
<ButtonLink href='mailto:[email protected]?subject=Ajout d‘un cas d‘usage - Base Adresse Nationale'>
Ajoutez votre application
</ButtonLink>
</div>
</Section>

<style jsx>{`
.container {
Expand All @@ -109,7 +121,11 @@ function BaseUsages() {
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 1rem;
}

.centered {
margin: 40px auto;
display: flex;
justify-content: center;
}
`}</style>
</div>
</Page>
Expand Down
Loading