diff --git a/apps/infoalloggi/package.json b/apps/infoalloggi/package.json index b943af2..9031c7c 100644 --- a/apps/infoalloggi/package.json +++ b/apps/infoalloggi/package.json @@ -16,7 +16,7 @@ "stripe-dev": "stripe listen --forward-to https://localhost:3000/api/stripe-webhook", "test": " npm run lint && npm run types ", "types": "tsc --noEmit", - "analyze": "cross-env ANALYZE=true next build", + "analyze": "next experimental-analyze", "vitest": "vitest run", "flow": "ts-node flow-gen.ts", "unused-trpc": "ts-node check-unused-trpc.ts" diff --git a/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx b/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx index 7f4e523..4443bab 100644 --- a/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx +++ b/apps/infoalloggi/src/components/area-riservata/userViewHeader.tsx @@ -27,13 +27,12 @@ import { DialogTrigger, } from "~/components/ui/dialog"; import { Textarea } from "~/components/ui/textarea"; +import { WhatsAppIcon2 } from "~/components/whatsapp-svg"; import { useMediaQuery } from "~/hooks/use-media-query"; import { useUserViewContext } from "~/lib/userViewContext"; import { cn } from "~/lib/utils"; - import { api } from "~/utils/api"; import { Confirm } from "../confirm"; -import { WhatsAppIcon2 } from "../svgs"; import { Button } from "../ui/button"; import { Separator } from "../ui/separator"; diff --git a/apps/infoalloggi/src/components/flags-svg.tsx b/apps/infoalloggi/src/components/flags-svg.tsx new file mode 100644 index 0000000..3ba5564 --- /dev/null +++ b/apps/infoalloggi/src/components/flags-svg.tsx @@ -0,0 +1,67 @@ +import type { SVGProps } from "react"; + +export const EngFlag = (props: SVGProps) => ( + + EnglishFlag + + + + + +); + +export const ItaFlag = (props: SVGProps) => ( + + ItalianFlag + + + + +); diff --git a/apps/infoalloggi/src/components/footer.tsx b/apps/infoalloggi/src/components/footer.tsx index 0e29ada..8b994a1 100644 --- a/apps/infoalloggi/src/components/footer.tsx +++ b/apps/infoalloggi/src/components/footer.tsx @@ -1,6 +1,7 @@ import Link from "next/link"; import BlurryDivider from "~/components/blurry_divider"; -import { LogoSvg } from "~/components/svgs"; +import { LogoSvg } from "~/components/logo-svg"; + import { cn } from "~/lib/utils"; import { useTranslation } from "~/providers/I18nProvider"; diff --git a/apps/infoalloggi/src/components/hero-svg.tsx b/apps/infoalloggi/src/components/hero-svg.tsx new file mode 100644 index 0000000..98b8a9b --- /dev/null +++ b/apps/infoalloggi/src/components/hero-svg.tsx @@ -0,0 +1,393 @@ +import type { SVGProps } from "react"; + +export const HeroSvg = (props: SVGProps) => ( + + Infoalloggi.it + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +); diff --git a/apps/infoalloggi/src/components/loading.tsx b/apps/infoalloggi/src/components/loading.tsx index e87d0a1..3ef3cc4 100644 --- a/apps/infoalloggi/src/components/loading.tsx +++ b/apps/infoalloggi/src/components/loading.tsx @@ -1,5 +1,6 @@ "use client"; -import { ASvg } from "~/components/svgs"; + +import { ASvg } from "~/components/logo-svg"; export const LoadingPage = () => { return ( diff --git a/apps/infoalloggi/src/components/logo-svg.tsx b/apps/infoalloggi/src/components/logo-svg.tsx new file mode 100644 index 0000000..3822f9f --- /dev/null +++ b/apps/infoalloggi/src/components/logo-svg.tsx @@ -0,0 +1,111 @@ +import type { SVGProps } from "react"; + +export const ASvg = (props: SVGProps) => ( + + {"\u0410"} + + + + +); + +export const LogoSvg = (props: SVGProps) => ( + + {"Infolloggi.it "} + + + + + + + + {"Info"} + + + + + + + {"lloggi.it"} + + + + + + + +); diff --git a/apps/infoalloggi/src/components/navbar/lang-toggle.tsx b/apps/infoalloggi/src/components/navbar/lang-toggle.tsx index c972e50..bca91e8 100644 --- a/apps/infoalloggi/src/components/navbar/lang-toggle.tsx +++ b/apps/infoalloggi/src/components/navbar/lang-toggle.tsx @@ -3,7 +3,7 @@ import { add } from "date-fns"; import { useRouter } from "next/router"; import { useState } from "react"; import LoadingButton from "~/components/custom_ui/loading-button"; -import { EngFlag, ItaFlag } from "~/components/svgs"; +import { EngFlag, ItaFlag } from "~/components/flags-svg"; export const LangToggle = () => { const router = useRouter(); diff --git a/apps/infoalloggi/src/components/navbar/main-nav.tsx b/apps/infoalloggi/src/components/navbar/main-nav.tsx index 90f307c..33ed44a 100644 --- a/apps/infoalloggi/src/components/navbar/main-nav.tsx +++ b/apps/infoalloggi/src/components/navbar/main-nav.tsx @@ -1,5 +1,5 @@ import Link from "next/link"; -import { LogoSvg } from "~/components/svgs"; +import { LogoSvg } from "~/components/logo-svg"; import { cn } from "~/lib/utils"; import { useTranslation } from "~/providers/I18nProvider"; diff --git a/apps/infoalloggi/src/components/navbar/mobile-nav.tsx b/apps/infoalloggi/src/components/navbar/mobile-nav.tsx index 0ca7c52..0229d29 100644 --- a/apps/infoalloggi/src/components/navbar/mobile-nav.tsx +++ b/apps/infoalloggi/src/components/navbar/mobile-nav.tsx @@ -3,9 +3,9 @@ import Link, { type LinkProps } from "next/link"; import { useRouter } from "next/navigation"; import type { ReactNode } from "react"; import { IconMatrix } from "~/components/IconComponents"; +import { ASvg, LogoSvg } from "~/components/logo-svg"; import { LangToggle } from "~/components/navbar/lang-toggle"; import { UserHeaderSection } from "~/components/navbar/login-button"; -import { ASvg, LogoSvg } from "~/components/svgs"; import { Button } from "~/components/ui/button"; import { Separator } from "~/components/ui/separator"; import { diff --git a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx index 5fe35d8..ad3b4ee 100644 --- a/apps/infoalloggi/src/components/servizio/modale_contatti.tsx +++ b/apps/infoalloggi/src/components/servizio/modale_contatti.tsx @@ -2,6 +2,7 @@ import { CircleUser, Navigation, Phone, TriangleAlert } from "lucide-react"; import Link from "next/link"; import { useMemo, useState } from "react"; import toast from "react-hot-toast"; +import { WhatsAppIcon2 } from "~/components/whatsapp-svg"; import { useTranslation } from "~/providers/I18nProvider"; import { useServizio, useServizioAnnuncio } from "~/providers/ServizioProvider"; import type { UsersStorageUserStorageId } from "~/schemas/public/UsersStorage"; @@ -19,7 +20,6 @@ import { CredenzaTrigger, } from "../custom_ui/credenza"; import { LoadingPage } from "../loading"; -import { WhatsAppIcon2 } from "../svgs"; import { Button } from "../ui/button"; export const ContattiProprietarioModal = () => { diff --git a/apps/infoalloggi/src/components/svgs.tsx b/apps/infoalloggi/src/components/svgs.tsx index 095cf3c..ae37d90 100644 --- a/apps/infoalloggi/src/components/svgs.tsx +++ b/apps/infoalloggi/src/components/svgs.tsx @@ -1,573 +1,5 @@ import type { SVGProps } from "react"; -export const HeroSvg = (props: SVGProps) => ( - - Infoalloggi.it - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -); - -export const ASvg = (props: SVGProps) => ( - - {"\u0410"} - - - - -); - -export const LogoSvg = (props: SVGProps) => ( - - {"Infolloggi.it "} - - - - - - - - {"Info"} - - - - - - - {"lloggi.it"} - - - - - - - -); - -export const EngFlag = (props: SVGProps) => ( - - EnglishFlag - - - - - -); - -export const ItaFlag = (props: SVGProps) => ( - - ItalianFlag - - - - -); - export const MissingFile = ({ className }: { className?: string }) => ( ( ); -export const WhatsAppIcon2 = ({ className }: { className?: string }) => ( - - {"WhatsApp icon"} - - -); - -export const WhatsAppIcon = (props: SVGProps) => ( - - WhatsAppIcon - - - - -); /* export const GoogleMapsIcon = (props: SVGProps) => ( ( + + {"WhatsApp icon"} + + +); + +export const WhatsAppIcon = (props: SVGProps) => ( + + WhatsAppIcon + + + + +); diff --git a/apps/infoalloggi/src/pages/area-riservata/scheda-annuncio-stampa/[id].tsx b/apps/infoalloggi/src/pages/area-riservata/scheda-annuncio-stampa/[id].tsx index a60050f..e4609d9 100644 --- a/apps/infoalloggi/src/pages/area-riservata/scheda-annuncio-stampa/[id].tsx +++ b/apps/infoalloggi/src/pages/area-riservata/scheda-annuncio-stampa/[id].tsx @@ -4,10 +4,11 @@ import Head from "next/head"; import toast from "react-hot-toast"; import { AreaRiservataLayout } from "~/components/Layout"; import { LoadingPage } from "~/components/loading"; +import { LogoSvg } from "~/components/logo-svg"; import { Status500 } from "~/components/status-page"; -import { LogoSvg, WhatsAppIcon } from "~/components/svgs"; import { Button } from "~/components/ui/button"; import { Card } from "~/components/ui/card"; +import { WhatsAppIcon } from "~/components/whatsapp-svg"; import { replaceWithBr } from "~/lib/newlineToBr"; import { formatCurrency, redirectTo500 } from "~/lib/utils"; import type { NextPageWithLayout } from "~/pages/_app"; diff --git a/apps/infoalloggi/src/pages/index.tsx b/apps/infoalloggi/src/pages/index.tsx index 66f4dd4..ce1ea3c 100644 --- a/apps/infoalloggi/src/pages/index.tsx +++ b/apps/infoalloggi/src/pages/index.tsx @@ -6,8 +6,9 @@ import { AccordionComp } from "~/components/accordionComp"; import { AnniversaryBanner } from "~/components/banners"; import { CodiceBox } from "~/components/codiceRicerca"; import { ComeFunziona } from "~/components/expand_guida"; +import { HeroSvg } from "~/components/hero-svg"; +import { LogoSvg } from "~/components/logo-svg"; import { PricingChoice } from "~/components/prezzi"; -import { HeroSvg, LogoSvg } from "~/components/svgs"; import { Button } from "~/components/ui/button"; import { env } from "~/env"; import type { LangDict } from "~/i18n/locales";