SPB Git

Repository Public

icons.tsx 4.9 KB 180 lines tsx

1// Icônes architecturales de Lou-Ka : même géométrie que le symbole (montants2// droits, linteau, seuil), grille 24, trait 1,6. Les icônes universelles3// (recherche, fermer, retour, réglages) restent celles de Lucide.45import type { SVGProps } from "react";67type P = SVGProps<SVGSVGElement> & { size?: number };89function Base({ size = 20, children, ...rest }: P & { children: React.ReactNode }) {10  return (11    <svg12      viewBox="0 0 24 24"13      width={size}14      height={size}15      fill="none"16      stroke="currentColor"17      strokeWidth={1.6}18      strokeLinecap="round"19      strokeLinejoin="round"20      aria-hidden21      {...rest}22    >23      {children}24    </svg>25  );26}2728/** Porte fermée */29export const IconDoorClosed = (p: P) => (30  <Base {...p}>31    <path d="M6 21V4.5A1.5 1.5 0 0 1 7.5 3h9A1.5 1.5 0 0 1 18 4.5V21" />32    <path d="M3.5 21h17" />33    <path d="M14.5 12v1.2" />34  </Base>35);3637/** Porte ouverte (entrouverte vers l'intérieur) */38export const IconDoorOpen = (p: P) => (39  <Base {...p}>40    <path d="M6 21V4.5A1.5 1.5 0 0 1 7.5 3h9A1.5 1.5 0 0 1 18 4.5V21" />41    <path d="M7.6 4.6 14 6.2v12.4L7.6 20.6" />42    <path d="M3.5 21h17" />43    <path d="M11.6 12v1.2" />44  </Base>45);4647/** Entrée : une flèche franchit l'encadrement */48export const IconEntrance = (p: P) => (49  <Base {...p}>50    <path d="M9 21V4.5A1.5 1.5 0 0 1 10.5 3h7A1.5 1.5 0 0 1 19 4.5V21" />51    <path d="M3 12h9" />52    <path d="m9.5 9 3 3-3 3" />53    <path d="M6.5 21h15" />54  </Base>55);5657/** Seuil */58export const IconThreshold = (p: P) => (59  <Base {...p}>60    <path d="M7 17V5.5A1.5 1.5 0 0 1 8.5 4h7A1.5 1.5 0 0 1 17 5.5V17" />61    <path d="M3 17h18" />62    <path d="M5 20.5h14" />63  </Base>64);6566/** Appartement : un étage d'immeuble avec sa porte */67export const IconApartment = (p: P) => (68  <Base {...p}>69    <path d="M4 21V5.5A1.5 1.5 0 0 1 5.5 4h13A1.5 1.5 0 0 1 20 5.5V21" />70    <path d="M10 21v-5.5h4V21" />71    <path d="M8 8.5h2M14 8.5h2M8 12h2M14 12h2" />72    <path d="M2.5 21h19" />73  </Base>74);7576/** Maison */77export const IconHouse = (p: P) => (78  <Base {...p}>79    <path d="M4 10.5 12 4l8 6.5" />80    <path d="M6 9.2V21M18 9.2V21" />81    <path d="M10 21v-6.5h4V21" />82    <path d="M2.5 21h19" />83  </Base>84);8586/** Immeuble */87export const IconBuilding = (p: P) => (88  <Base {...p}>89    <path d="M5 21V4.5A1.5 1.5 0 0 1 6.5 3h7A1.5 1.5 0 0 1 15 4.5V21" />90    <path d="M15 10h3.5A1.5 1.5 0 0 1 20 11.5V21" />91    <path d="M8.5 7h3M8.5 10.5h3M8.5 14h3" />92    <path d="M9 21v-3.5h2V21" />93    <path d="M2.5 21h19" />94  </Base>95);9697/** Logement disponible : porte et coche */98export const IconAvailable = (p: P) => (99  <Base {...p}>100    <path d="M5 21V4.5A1.5 1.5 0 0 1 6.5 3h8A1.5 1.5 0 0 1 16 4.5V11" />101    <path d="M2.5 21h10" />102    <path d="m14.5 17.5 2.2 2.2 4.3-4.6" />103  </Base>104);105106/** Nouvelle annonce : porte et éclat */107export const IconNewListing = (p: P) => (108  <Base {...p}>109    <path d="M5 21V4.5A1.5 1.5 0 0 1 6.5 3h8A1.5 1.5 0 0 1 16 4.5V12" />110    <path d="M2.5 21h12" />111    <path d="M19 14.5v5M16.5 17h5" />112  </Base>113);114115/** Logement sauvegardé : porte et signet */116export const IconSaved = (p: P) => (117  <Base {...p}>118    <path d="M5 21V4.5A1.5 1.5 0 0 1 6.5 3h8A1.5 1.5 0 0 1 16 4.5V10" />119    <path d="M2.5 21h9.5" />120    <path d="M15.5 14h5v7l-2.5-1.8L15.5 21Z" />121  </Base>122);123124/** Visite : porte et regard */125export const IconVisit = (p: P) => (126  <Base {...p}>127    <path d="M5 21V4.5A1.5 1.5 0 0 1 6.5 3h8A1.5 1.5 0 0 1 16 4.5V10.5" />128    <path d="M2.5 21h8" />129    <path d="M12.5 17.5c1.2-2 2.8-3 4.5-3s3.3 1 4.5 3c-1.2 2-2.8 3-4.5 3s-3.3-1-4.5-3Z" />130    <circle cx="17" cy="17.5" r="1" />131  </Base>132);133134/** Quartier : trois façades */135export const IconNeighborhood = (p: P) => (136  <Base {...p}>137    <path d="M3 21V11l3.5-3L10 11v10" />138    <path d="M10 21V6.500A1.5 1.5 0 0 1 11.5 5h3A1.5 1.5 0 0 1 16 6.500V21" />139    <path d="M16 21v-8h3.5A1.5 1.5 0 0 1 21 14.500V21" />140    <path d="M1.5 21h21" />141    <path d="M6 21v-3h1V21M12.5 9h1M12.5 12.500h1" />142  </Base>143);144145/** Gestion immobilière : immeuble et clé */146export const IconManagement = (p: P) => (147  <Base {...p}>148    <path d="M4 21V4.500A1.5 1.5 0 0 1 5.5 3h7A1.5 1.5 0 0 1 14 4.500V10" />149    <path d="M7.5 7h3M7.5 10.500h3" />150    <path d="M2.5 21h8" />151    <circle cx="15" cy="17" r="2.5" />152    <path d="M17.5 17H22M20 17v2" />153  </Base>154);155156/** Clé */157export const IconKey = (p: P) => (158  <Base {...p}>159    <circle cx="7.5" cy="12" r="4" />160    <path d="M11.5 12H21M18 12v3.500M15 12v2.5" />161  </Base>162);163164export const LOUKA_ICONS = {165  "Porte fermée": IconDoorClosed,166  "Porte ouverte": IconDoorOpen,167  Entrée: IconEntrance,168  Seuil: IconThreshold,169  Appartement: IconApartment,170  Maison: IconHouse,171  Immeuble: IconBuilding,172  "Logement disponible": IconAvailable,173  "Nouvelle annonce": IconNewListing,174  "Logement sauvegardé": IconSaved,175  Visite: IconVisit,176  Quartier: IconNeighborhood,177  "Gestion immobilière": IconManagement,178  Clé: IconKey,179} as const;180
Files main
Menu

Theme