lerelais-front-library 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.cursor/skills/project-structure/SKILL.md +51 -0
- package/.cursor/skills/storybook-react/SKILL.md +60 -0
- package/.cursor/skills/testing-react/SKILL.md +52 -0
- package/README.md +93 -0
- package/index.html +18 -0
- package/package.json +34 -0
- package/src/App.css +49 -0
- package/src/App.tsx +366 -0
- package/src/assets/icons/alert-triangle.svg +7 -0
- package/src/assets/icons/arrow-right.svg +5 -0
- package/src/assets/icons/bell.svg +6 -0
- package/src/assets/icons/chevron-down.svg +5 -0
- package/src/assets/icons/chevron-right.svg +5 -0
- package/src/assets/icons/clock-muted.svg +10 -0
- package/src/assets/icons/clock.svg +11 -0
- package/src/assets/icons/close.svg +5 -0
- package/src/assets/icons/core-camera.svg +5 -0
- package/src/assets/icons/core-check-sm.svg +5 -0
- package/src/assets/icons/core-check-white.svg +5 -0
- package/src/assets/icons/core-check.svg +5 -0
- package/src/assets/icons/core-chevron.svg +5 -0
- package/src/assets/icons/core-dot.svg +3 -0
- package/src/assets/icons/core-lock-form.svg +5 -0
- package/src/assets/icons/core-lock.svg +5 -0
- package/src/assets/icons/core-map-pin.svg +5 -0
- package/src/assets/icons/core-package-lg.svg +5 -0
- package/src/assets/icons/core-package.svg +5 -0
- package/src/assets/icons/core-pin-info.svg +6 -0
- package/src/assets/icons/core-pin-value.svg +5 -0
- package/src/assets/icons/core-pin-white.svg +5 -0
- package/src/assets/icons/core-plus.svg +5 -0
- package/src/assets/icons/core-search-dark.svg +5 -0
- package/src/assets/icons/core-search.svg +5 -0
- package/src/assets/icons/core-store.svg +9 -0
- package/src/assets/icons/core-x.svg +5 -0
- package/src/assets/icons/heart.svg +5 -0
- package/src/assets/icons/logout.svg +7 -0
- package/src/assets/icons/map-pin.svg +5 -0
- package/src/assets/icons/package-read.svg +8 -0
- package/src/assets/icons/package-white.svg +8 -0
- package/src/assets/icons/package.svg +8 -0
- package/src/assets/icons/plus.svg +6 -0
- package/src/assets/icons/settings.svg +6 -0
- package/src/assets/icons/switch-off.svg +19 -0
- package/src/assets/icons/switch-on.svg +19 -0
- package/src/assets/icons/unread-dot.svg +3 -0
- package/src/assets/icons/upload-cloud.svg +5 -0
- package/src/assets/icons/user.svg +6 -0
- package/src/assets/icons.ts +41 -0
- package/src/components/Accordion/Accordion.module.css +34 -0
- package/src/components/Accordion/Accordion.test.tsx +20 -0
- package/src/components/Accordion/Accordion.tsx +38 -0
- package/src/components/Accordion/index.ts +1 -0
- package/src/components/ActionCard/ActionCard.module.css +50 -0
- package/src/components/ActionCard/ActionCard.test.tsx +15 -0
- package/src/components/ActionCard/ActionCard.tsx +33 -0
- package/src/components/ActionCard/index.ts +1 -0
- package/src/components/Alert/Alert.module.css +47 -0
- package/src/components/Alert/Alert.test.tsx +14 -0
- package/src/components/Alert/Alert.tsx +27 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/Avatar/Avatar.module.css +37 -0
- package/src/components/Avatar/Avatar.test.tsx +9 -0
- package/src/components/Avatar/Avatar.tsx +18 -0
- package/src/components/Avatar/index.ts +1 -0
- package/src/components/Badge/Badge.module.css +37 -0
- package/src/components/Badge/Badge.test.tsx +14 -0
- package/src/components/Badge/Badge.tsx +21 -0
- package/src/components/Badge/index.ts +1 -0
- package/src/components/BarChart/BarChart.module.css +57 -0
- package/src/components/BarChart/BarChart.test.tsx +18 -0
- package/src/components/BarChart/BarChart.tsx +47 -0
- package/src/components/BarChart/index.ts +1 -0
- package/src/components/BenefitsCard/BenefitsCard.module.css +44 -0
- package/src/components/BenefitsCard/BenefitsCard.test.tsx +10 -0
- package/src/components/BenefitsCard/BenefitsCard.tsx +33 -0
- package/src/components/BenefitsCard/index.ts +1 -0
- package/src/components/BottomNavItem/BottomNavItem.module.css +24 -0
- package/src/components/BottomNavItem/BottomNavItem.test.tsx +20 -0
- package/src/components/BottomNavItem/BottomNavItem.tsx +23 -0
- package/src/components/BottomNavItem/index.ts +1 -0
- package/src/components/Breadcrumb/Breadcrumb.module.css +31 -0
- package/src/components/Breadcrumb/Breadcrumb.test.tsx +29 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +36 -0
- package/src/components/Breadcrumb/index.ts +1 -0
- package/src/components/Button/Button.module.css +61 -0
- package/src/components/Button/Button.test.tsx +34 -0
- package/src/components/Button/Button.tsx +24 -0
- package/src/components/Button/index.ts +1 -0
- package/src/components/Checkbox/Checkbox.module.css +53 -0
- package/src/components/Checkbox/Checkbox.test.tsx +20 -0
- package/src/components/Checkbox/Checkbox.tsx +20 -0
- package/src/components/Checkbox/index.ts +1 -0
- package/src/components/ConfirmModal/ConfirmModal.module.css +69 -0
- package/src/components/ConfirmModal/ConfirmModal.test.tsx +25 -0
- package/src/components/ConfirmModal/ConfirmModal.tsx +50 -0
- package/src/components/ConfirmModal/index.ts +1 -0
- package/src/components/CoreButton/CoreButton.module.css +71 -0
- package/src/components/CoreButton/CoreButton.test.tsx +24 -0
- package/src/components/CoreButton/CoreButton.tsx +27 -0
- package/src/components/CoreButton/index.ts +1 -0
- package/src/components/CoreField/CoreField.module.css +31 -0
- package/src/components/CoreField/CoreField.test.tsx +15 -0
- package/src/components/CoreField/CoreField.tsx +18 -0
- package/src/components/CoreField/index.ts +1 -0
- package/src/components/CoreSelect/CoreSelect.module.css +37 -0
- package/src/components/CoreSelect/CoreSelect.test.tsx +22 -0
- package/src/components/CoreSelect/CoreSelect.tsx +29 -0
- package/src/components/CoreSelect/index.ts +1 -0
- package/src/components/CoreTabs/CoreTabs.module.css +41 -0
- package/src/components/CoreTabs/CoreTabs.test.tsx +18 -0
- package/src/components/CoreTabs/CoreTabs.tsx +67 -0
- package/src/components/CoreTabs/index.ts +1 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.module.css +61 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.test.tsx +37 -0
- package/src/components/DashboardParcelRow/DashboardParcelRow.tsx +41 -0
- package/src/components/DashboardParcelRow/index.ts +1 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.module.css +29 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.test.tsx +15 -0
- package/src/components/DataFiltersToolbar/DataFiltersToolbar.tsx +22 -0
- package/src/components/DataFiltersToolbar/index.ts +1 -0
- package/src/components/DataSearchBar/DataSearchBar.module.css +28 -0
- package/src/components/DataSearchBar/DataSearchBar.test.tsx +15 -0
- package/src/components/DataSearchBar/DataSearchBar.tsx +15 -0
- package/src/components/DataSearchBar/index.ts +1 -0
- package/src/components/DataTable/DataTable.module.css +57 -0
- package/src/components/DataTable/DataTable.test.tsx +12 -0
- package/src/components/DataTable/DataTable.tsx +67 -0
- package/src/components/DataTable/index.ts +1 -0
- package/src/components/Divider/Divider.module.css +29 -0
- package/src/components/Divider/Divider.test.tsx +9 -0
- package/src/components/Divider/Divider.tsx +21 -0
- package/src/components/Divider/index.ts +1 -0
- package/src/components/DropdownMenu/DropdownMenu.module.css +45 -0
- package/src/components/DropdownMenu/DropdownMenu.test.tsx +21 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +45 -0
- package/src/components/DropdownMenu/index.ts +1 -0
- package/src/components/EmptyState/EmptyState.module.css +52 -0
- package/src/components/EmptyState/EmptyState.test.tsx +20 -0
- package/src/components/EmptyState/EmptyState.tsx +33 -0
- package/src/components/EmptyState/index.ts +1 -0
- package/src/components/FaqItem/FaqItem.module.css +47 -0
- package/src/components/FaqItem/FaqItem.test.tsx +14 -0
- package/src/components/FaqItem/FaqItem.tsx +28 -0
- package/src/components/FaqItem/index.ts +1 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.module.css +83 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.test.tsx +37 -0
- package/src/components/FavoriteRelayCard/FavoriteRelayCard.tsx +58 -0
- package/src/components/FavoriteRelayCard/index.ts +1 -0
- package/src/components/FeatureCard/FeatureCard.module.css +62 -0
- package/src/components/FeatureCard/FeatureCard.test.tsx +10 -0
- package/src/components/FeatureCard/FeatureCard.tsx +30 -0
- package/src/components/FeatureCard/index.ts +1 -0
- package/src/components/FileUpload/FileUpload.module.css +41 -0
- package/src/components/FileUpload/FileUpload.test.tsx +22 -0
- package/src/components/FileUpload/FileUpload.tsx +26 -0
- package/src/components/FileUpload/index.ts +1 -0
- package/src/components/FilterPill/FilterPill.module.css +18 -0
- package/src/components/FilterPill/FilterPill.test.tsx +19 -0
- package/src/components/FilterPill/FilterPill.tsx +20 -0
- package/src/components/FilterPill/index.ts +1 -0
- package/src/components/Footer/Footer.module.css +57 -0
- package/src/components/Footer/Footer.test.tsx +10 -0
- package/src/components/Footer/Footer.tsx +63 -0
- package/src/components/Footer/index.ts +1 -0
- package/src/components/Icon/Icon.tsx +20 -0
- package/src/components/Icon/index.ts +1 -0
- package/src/components/InfoRow/InfoRow.module.css +33 -0
- package/src/components/InfoRow/InfoRow.test.tsx +9 -0
- package/src/components/InfoRow/InfoRow.tsx +21 -0
- package/src/components/InfoRow/index.ts +1 -0
- package/src/components/LinkButton/LinkButton.module.css +22 -0
- package/src/components/LinkButton/LinkButton.test.tsx +9 -0
- package/src/components/LinkButton/LinkButton.tsx +17 -0
- package/src/components/LinkButton/index.ts +1 -0
- package/src/components/LocationCard/LocationCard.module.css +61 -0
- package/src/components/LocationCard/LocationCard.test.tsx +9 -0
- package/src/components/LocationCard/LocationCard.tsx +27 -0
- package/src/components/LocationCard/index.ts +1 -0
- package/src/components/Logo/Logo.module.css +30 -0
- package/src/components/Logo/Logo.tsx +18 -0
- package/src/components/Logo/index.ts +1 -0
- package/src/components/MetricCard/MetricCard.module.css +27 -0
- package/src/components/MetricCard/MetricCard.test.tsx +10 -0
- package/src/components/MetricCard/MetricCard.tsx +19 -0
- package/src/components/MetricCard/index.ts +1 -0
- package/src/components/Navbar/Navbar.module.css +87 -0
- package/src/components/Navbar/Navbar.test.tsx +21 -0
- package/src/components/Navbar/Navbar.tsx +77 -0
- package/src/components/Navbar/index.ts +1 -0
- package/src/components/NotificationItem/NotificationItem.module.css +73 -0
- package/src/components/NotificationItem/NotificationItem.test.tsx +22 -0
- package/src/components/NotificationItem/NotificationItem.tsx +30 -0
- package/src/components/NotificationItem/index.ts +1 -0
- package/src/components/NotificationRow/NotificationRow.module.css +49 -0
- package/src/components/NotificationRow/NotificationRow.test.tsx +15 -0
- package/src/components/NotificationRow/NotificationRow.tsx +26 -0
- package/src/components/NotificationRow/index.ts +1 -0
- package/src/components/OutcomeModal/OutcomeModal.module.css +101 -0
- package/src/components/OutcomeModal/OutcomeModal.test.tsx +15 -0
- package/src/components/OutcomeModal/OutcomeModal.tsx +45 -0
- package/src/components/OutcomeModal/index.ts +1 -0
- package/src/components/Pagination/Pagination.module.css +27 -0
- package/src/components/Pagination/Pagination.test.tsx +25 -0
- package/src/components/Pagination/Pagination.tsx +41 -0
- package/src/components/Pagination/index.ts +1 -0
- package/src/components/ParcelCard/ParcelCard.module.css +34 -0
- package/src/components/ParcelCard/ParcelCard.test.tsx +17 -0
- package/src/components/ParcelCard/ParcelCard.tsx +21 -0
- package/src/components/ParcelCard/index.ts +1 -0
- package/src/components/ParcelRow/ParcelRow.module.css +25 -0
- package/src/components/ParcelRow/ParcelRow.test.tsx +18 -0
- package/src/components/ParcelRow/ParcelRow.tsx +31 -0
- package/src/components/ParcelRow/index.ts +1 -0
- package/src/components/ParcelTimeline/ParcelTimeline.module.css +68 -0
- package/src/components/ParcelTimeline/ParcelTimeline.test.tsx +17 -0
- package/src/components/ParcelTimeline/ParcelTimeline.tsx +33 -0
- package/src/components/ParcelTimeline/index.ts +1 -0
- package/src/components/PhotoUpload/PhotoUpload.module.css +39 -0
- package/src/components/PhotoUpload/PhotoUpload.test.tsx +16 -0
- package/src/components/PhotoUpload/PhotoUpload.tsx +29 -0
- package/src/components/PhotoUpload/index.ts +1 -0
- package/src/components/ProcessBadge/ProcessBadge.module.css +29 -0
- package/src/components/ProcessBadge/ProcessBadge.test.tsx +9 -0
- package/src/components/ProcessBadge/ProcessBadge.tsx +19 -0
- package/src/components/ProcessBadge/index.ts +1 -0
- package/src/components/ProgressBar/ProgressBar.module.css +56 -0
- package/src/components/ProgressBar/ProgressBar.test.tsx +18 -0
- package/src/components/ProgressBar/ProgressBar.tsx +33 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/QrScanner/QrScanner.module.css +50 -0
- package/src/components/QrScanner/QrScanner.test.tsx +20 -0
- package/src/components/QrScanner/QrScanner.tsx +27 -0
- package/src/components/QrScanner/index.ts +1 -0
- package/src/components/QuestionSearch/QuestionSearch.module.css +28 -0
- package/src/components/QuestionSearch/QuestionSearch.test.tsx +15 -0
- package/src/components/QuestionSearch/QuestionSearch.tsx +26 -0
- package/src/components/QuestionSearch/index.ts +1 -0
- package/src/components/QuickActionCard/QuickActionCard.module.css +31 -0
- package/src/components/QuickActionCard/QuickActionCard.test.tsx +20 -0
- package/src/components/QuickActionCard/QuickActionCard.tsx +22 -0
- package/src/components/QuickActionCard/index.ts +1 -0
- package/src/components/Radio/Radio.module.css +53 -0
- package/src/components/Radio/Radio.test.tsx +20 -0
- package/src/components/Radio/Radio.tsx +20 -0
- package/src/components/Radio/index.ts +1 -0
- package/src/components/RelayCard/RelayCard.module.css +38 -0
- package/src/components/RelayCard/RelayCard.test.tsx +22 -0
- package/src/components/RelayCard/RelayCard.tsx +31 -0
- package/src/components/RelayCard/index.ts +1 -0
- package/src/components/RelayResultCard/RelayResultCard.module.css +82 -0
- package/src/components/RelayResultCard/RelayResultCard.test.tsx +10 -0
- package/src/components/RelayResultCard/RelayResultCard.tsx +34 -0
- package/src/components/RelayResultCard/index.ts +1 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.module.css +102 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.test.tsx +16 -0
- package/src/components/ResetPasswordCard/ResetPasswordCard.tsx +45 -0
- package/src/components/ResetPasswordCard/index.ts +1 -0
- package/src/components/SearchBar/SearchBar.module.css +33 -0
- package/src/components/SearchBar/SearchBar.test.tsx +19 -0
- package/src/components/SearchBar/SearchBar.tsx +18 -0
- package/src/components/SearchBar/index.ts +1 -0
- package/src/components/Select/Select.module.css +64 -0
- package/src/components/Select/Select.test.tsx +24 -0
- package/src/components/Select/Select.tsx +60 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/ShipmentStatus/ShipmentStatus.module.css +41 -0
- package/src/components/ShipmentStatus/ShipmentStatus.test.tsx +14 -0
- package/src/components/ShipmentStatus/ShipmentStatus.tsx +52 -0
- package/src/components/ShipmentStatus/index.ts +1 -0
- package/src/components/Sidebar/Sidebar.module.css +79 -0
- package/src/components/Sidebar/Sidebar.test.tsx +21 -0
- package/src/components/Sidebar/Sidebar.tsx +98 -0
- package/src/components/Sidebar/index.ts +1 -0
- package/src/components/SidebarNavItem/SidebarNavItem.module.css +21 -0
- package/src/components/SidebarNavItem/SidebarNavItem.test.tsx +20 -0
- package/src/components/SidebarNavItem/SidebarNavItem.tsx +22 -0
- package/src/components/SidebarNavItem/index.ts +1 -0
- package/src/components/Skeleton/Skeleton.module.css +22 -0
- package/src/components/Skeleton/Skeleton.test.tsx +9 -0
- package/src/components/Skeleton/Skeleton.tsx +13 -0
- package/src/components/Skeleton/index.ts +1 -0
- package/src/components/StatCard/StatCard.module.css +22 -0
- package/src/components/StatCard/StatCard.test.tsx +9 -0
- package/src/components/StatCard/StatCard.tsx +19 -0
- package/src/components/StatCard/index.ts +1 -0
- package/src/components/StatusSummary/StatusSummary.module.css +43 -0
- package/src/components/StatusSummary/StatusSummary.test.tsx +9 -0
- package/src/components/StatusSummary/StatusSummary.tsx +32 -0
- package/src/components/StatusSummary/index.ts +1 -0
- package/src/components/StepCard/StepCard.module.css +48 -0
- package/src/components/StepCard/StepCard.test.tsx +9 -0
- package/src/components/StepCard/StepCard.tsx +27 -0
- package/src/components/StepCard/index.ts +1 -0
- package/src/components/Stepper/Stepper.module.css +66 -0
- package/src/components/Stepper/Stepper.test.tsx +20 -0
- package/src/components/Stepper/Stepper.tsx +39 -0
- package/src/components/Stepper/index.ts +1 -0
- package/src/components/StepsList/StepsList.module.css +35 -0
- package/src/components/StepsList/StepsList.test.tsx +10 -0
- package/src/components/StepsList/StepsList.tsx +24 -0
- package/src/components/StepsList/index.ts +1 -0
- package/src/components/SuccessFeedback/SuccessFeedback.module.css +42 -0
- package/src/components/SuccessFeedback/SuccessFeedback.test.tsx +9 -0
- package/src/components/SuccessFeedback/SuccessFeedback.tsx +21 -0
- package/src/components/SuccessFeedback/index.ts +1 -0
- package/src/components/Switch/Switch.module.css +57 -0
- package/src/components/Switch/Switch.test.tsx +20 -0
- package/src/components/Switch/Switch.tsx +22 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Tabs/Tabs.module.css +26 -0
- package/src/components/Tabs/Tabs.test.tsx +34 -0
- package/src/components/Tabs/Tabs.tsx +38 -0
- package/src/components/Tabs/index.ts +1 -0
- package/src/components/Tag/Tag.module.css +39 -0
- package/src/components/Tag/Tag.test.tsx +24 -0
- package/src/components/Tag/Tag.tsx +25 -0
- package/src/components/Tag/index.ts +1 -0
- package/src/components/TextField/TextField.module.css +55 -0
- package/src/components/TextField/TextField.test.tsx +24 -0
- package/src/components/TextField/TextField.tsx +37 -0
- package/src/components/TextField/index.ts +1 -0
- package/src/components/Toast/Toast.module.css +72 -0
- package/src/components/Toast/Toast.test.tsx +20 -0
- package/src/components/Toast/Toast.tsx +32 -0
- package/src/components/Toast/index.ts +1 -0
- package/src/components/Tooltip/Tooltip.module.css +37 -0
- package/src/components/Tooltip/Tooltip.test.tsx +22 -0
- package/src/components/Tooltip/Tooltip.tsx +20 -0
- package/src/components/Tooltip/index.ts +1 -0
- package/src/components/TrackingBadge/TrackingBadge.module.css +10 -0
- package/src/components/TrackingBadge/TrackingBadge.test.tsx +9 -0
- package/src/components/TrackingBadge/TrackingBadge.tsx +9 -0
- package/src/components/TrackingBadge/index.ts +1 -0
- package/src/components/TrackingCard/TrackingCard.module.css +128 -0
- package/src/components/TrackingCard/TrackingCard.test.tsx +10 -0
- package/src/components/TrackingCard/TrackingCard.tsx +58 -0
- package/src/components/TrackingCard/index.ts +1 -0
- package/src/components/TrackingSearch/TrackingSearch.module.css +35 -0
- package/src/components/TrackingSearch/TrackingSearch.test.tsx +15 -0
- package/src/components/TrackingSearch/TrackingSearch.tsx +24 -0
- package/src/components/TrackingSearch/index.ts +1 -0
- package/src/components/ValueCard/ValueCard.module.css +38 -0
- package/src/components/ValueCard/ValueCard.test.tsx +9 -0
- package/src/components/ValueCard/ValueCard.tsx +24 -0
- package/src/components/ValueCard/index.ts +1 -0
- package/src/lib/cn.ts +3 -0
- package/src/main.tsx +10 -0
- package/src/styles/global.css +36 -0
- package/src/styles/tokens.css +61 -0
- package/src/test/setup.ts +9 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.app.json +25 -0
- package/tsconfig.app.tsbuildinfo +1 -0
- package/tsconfig.json +7 -0
- package/tsconfig.node.json +18 -0
- package/tsconfig.node.tsbuildinfo +1 -0
- package/vite.config.ts +12 -0
- package/vitest.config.ts +22 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 16px;
|
|
5
|
+
width: 644px;
|
|
6
|
+
max-width: 100%;
|
|
7
|
+
padding: 24px;
|
|
8
|
+
border: 1px solid var(--color-border);
|
|
9
|
+
border-radius: var(--radius-lg);
|
|
10
|
+
background: #fff;
|
|
11
|
+
box-shadow: var(--shadow-card);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.top,
|
|
15
|
+
.bottom,
|
|
16
|
+
.middle,
|
|
17
|
+
.address,
|
|
18
|
+
.hours {
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
gap: 6px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.top,
|
|
25
|
+
.bottom {
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.top h3 {
|
|
30
|
+
margin: 0 0 4px;
|
|
31
|
+
font-size: 18px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.address,
|
|
35
|
+
.hours {
|
|
36
|
+
color: var(--color-text-secondary);
|
|
37
|
+
font-size: 13px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.middle {
|
|
41
|
+
gap: 16px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.distance,
|
|
45
|
+
.bottom li {
|
|
46
|
+
padding: 4px 10px;
|
|
47
|
+
border-radius: var(--radius-pill);
|
|
48
|
+
background: var(--color-primary-soft);
|
|
49
|
+
color: var(--color-primary);
|
|
50
|
+
font-size: 11px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.distance {
|
|
55
|
+
padding: 4px 8px;
|
|
56
|
+
border-radius: 6px;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.line {
|
|
61
|
+
width: 100%;
|
|
62
|
+
margin: 0;
|
|
63
|
+
border: 0;
|
|
64
|
+
border-top: 1px solid var(--color-border);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.bottom ul {
|
|
68
|
+
display: flex;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
gap: 6px;
|
|
71
|
+
margin: 0;
|
|
72
|
+
padding: 0;
|
|
73
|
+
list-style: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.bottom button {
|
|
77
|
+
border: 0;
|
|
78
|
+
background: transparent;
|
|
79
|
+
color: var(--color-primary);
|
|
80
|
+
font-size: 13px;
|
|
81
|
+
font-weight: 600;
|
|
82
|
+
cursor: pointer;
|
|
83
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
import { FavoriteRelayCard } from './FavoriteRelayCard';
|
|
4
|
+
|
|
5
|
+
describe('<FavoriteRelayCard>', () => {
|
|
6
|
+
it('should render the relay', () => {
|
|
7
|
+
render(
|
|
8
|
+
<FavoriteRelayCard
|
|
9
|
+
name="Épicerie Centrale"
|
|
10
|
+
address="12 rue de Charenton, Abidjan 12e"
|
|
11
|
+
distance="350m"
|
|
12
|
+
hours="Lun-Sam 08:00-21:00"
|
|
13
|
+
services={['Dépôt', 'Retrait']}
|
|
14
|
+
/>,
|
|
15
|
+
);
|
|
16
|
+
expect(screen.getByRole('heading', { name: 'Épicerie Centrale' })).toBeInTheDocument();
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('should call onDetail when the detail action is activated', async () => {
|
|
20
|
+
const user = userEvent.setup();
|
|
21
|
+
const onDetail = vi.fn();
|
|
22
|
+
render(
|
|
23
|
+
<FavoriteRelayCard
|
|
24
|
+
name="Épicerie Centrale"
|
|
25
|
+
address="Abidjan"
|
|
26
|
+
distance="350m"
|
|
27
|
+
hours="Lun-Sam"
|
|
28
|
+
services={['Dépôt']}
|
|
29
|
+
onDetail={onDetail}
|
|
30
|
+
/>,
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
await user.click(screen.getByRole('button', { name: 'Voir le détail →' }));
|
|
34
|
+
|
|
35
|
+
expect(onDetail).toHaveBeenCalledOnce();
|
|
36
|
+
});
|
|
37
|
+
});
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { cn } from '@/lib/cn';
|
|
2
|
+
import { Icon } from '@/components/Icon';
|
|
3
|
+
import styles from './FavoriteRelayCard.module.css';
|
|
4
|
+
|
|
5
|
+
export interface FavoriteRelayCardProps {
|
|
6
|
+
name: string;
|
|
7
|
+
address: string;
|
|
8
|
+
distance: string;
|
|
9
|
+
hours: string;
|
|
10
|
+
services: string[];
|
|
11
|
+
detailLabel?: string;
|
|
12
|
+
onDetail?: () => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function FavoriteRelayCard({
|
|
17
|
+
name,
|
|
18
|
+
address,
|
|
19
|
+
distance,
|
|
20
|
+
hours,
|
|
21
|
+
services,
|
|
22
|
+
detailLabel = 'Voir le détail →',
|
|
23
|
+
onDetail,
|
|
24
|
+
className,
|
|
25
|
+
}: FavoriteRelayCardProps) {
|
|
26
|
+
return (
|
|
27
|
+
<article className={cn(styles.card, className)}>
|
|
28
|
+
<div className={styles.top}>
|
|
29
|
+
<div>
|
|
30
|
+
<h3>{name}</h3>
|
|
31
|
+
<p className={styles.address}>
|
|
32
|
+
<Icon name="mapPin" size={14} />
|
|
33
|
+
{address}
|
|
34
|
+
</p>
|
|
35
|
+
</div>
|
|
36
|
+
<Icon name="heart" size={20} />
|
|
37
|
+
</div>
|
|
38
|
+
<div className={styles.middle}>
|
|
39
|
+
<span className={styles.distance}>{distance}</span>
|
|
40
|
+
<span className={styles.hours}>
|
|
41
|
+
<Icon name="clockMuted" size={14} />
|
|
42
|
+
{hours}
|
|
43
|
+
</span>
|
|
44
|
+
</div>
|
|
45
|
+
<hr className={styles.line} />
|
|
46
|
+
<div className={styles.bottom}>
|
|
47
|
+
<ul>
|
|
48
|
+
{services.map((service) => (
|
|
49
|
+
<li key={service}>{service}</li>
|
|
50
|
+
))}
|
|
51
|
+
</ul>
|
|
52
|
+
<button type="button" onClick={onDetail}>
|
|
53
|
+
{detailLabel}
|
|
54
|
+
</button>
|
|
55
|
+
</div>
|
|
56
|
+
</article>
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FavoriteRelayCard, type FavoriteRelayCardProps } from './FavoriteRelayCard';
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
.card {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
align-items: flex-start;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 384px;
|
|
7
|
+
padding: 32px;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
border: 1px solid #edf0f2;
|
|
10
|
+
border-radius: 16px;
|
|
11
|
+
background: #fff;
|
|
12
|
+
box-shadow:
|
|
13
|
+
0 6px 16px -2px rgb(16 24 40 / 6%),
|
|
14
|
+
0 1px 3px rgb(16 24 40 / 4%);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.icon {
|
|
18
|
+
display: grid;
|
|
19
|
+
place-items: center;
|
|
20
|
+
width: 48px;
|
|
21
|
+
height: 48px;
|
|
22
|
+
border-radius: 12px;
|
|
23
|
+
background: #fcf2f5;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.title {
|
|
27
|
+
margin: 16px 0 0;
|
|
28
|
+
color: #191d26;
|
|
29
|
+
font-size: 18px;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 24px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.description {
|
|
35
|
+
margin: 8px 0 0;
|
|
36
|
+
color: #6b7486;
|
|
37
|
+
font-size: 14px;
|
|
38
|
+
line-height: 22px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.metric {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 8px;
|
|
45
|
+
width: 100%;
|
|
46
|
+
margin-top: 24px;
|
|
47
|
+
padding-top: 16px;
|
|
48
|
+
border-top: 1px solid #f0f2f5;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.metric span:first-child {
|
|
52
|
+
color: #d34860;
|
|
53
|
+
font-size: 22px;
|
|
54
|
+
font-weight: 700;
|
|
55
|
+
line-height: 28px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.metric span:last-child {
|
|
59
|
+
color: #6b7486;
|
|
60
|
+
font-size: 13px;
|
|
61
|
+
line-height: 18px;
|
|
62
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { FeatureCard } from './FeatureCard';
|
|
3
|
+
|
|
4
|
+
describe('<FeatureCard>', () => {
|
|
5
|
+
it('should render the metric', () => {
|
|
6
|
+
render(<FeatureCard />);
|
|
7
|
+
expect(screen.getByRole('heading', { name: '+ de trafic' })).toBeInTheDocument();
|
|
8
|
+
expect(screen.getByText('+30%')).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import store from '@/assets/icons/core-store.svg';
|
|
2
|
+
import styles from './FeatureCard.module.css';
|
|
3
|
+
|
|
4
|
+
export interface FeatureCardProps {
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
metric?: string;
|
|
8
|
+
caption?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function FeatureCard({
|
|
12
|
+
title = '+ de trafic',
|
|
13
|
+
description = 'Attirez de nouveaux clients dans votre commerce grâce aux dépôts et retraits de colis quotidiens.',
|
|
14
|
+
metric = '+30%',
|
|
15
|
+
caption = 'de passage en plus',
|
|
16
|
+
}: FeatureCardProps) {
|
|
17
|
+
return (
|
|
18
|
+
<article className={styles.card}>
|
|
19
|
+
<span className={styles.icon}>
|
|
20
|
+
<img src={store} alt="" width={24} height={24} />
|
|
21
|
+
</span>
|
|
22
|
+
<h3 className={styles.title}>{title}</h3>
|
|
23
|
+
<p className={styles.description}>{description}</p>
|
|
24
|
+
<div className={styles.metric}>
|
|
25
|
+
<span>{metric}</span>
|
|
26
|
+
<span>{caption}</span>
|
|
27
|
+
</div>
|
|
28
|
+
</article>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FeatureCard, type FeatureCardProps } from './FeatureCard';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
.zone {
|
|
2
|
+
position: relative;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
gap: 12px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 136px;
|
|
10
|
+
padding: 24px;
|
|
11
|
+
border: 1.5px dashed var(--color-border-strong);
|
|
12
|
+
border-radius: var(--radius-control);
|
|
13
|
+
background: var(--color-surface-muted);
|
|
14
|
+
text-align: center;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.prompt {
|
|
19
|
+
color: var(--color-text-secondary);
|
|
20
|
+
font-size: 14px;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.prompt span {
|
|
25
|
+
color: var(--color-primary);
|
|
26
|
+
font-weight: 600;
|
|
27
|
+
text-decoration: underline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.hint {
|
|
31
|
+
color: var(--color-text-muted);
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.input {
|
|
36
|
+
position: absolute;
|
|
37
|
+
width: 1px;
|
|
38
|
+
height: 1px;
|
|
39
|
+
overflow: hidden;
|
|
40
|
+
clip: rect(0 0 0 0);
|
|
41
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
import { FileUpload } from './FileUpload';
|
|
4
|
+
|
|
5
|
+
describe('<FileUpload>', () => {
|
|
6
|
+
it('should render the browse prompt', () => {
|
|
7
|
+
render(<FileUpload aria-label="Ajouter un fichier" />);
|
|
8
|
+
expect(screen.getByText(/Glissez vos fichiers/)).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it('should accept a selected file', async () => {
|
|
12
|
+
const user = userEvent.setup();
|
|
13
|
+
render(<FileUpload aria-label="Ajouter un fichier" />);
|
|
14
|
+
const input = screen.getByLabelText('Ajouter un fichier');
|
|
15
|
+
const file = new File(['colis'], 'bordereau.pdf', { type: 'application/pdf' });
|
|
16
|
+
|
|
17
|
+
await user.upload(input, file);
|
|
18
|
+
|
|
19
|
+
expect(input).toBeInstanceOf(HTMLInputElement);
|
|
20
|
+
expect((input as HTMLInputElement).files?.[0]?.name).toBe('bordereau.pdf');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { cn } from '@/lib/cn';
|
|
3
|
+
import { Icon } from '@/components/Icon';
|
|
4
|
+
import styles from './FileUpload.module.css';
|
|
5
|
+
|
|
6
|
+
export interface FileUploadProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
7
|
+
hint?: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export function FileUpload({
|
|
12
|
+
hint = 'Formats acceptés: PDF, PNG, JPG (max. 10 Mo)',
|
|
13
|
+
className,
|
|
14
|
+
...props
|
|
15
|
+
}: FileUploadProps) {
|
|
16
|
+
return (
|
|
17
|
+
<label className={cn(styles.zone, className)}>
|
|
18
|
+
<Icon name="uploadCloud" size={32} />
|
|
19
|
+
<p className={styles.prompt}>
|
|
20
|
+
Glissez vos fichiers ici ou <span>parcourir</span>
|
|
21
|
+
</p>
|
|
22
|
+
<p className={styles.hint}>{hint}</p>
|
|
23
|
+
<input className={styles.input} type="file" {...props} />
|
|
24
|
+
</label>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FileUpload, type FileUploadProps } from './FileUpload';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.pill {
|
|
2
|
+
padding: 8px 14px;
|
|
3
|
+
border: 1px solid #d34860;
|
|
4
|
+
border-radius: 999px;
|
|
5
|
+
background: #fff;
|
|
6
|
+
color: #d34860;
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
font-family: inherit;
|
|
9
|
+
font-size: 13px;
|
|
10
|
+
font-weight: 600;
|
|
11
|
+
line-height: 1.3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.active {
|
|
15
|
+
border-color: #d34860;
|
|
16
|
+
background: #d34860;
|
|
17
|
+
color: #fff;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import userEvent from '@testing-library/user-event';
|
|
3
|
+
import { FilterPill } from './FilterPill';
|
|
4
|
+
|
|
5
|
+
describe('<FilterPill>', () => {
|
|
6
|
+
it('should call onClick when pressed', async () => {
|
|
7
|
+
const user = userEvent.setup();
|
|
8
|
+
const onClick = vi.fn();
|
|
9
|
+
render(
|
|
10
|
+
<FilterPill active onClick={onClick}>
|
|
11
|
+
Ouvert maintenant
|
|
12
|
+
</FilterPill>,
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
await user.click(screen.getByRole('button', { name: 'Ouvert maintenant' }));
|
|
16
|
+
|
|
17
|
+
expect(onClick).toHaveBeenCalledOnce();
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ButtonHTMLAttributes } from 'react';
|
|
2
|
+
import { cn } from '@/lib/cn';
|
|
3
|
+
import styles from './FilterPill.module.css';
|
|
4
|
+
|
|
5
|
+
export interface FilterPillProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
|
+
active?: boolean;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function FilterPill({ active = false, className, type = 'button', children, ...props }: FilterPillProps) {
|
|
10
|
+
return (
|
|
11
|
+
<button
|
|
12
|
+
type={type}
|
|
13
|
+
aria-pressed={active}
|
|
14
|
+
className={cn(styles.pill, active && styles.active, className)}
|
|
15
|
+
{...props}
|
|
16
|
+
>
|
|
17
|
+
{children}
|
|
18
|
+
</button>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { FilterPill, type FilterPillProps } from './FilterPill';
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.footer {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
gap: 32px;
|
|
6
|
+
padding: 60px 96px;
|
|
7
|
+
background: var(--color-surface-muted);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.brand {
|
|
11
|
+
width: 310px;
|
|
12
|
+
max-width: 100%;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.logo {
|
|
16
|
+
display: flex;
|
|
17
|
+
align-items: baseline;
|
|
18
|
+
gap: 8px;
|
|
19
|
+
margin-bottom: 10px;
|
|
20
|
+
color: var(--color-primary);
|
|
21
|
+
font-size: 22px;
|
|
22
|
+
font-weight: 700;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.logo span {
|
|
26
|
+
font-size: 26px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tagline,
|
|
30
|
+
.copy,
|
|
31
|
+
.column a {
|
|
32
|
+
color: var(--color-text-secondary);
|
|
33
|
+
font-size: 13px;
|
|
34
|
+
line-height: 1.25;
|
|
35
|
+
text-decoration: none;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.tagline {
|
|
39
|
+
max-width: 280px;
|
|
40
|
+
font-size: 14px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.column {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 11px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.title {
|
|
50
|
+
color: var(--color-text);
|
|
51
|
+
font-size: 14px;
|
|
52
|
+
font-weight: 600;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.copy {
|
|
56
|
+
font-size: 11px;
|
|
57
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { Footer } from './Footer';
|
|
3
|
+
|
|
4
|
+
describe('<Footer>', () => {
|
|
5
|
+
it('should render the service links', () => {
|
|
6
|
+
render(<Footer />);
|
|
7
|
+
expect(screen.getByRole('link', { name: 'Suivre un colis' })).toBeInTheDocument();
|
|
8
|
+
expect(screen.getByText(/© 2026 LeRelais/)).toBeInTheDocument();
|
|
9
|
+
});
|
|
10
|
+
});
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { cn } from '@/lib/cn';
|
|
2
|
+
import styles from './Footer.module.css';
|
|
3
|
+
|
|
4
|
+
export interface FooterColumn {
|
|
5
|
+
title: string;
|
|
6
|
+
links: Array<{ label: string; href: string }>;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface FooterProps {
|
|
10
|
+
columns?: FooterColumn[];
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const DEFAULT_COLUMNS: FooterColumn[] = [
|
|
15
|
+
{
|
|
16
|
+
title: 'Services',
|
|
17
|
+
links: [
|
|
18
|
+
{ label: 'Envoyer un colis', href: '#envoyer' },
|
|
19
|
+
{ label: 'Suivre un colis', href: '#suivre' },
|
|
20
|
+
{ label: 'Trouver un relais', href: '#relais' },
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: 'Partenaires',
|
|
25
|
+
links: [
|
|
26
|
+
{ label: 'Devenir point relais', href: '#devenir' },
|
|
27
|
+
{ label: 'Entreprises', href: '#entreprises' },
|
|
28
|
+
{ label: 'Documentation API', href: '#api' },
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: 'LeRelais',
|
|
33
|
+
links: [
|
|
34
|
+
{ label: 'À propos', href: '#apropos' },
|
|
35
|
+
{ label: 'Aide & contact', href: '#aide' },
|
|
36
|
+
{ label: 'Mentions légales', href: '#mentions' },
|
|
37
|
+
],
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
|
|
41
|
+
export function Footer({ columns = DEFAULT_COLUMNS, className }: FooterProps) {
|
|
42
|
+
return (
|
|
43
|
+
<footer className={cn(styles.footer, className)}>
|
|
44
|
+
<div className={styles.brand}>
|
|
45
|
+
<p className={styles.logo}>
|
|
46
|
+
<span>R</span> LeRelais
|
|
47
|
+
</p>
|
|
48
|
+
<p className={styles.tagline}>Le point relais simple pour envoyer, suivre et recevoir vos colis.</p>
|
|
49
|
+
</div>
|
|
50
|
+
{columns.map((column) => (
|
|
51
|
+
<nav key={column.title} className={styles.column} aria-label={column.title}>
|
|
52
|
+
<p className={styles.title}>{column.title}</p>
|
|
53
|
+
{column.links.map((link) => (
|
|
54
|
+
<a key={link.label} href={link.href}>
|
|
55
|
+
{link.label}
|
|
56
|
+
</a>
|
|
57
|
+
))}
|
|
58
|
+
</nav>
|
|
59
|
+
))}
|
|
60
|
+
<p className={styles.copy}>© 2026 LeRelais — Livraison de proximité.</p>
|
|
61
|
+
</footer>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Footer, type FooterProps, type FooterColumn } from './Footer';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { icons, type IconName } from '@/assets/icons';
|
|
2
|
+
|
|
3
|
+
export interface IconProps {
|
|
4
|
+
name: IconName;
|
|
5
|
+
/** Taille affichée, en pixels. Laisse la taille native du fichier si absente. */
|
|
6
|
+
size?: number;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function Icon({ name, size, className }: IconProps) {
|
|
11
|
+
return (
|
|
12
|
+
<img
|
|
13
|
+
className={className}
|
|
14
|
+
src={icons[name]}
|
|
15
|
+
alt=""
|
|
16
|
+
width={size}
|
|
17
|
+
height={size}
|
|
18
|
+
/>
|
|
19
|
+
);
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon, type IconProps } from './Icon';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
.row {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: flex-start;
|
|
4
|
+
gap: 12px;
|
|
5
|
+
width: 100%;
|
|
6
|
+
max-width: 736px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.icon {
|
|
10
|
+
display: grid;
|
|
11
|
+
place-items: center;
|
|
12
|
+
width: 32px;
|
|
13
|
+
height: 32px;
|
|
14
|
+
border-radius: 8px;
|
|
15
|
+
background: #f7f8fa;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.row p {
|
|
19
|
+
margin: 0;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.row p:first-child {
|
|
23
|
+
color: #6b7080;
|
|
24
|
+
font-size: 12px;
|
|
25
|
+
font-weight: 500;
|
|
26
|
+
line-height: 16px;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.row p:last-child {
|
|
30
|
+
color: #191d26;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { render, screen } from '@testing-library/react';
|
|
2
|
+
import { InfoRow } from './InfoRow';
|
|
3
|
+
|
|
4
|
+
describe('<InfoRow>', () => {
|
|
5
|
+
it('should render the address', () => {
|
|
6
|
+
render(<InfoRow />);
|
|
7
|
+
expect(screen.getByText('12 rue de Charenton, Abidjan 12e')).toBeInTheDocument();
|
|
8
|
+
});
|
|
9
|
+
});
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import pin from '@/assets/icons/core-pin-info.svg';
|
|
2
|
+
import styles from './InfoRow.module.css';
|
|
3
|
+
|
|
4
|
+
export interface InfoRowProps {
|
|
5
|
+
label?: string;
|
|
6
|
+
value?: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function InfoRow({ label = 'Adresse', value = '12 rue de Charenton, Abidjan 12e' }: InfoRowProps) {
|
|
10
|
+
return (
|
|
11
|
+
<div className={styles.row}>
|
|
12
|
+
<span className={styles.icon}>
|
|
13
|
+
<img src={pin} alt="" width={16} height={16} />
|
|
14
|
+
</span>
|
|
15
|
+
<div>
|
|
16
|
+
<p>{label}</p>
|
|
17
|
+
<p>{value}</p>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InfoRow, type InfoRowProps } from './InfoRow';
|