pipesol-notificationbar 1.0.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/README.md +30 -0
- package/dist/app/layout.d.ts +6 -0
- package/dist/app/layout.js +19 -0
- package/dist/app/layout.js.map +1 -0
- package/dist/app/page.d.ts +1 -0
- package/dist/app/page.js +6 -0
- package/dist/app/page.js.map +1 -0
- package/dist/components/ImageResponsive.d.ts +13 -0
- package/dist/components/ImageResponsive.js +32 -0
- package/dist/components/ImageResponsive.js.map +1 -0
- package/dist/components/Location.d.ts +15 -0
- package/dist/components/Location.js +37 -0
- package/dist/components/Location.js.map +1 -0
- package/dist/components/MensagemDeploy.d.ts +7 -0
- package/dist/components/MensagemDeploy.js +54 -0
- package/dist/components/MensagemDeploy.js.map +1 -0
- package/dist/components/NotificationBar.d.ts +16 -0
- package/dist/components/NotificationBar.js +119 -0
- package/dist/components/NotificationBar.js.map +1 -0
- package/dist/components/VideoPlayer.d.ts +11 -0
- package/dist/components/VideoPlayer.js +12 -0
- package/dist/components/VideoPlayer.js.map +1 -0
- package/dist/components/banner/BannerVideo.d.ts +7 -0
- package/dist/components/banner/BannerVideo.js +20 -0
- package/dist/components/banner/BannerVideo.js.map +1 -0
- package/dist/components/banner/ContentBannerStyled.d.ts +6 -0
- package/dist/components/banner/ContentBannerStyled.js +44 -0
- package/dist/components/banner/ContentBannerStyled.js.map +1 -0
- package/dist/components/banner/ResponsiveBanner.d.ts +15 -0
- package/dist/components/banner/ResponsiveBanner.js +68 -0
- package/dist/components/banner/ResponsiveBanner.js.map +1 -0
- package/dist/components/banner/ResponsiveBannerGradiente.d.ts +12 -0
- package/dist/components/banner/ResponsiveBannerGradiente.js +38 -0
- package/dist/components/banner/ResponsiveBannerGradiente.js.map +1 -0
- package/dist/components/banner/TitleBanner.d.ts +10 -0
- package/dist/components/banner/TitleBanner.js +8 -0
- package/dist/components/banner/TitleBanner.js.map +1 -0
- package/dist/components/barra_ferramentas/BarraFerramentas.d.ts +13 -0
- package/dist/components/barra_ferramentas/BarraFerramentas.js +39 -0
- package/dist/components/barra_ferramentas/BarraFerramentas.js.map +1 -0
- package/dist/components/barra_ferramentas/BarraFerramentasHamburguer.d.ts +13 -0
- package/dist/components/barra_ferramentas/BarraFerramentasHamburguer.js +31 -0
- package/dist/components/barra_ferramentas/BarraFerramentasHamburguer.js.map +1 -0
- package/dist/components/barra_ferramentas/BarraFerramentasStyled.d.ts +7 -0
- package/dist/components/barra_ferramentas/BarraFerramentasStyled.js +40 -0
- package/dist/components/barra_ferramentas/BarraFerramentasStyled.js.map +1 -0
- package/dist/components/button/ButtonStyled.d.ts +18 -0
- package/dist/components/button/ButtonStyled.js +56 -0
- package/dist/components/button/ButtonStyled.js.map +1 -0
- package/dist/components/button/NavigationButton.d.ts +18 -0
- package/dist/components/button/NavigationButton.js +53 -0
- package/dist/components/button/NavigationButton.js.map +1 -0
- package/dist/components/button/NavigationButtonMotion.d.ts +19 -0
- package/dist/components/button/NavigationButtonMotion.js +64 -0
- package/dist/components/button/NavigationButtonMotion.js.map +1 -0
- package/dist/components/button/NavigationHamburguerButton.d.ts +17 -0
- package/dist/components/button/NavigationHamburguerButton.js +33 -0
- package/dist/components/button/NavigationHamburguerButton.js.map +1 -0
- package/dist/components/button/ScrollToTopButton.d.ts +10 -0
- package/dist/components/button/ScrollToTopButton.js +44 -0
- package/dist/components/button/ScrollToTopButton.js.map +1 -0
- package/dist/components/button/WhatsAppButton.d.ts +6 -0
- package/dist/components/button/WhatsAppButton.js +24 -0
- package/dist/components/button/WhatsAppButton.js.map +1 -0
- package/dist/components/button/WhatsAppIcon.d.ts +6 -0
- package/dist/components/button/WhatsAppIcon.js +18 -0
- package/dist/components/button/WhatsAppIcon.js.map +1 -0
- package/dist/components/cards/AnimatedCardGroup.d.ts +20 -0
- package/dist/components/cards/AnimatedCardGroup.js +63 -0
- package/dist/components/cards/AnimatedCardGroup.js.map +1 -0
- package/dist/components/cards/BorderTopLeftRadiusCard.d.ts +15 -0
- package/dist/components/cards/BorderTopLeftRadiusCard.js +67 -0
- package/dist/components/cards/BorderTopLeftRadiusCard.js.map +1 -0
- package/dist/components/cards/CardLerMais.d.ts +13 -0
- package/dist/components/cards/CardLerMais.js +121 -0
- package/dist/components/cards/CardLerMais.js.map +1 -0
- package/dist/components/cards/ContentCardDescription.d.ts +10 -0
- package/dist/components/cards/ContentCardDescription.js +52 -0
- package/dist/components/cards/ContentCardDescription.js.map +1 -0
- package/dist/components/cards/GradientCard.d.ts +17 -0
- package/dist/components/cards/GradientCard.js +66 -0
- package/dist/components/cards/GradientCard.js.map +1 -0
- package/dist/components/cards/ImageCard.d.ts +15 -0
- package/dist/components/cards/ImageCard.js +31 -0
- package/dist/components/cards/ImageCard.js.map +1 -0
- package/dist/components/cards/MapCard.d.ts +15 -0
- package/dist/components/cards/MapCard.js +59 -0
- package/dist/components/cards/MapCard.js.map +1 -0
- package/dist/components/cards/ShadowCard.d.ts +16 -0
- package/dist/components/cards/ShadowCard.js +25 -0
- package/dist/components/cards/ShadowCard.js.map +1 -0
- package/dist/components/cards/TestimonialCard.d.ts +22 -0
- package/dist/components/cards/TestimonialCard.js +66 -0
- package/dist/components/cards/TestimonialCard.js.map +1 -0
- package/dist/components/cards/YoutubeCard.d.ts +14 -0
- package/dist/components/cards/YoutubeCard.js +85 -0
- package/dist/components/cards/YoutubeCard.js.map +1 -0
- package/dist/components/carousel/CarouselStyled.d.ts +62 -0
- package/dist/components/carousel/CarouselStyled.js +31 -0
- package/dist/components/carousel/CarouselStyled.js.map +1 -0
- package/dist/components/carousel/Carrossel.d.ts +15 -0
- package/dist/components/carousel/Carrossel.js +113 -0
- package/dist/components/carousel/Carrossel.js.map +1 -0
- package/dist/components/containers/ContainerAnimatedIndex.d.ts +6 -0
- package/dist/components/containers/ContainerAnimatedIndex.js +11 -0
- package/dist/components/containers/ContainerAnimatedIndex.js.map +1 -0
- package/dist/components/containers/ContainerAnimatedScroll.d.ts +9 -0
- package/dist/components/containers/ContainerAnimatedScroll.js +10 -0
- package/dist/components/containers/ContainerAnimatedScroll.js.map +1 -0
- package/dist/components/containers/ContainerSafe.d.ts +6 -0
- package/dist/components/containers/ContainerSafe.js +78 -0
- package/dist/components/containers/ContainerSafe.js.map +1 -0
- package/dist/components/containers/containerStyled.d.ts +1 -0
- package/dist/components/containers/containerStyled.js +10 -0
- package/dist/components/containers/containerStyled.js.map +1 -0
- package/dist/components/footer/Copywrite.d.ts +10 -0
- package/dist/components/footer/Copywrite.js +23 -0
- package/dist/components/footer/Copywrite.js.map +1 -0
- package/dist/components/footer/CopywriteCenter.d.ts +9 -0
- package/dist/components/footer/CopywriteCenter.js +34 -0
- package/dist/components/footer/CopywriteCenter.js.map +1 -0
- package/dist/components/footer/Footer.d.ts +10 -0
- package/dist/components/footer/Footer.js +41 -0
- package/dist/components/footer/Footer.js.map +1 -0
- package/dist/components/footer/NotificationBar.d.ts +13 -0
- package/dist/components/footer/NotificationBar.js +57 -0
- package/dist/components/footer/NotificationBar.js.map +1 -0
- package/dist/components/footer/SiteMap.d.ts +9 -0
- package/dist/components/footer/SiteMap.js +24 -0
- package/dist/components/footer/SiteMap.js.map +1 -0
- package/dist/components/footer/footerStyled.d.ts +8 -0
- package/dist/components/footer/footerStyled.js +62 -0
- package/dist/components/footer/footerStyled.js.map +1 -0
- package/dist/components/form/Form.d.ts +17 -0
- package/dist/components/form/Form.js +96 -0
- package/dist/components/form/Form.js.map +1 -0
- package/dist/components/form/FormStyled.d.ts +27 -0
- package/dist/components/form/FormStyled.js +95 -0
- package/dist/components/form/FormStyled.js.map +1 -0
- package/dist/components/header/HeaderBarIn.d.ts +15 -0
- package/dist/components/header/HeaderBarIn.js +40 -0
- package/dist/components/header/HeaderBarIn.js.map +1 -0
- package/dist/components/header/HeaderBarTop.d.ts +12 -0
- package/dist/components/header/HeaderBarTop.js +30 -0
- package/dist/components/header/HeaderBarTop.js.map +1 -0
- package/dist/components/section/Section.d.ts +9 -0
- package/dist/components/section/Section.js +19 -0
- package/dist/components/section/Section.js.map +1 -0
- package/dist/components/section/SectionGradiente.d.ts +9 -0
- package/dist/components/section/SectionGradiente.js +19 -0
- package/dist/components/section/SectionGradiente.js.map +1 -0
- package/dist/components/section/SectionImage.d.ts +7 -0
- package/dist/components/section/SectionImage.js +21 -0
- package/dist/components/section/SectionImage.js.map +1 -0
- package/dist/components/section/SectionStyled.d.ts +9 -0
- package/dist/components/section/SectionStyled.js +46 -0
- package/dist/components/section/SectionStyled.js.map +1 -0
- package/dist/components/social_media/SocialMediaIconLink.d.ts +8 -0
- package/dist/components/social_media/SocialMediaIconLink.js +13 -0
- package/dist/components/social_media/SocialMediaIconLink.js.map +1 -0
- package/dist/components/social_media/SocialMediaIconLinkWithBorder.d.ts +12 -0
- package/dist/components/social_media/SocialMediaIconLinkWithBorder.js +18 -0
- package/dist/components/social_media/SocialMediaIconLinkWithBorder.js.map +1 -0
- package/dist/components/substask/SubstackPage.d.ts +5 -0
- package/dist/components/substask/SubstackPage.js +22 -0
- package/dist/components/substask/SubstackPage.js.map +1 -0
- package/dist/components/substask/SubstackPosts.d.ts +9 -0
- package/dist/components/substask/SubstackPosts.js +6 -0
- package/dist/components/substask/SubstackPosts.js.map +1 -0
- package/dist/components/text/IconText.d.ts +11 -0
- package/dist/components/text/IconText.js +26 -0
- package/dist/components/text/IconText.js.map +1 -0
- package/dist/components/text/InfiniteTicker.d.ts +15 -0
- package/dist/components/text/InfiniteTicker.js +49 -0
- package/dist/components/text/InfiniteTicker.js.map +1 -0
- package/dist/components/text/SpanStyled.d.ts +6 -0
- package/dist/components/text/SpanStyled.js +34 -0
- package/dist/components/text/SpanStyled.js.map +1 -0
- package/dist/components/text/TextWithSeparador.d.ts +7 -0
- package/dist/components/text/TextWithSeparador.js +9 -0
- package/dist/components/text/TextWithSeparador.js.map +1 -0
- package/dist/hooks/useResponsive.d.ts +9 -0
- package/dist/hooks/useResponsive.js +14 -0
- package/dist/hooks/useResponsive.js.map +1 -0
- package/dist/hooks/useResponsiveCarousel.d.ts +15 -0
- package/dist/hooks/useResponsiveCarousel.js +36 -0
- package/dist/hooks/useResponsiveCarousel.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/pages/_app.d.ts +2 -0
- package/dist/pages/_app.js +20 -0
- package/dist/pages/_app.js.map +1 -0
- package/dist/pages/_document.d.ts +9 -0
- package/dist/pages/_document.js +33 -0
- package/dist/pages/_document.js.map +1 -0
- package/dist/theme.d.ts +35 -0
- package/dist/theme.js +142 -0
- package/dist/theme.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/types/AnimatedCardData.d.ts +6 -0
- package/dist/types/AnimatedCardData.js +2 -0
- package/dist/types/AnimatedCardData.js.map +1 -0
- package/dist/types/BannerResponsiveConfig.d.ts +4 -0
- package/dist/types/BannerResponsiveConfig.js +2 -0
- package/dist/types/BannerResponsiveConfig.js.map +1 -0
- package/dist/types/ItemMenuConfig.d.ts +4 -0
- package/dist/types/ItemMenuConfig.js +2 -0
- package/dist/types/ItemMenuConfig.js.map +1 -0
- package/dist/types/ShadowConfig.d.ts +6 -0
- package/dist/types/ShadowConfig.js +2 -0
- package/dist/types/ShadowConfig.js.map +1 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# Sobre
|
|
2
|
+
|
|
3
|
+
Este projeto é uma biblioteca React preparada para publicação no npm.
|
|
4
|
+
Essa biblioteca contem componentes de barra de notificacao.
|
|
5
|
+
Abaixo está o passo a passo para publicar ou atualizar a lib.
|
|
6
|
+
|
|
7
|
+
# Pré-requisitos
|
|
8
|
+
|
|
9
|
+
1. Conta no NPM
|
|
10
|
+
- Crie uma conta em: https://www.npmjs.com/signup
|
|
11
|
+
|
|
12
|
+
2. Node.js instalado
|
|
13
|
+
- Recomenda-se uma versão LTS. Verifique com: node -v
|
|
14
|
+
- Login no NPM pelo terminal: npm login
|
|
15
|
+
npm: pipeline-solucoes
|
|
16
|
+
senha:pipesollinecoes
|
|
17
|
+
key: pipeline@12345#
|
|
18
|
+
|
|
19
|
+
# Como Publicar a biblioteca:
|
|
20
|
+
|
|
21
|
+
1. Instalar dependências: npm install
|
|
22
|
+
|
|
23
|
+
2. No package.json, altere o campo version de acordo com a semântica de versionamento.
|
|
24
|
+
1.0.1 – correção de bug
|
|
25
|
+
1.1.0 – nova funcionalidade compatível
|
|
26
|
+
2.0.0 – mudanças incompatíveis
|
|
27
|
+
|
|
28
|
+
3. Build da biblioteca: npm run build
|
|
29
|
+
|
|
30
|
+
4. Publicar no NPM: npm publish
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Geist, Geist_Mono } from "next/font/google";
|
|
3
|
+
import "./globals.css";
|
|
4
|
+
const geistSans = Geist({
|
|
5
|
+
variable: "--font-geist-sans",
|
|
6
|
+
subsets: ["latin"],
|
|
7
|
+
});
|
|
8
|
+
const geistMono = Geist_Mono({
|
|
9
|
+
variable: "--font-geist-mono",
|
|
10
|
+
subsets: ["latin"],
|
|
11
|
+
});
|
|
12
|
+
export const metadata = {
|
|
13
|
+
title: "Create Next App",
|
|
14
|
+
description: "Generated by create next app",
|
|
15
|
+
};
|
|
16
|
+
export default function RootLayout({ children, }) {
|
|
17
|
+
return (_jsx("html", { lang: "en", children: _jsx("body", { className: `${geistSans.variable} ${geistMono.variable}`, children: children }) }));
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.js","sourceRoot":"","sources":["../../src/app/layout.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,eAAe,CAAC;AAEvB,MAAM,SAAS,GAAG,KAAK,CAAC;IACtB,QAAQ,EAAE,mBAAmB;IAC7B,OAAO,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,SAAS,GAAG,UAAU,CAAC;IAC3B,QAAQ,EAAE,mBAAmB;IAC7B,OAAO,EAAE,CAAC,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAa;IAChC,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,8BAA8B;CAC5C,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,EACjC,QAAQ,GAGR;IACA,OAAO,CACL,eAAM,IAAI,EAAC,IAAI,YACb,eAAM,SAAS,EAAE,GAAG,SAAS,CAAC,QAAQ,IAAI,SAAS,CAAC,QAAQ,EAAE,YAC3D,QAAQ,GACJ,GACF,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Home(): import("react/jsx-runtime").JSX.Element;
|
package/dist/app/page.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"page.js","sourceRoot":"","sources":["../../src/app/page.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,MAAM,CAAC,OAAO,UAAU,IAAI;IAC1B,OAAO,CACL,gCAAY,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StaticImageData } from 'next/image';
|
|
3
|
+
interface ImageResponsiveProps {
|
|
4
|
+
src: StaticImageData;
|
|
5
|
+
alt: string;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
border_radius?: string;
|
|
9
|
+
priority?: boolean;
|
|
10
|
+
objectFit?: 'cover' | 'scale-down';
|
|
11
|
+
}
|
|
12
|
+
declare const ImageResponsive: React.FC<ImageResponsiveProps>;
|
|
13
|
+
export default ImageResponsive;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import Image from 'next/image';
|
|
3
|
+
import { styled } from '@mui/material';
|
|
4
|
+
const Container = styled('div', {
|
|
5
|
+
shouldForwardProp: (prop) => !['width', 'height', 'border_radius'].includes(prop),
|
|
6
|
+
})(({ width, height, border_radius }) => ({
|
|
7
|
+
width: `${width}px`,
|
|
8
|
+
height: `${height}px`,
|
|
9
|
+
position: 'relative',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
borderRadius: border_radius,
|
|
12
|
+
}));
|
|
13
|
+
const ImageResponsive = ({ src, alt, width, height, border_radius = '0px', priority = false, objectFit = 'cover', }) => {
|
|
14
|
+
if (objectFit == 'cover') {
|
|
15
|
+
return (_jsx(Container, { width: width, height: height, border_radius: border_radius, children: _jsx(Image, { src: src, alt: alt, priority: priority, quality: 80, fill: true, sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw", placeholder: 'blur', style: {
|
|
16
|
+
objectFit: 'cover',
|
|
17
|
+
objectPosition: 'center',
|
|
18
|
+
}, onError: () => {
|
|
19
|
+
console.error('Erro ao carregar a imagem:', src);
|
|
20
|
+
} }) }));
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return (_jsx(Container, { width: width, height: height, border_radius: border_radius, children: _jsx(Image, { src: src, alt: alt, priority: priority, quality: 80, fill: true, sizes: "(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw", placeholder: 'blur', style: {
|
|
24
|
+
objectFit: 'scale-down',
|
|
25
|
+
objectPosition: 'center',
|
|
26
|
+
}, onError: () => {
|
|
27
|
+
console.error('Erro ao carregar a imagem:', src);
|
|
28
|
+
} }) }));
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
export default ImageResponsive;
|
|
32
|
+
//# sourceMappingURL=ImageResponsive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageResponsive.js","sourceRoot":"","sources":["../../src/components/ImageResponsive.tsx"],"names":[],"mappings":";AACA,OAAO,KAA0B,MAAM,YAAY,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,SAAS,IAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,YACnE,KAAC,KAAK,IACJ,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,EAAE,EACX,IAAI,QACJ,KAAK,EAAC,0DAA0D,EAChE,WAAW,EAAC,MAAM,EAClB,KAAK,EAAE;oBACL,SAAS,EAAE,YAAY;oBACvB,cAAc,EAAE,QAAQ;iBACzB,EACD,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,CAAC,KAAK,CAAC,4BAA4B,EAAE,GAAG,CAAC,CAAC;gBACnD,CAAC,GACD,GACQ,CACb,CAAC;IACN,CAAC;AAGH,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SvgIconComponent } from '@mui/icons-material';
|
|
3
|
+
export declare const Endereco: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
4
|
+
export interface LocationProps {
|
|
5
|
+
textColor: string;
|
|
6
|
+
endereco: string;
|
|
7
|
+
bairro: string;
|
|
8
|
+
cidade: string;
|
|
9
|
+
uf: string;
|
|
10
|
+
cep: string;
|
|
11
|
+
Icon: SvgIconComponent;
|
|
12
|
+
iconColor: string;
|
|
13
|
+
}
|
|
14
|
+
declare const Location: React.FC<LocationProps>;
|
|
15
|
+
export default Location;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Box, styled } from '@mui/material';
|
|
3
|
+
const Container = styled('div', {
|
|
4
|
+
shouldForwardProp: (prop) => !['text_color'].includes(prop),
|
|
5
|
+
})(({ theme, text_color }) => {
|
|
6
|
+
var _a, _b, _c, _d, _e, _f;
|
|
7
|
+
return ({
|
|
8
|
+
display: 'flex',
|
|
9
|
+
flexDirection: 'row',
|
|
10
|
+
justifyContent: 'center',
|
|
11
|
+
alignItems: 'flex-start',
|
|
12
|
+
gap: '8px',
|
|
13
|
+
width: '100%',
|
|
14
|
+
color: text_color,
|
|
15
|
+
// Tipografia
|
|
16
|
+
fontFamily: theme.typography.fontFamily,
|
|
17
|
+
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
18
|
+
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
19
|
+
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
20
|
+
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
21
|
+
fontSize: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize,
|
|
22
|
+
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
export const Endereco = styled('div')(() => ({
|
|
26
|
+
display: 'flex',
|
|
27
|
+
flexDirection: 'column',
|
|
28
|
+
justifyContent: 'center',
|
|
29
|
+
alignItems: 'flex-start',
|
|
30
|
+
gap: '4px',
|
|
31
|
+
width: '100%',
|
|
32
|
+
}));
|
|
33
|
+
const Location = ({ textColor, endereco, bairro, cidade, uf, cep, Icon, iconColor }) => {
|
|
34
|
+
return (_jsxs(Container, { text_color: textColor, children: [_jsx(Box, { fontSize: 24, color: iconColor, children: _jsx(Icon, {}) }), _jsxs(Endereco, { children: [_jsx("div", { children: endereco }), _jsx("div", { children: `${bairro} - ${cidade} / ${uf}` }), _jsx("div", { children: `CEP: ${cep}` })] })] }));
|
|
35
|
+
};
|
|
36
|
+
export default Location;
|
|
37
|
+
//# sourceMappingURL=Location.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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E,YAAY;IACxB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,MAAM;CAChB,CAAC,CAAC,CAAC;AAaJ,MAAM,QAAQ,GAA4B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE;IAE5G,OAAM,CACF,MAAC,SAAS,IAAC,UAAU,EAAE,SAAS,aAC9B,KAAC,GAAG,IAAC,QAAQ,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,YACjC,KAAC,IAAI,KAAE,GACH,EACN,MAAC,QAAQ,eACP,wBAAM,QAAQ,GAAO,EACrB,wBAAM,GAAG,MAAM,MAAM,MAAM,MAAM,EAAE,EAAE,GAAO,EAC5C,wBAAM,QAAQ,GAAG,EAAE,GAAO,IACjB,IACD,CACf,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
+
import { Container, styled } from '@mui/material';
|
|
4
|
+
import Image from 'next/image';
|
|
5
|
+
import NavigationButton from './button/NavigationButton';
|
|
6
|
+
const ContainerImage = styled('div')(() => ({
|
|
7
|
+
height: '100%',
|
|
8
|
+
width: '100%',
|
|
9
|
+
position: 'relative',
|
|
10
|
+
overflow: 'hidden',
|
|
11
|
+
}));
|
|
12
|
+
const Content = styled('div')(() => ({
|
|
13
|
+
width: 'auto',
|
|
14
|
+
height: 'auto',
|
|
15
|
+
position: 'absolute',
|
|
16
|
+
top: '50%',
|
|
17
|
+
left: '50%',
|
|
18
|
+
transform: 'translate(-50%, -50%)',
|
|
19
|
+
display: 'flex',
|
|
20
|
+
flexDirection: 'column',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
margin: 'auto'
|
|
25
|
+
}));
|
|
26
|
+
const ContentText = styled('div')(() => ({
|
|
27
|
+
width: 'auto',
|
|
28
|
+
height: 'auto',
|
|
29
|
+
textAlign: 'center',
|
|
30
|
+
}));
|
|
31
|
+
const ContentLinks = styled('div')(() => ({
|
|
32
|
+
width: 'fit-content',
|
|
33
|
+
height: 'auto',
|
|
34
|
+
position: 'relative',
|
|
35
|
+
overflow: 'hidden',
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
justifyContent: 'center',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
gap: '20px',
|
|
41
|
+
}));
|
|
42
|
+
const Titulo = styled('p')(() => ({
|
|
43
|
+
fontSize: '22px',
|
|
44
|
+
color: '#555f56'
|
|
45
|
+
}));
|
|
46
|
+
const PStyled = styled('p')(() => ({
|
|
47
|
+
fontSize: '20px',
|
|
48
|
+
color: '#555f56'
|
|
49
|
+
}));
|
|
50
|
+
const MensagemDeploy = ({ url_contato, texto_contato }) => {
|
|
51
|
+
return (_jsxs(_Fragment, { children: [_jsx(Container, { sx: { width: '100vw', height: '100vh' }, children: _jsx(ContainerImage, { children: _jsx(Image, { src: "/construcao.png", alt: 'imagem do banner', fill: true, style: { objectFit: 'contain' }, priority: true }) }) }), _jsxs(Content, { children: [_jsxs(ContentText, { children: [_jsx(Titulo, { children: _jsx("b", { children: "Estamos construindo algo incr\u00EDvel!" }) }), _jsx(PStyled, { children: "A Empresa Pipeline Solu\u00E7\u00F5es est\u00E1 trabalhando nos bastidores para trazer uma experi\u00EAncia completa e inovadora para voc\u00EA. O site est\u00E1 em processo de deploy, mas em breve voc\u00EA poder\u00E1 navegar por um espa\u00E7o feito com muito cuidado, dedica\u00E7\u00E3o e prop\u00F3sito." }), _jsx(PStyled, { children: "Enquanto isso, fique \u00E0 vontade para acompanhar nas redes sociais ou entrar em contato!" }), _jsx(PStyled, { children: "Estamos quase l\u00E1. Fique ligado!" })] }), _jsxs(ContentLinks, { children: [_jsx(NavigationButton, { aria_label: '', layout: 'link', width: 'auto', text_decoration: 'underline', url: url_contato, color: '#555f56', children: _jsx("h3", { children: texto_contato }) }), _jsx(NavigationButton, { aria_label: '', layout: 'link', width: 'auto', text_decoration: 'underline', url: 'https://www.instagram.com/pipelinesolucoes/', color: '#555f56', children: _jsx("h3", { children: "@pipelinesolucoes" }) })] })] })] }));
|
|
52
|
+
};
|
|
53
|
+
export default MensagemDeploy;
|
|
54
|
+
//# sourceMappingURL=MensagemDeploy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MensagemDeploy.js","sourceRoot":"","sources":["../../src/components/MensagemDeploy.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,MAAM,YAAY,CAAC;AAE/B,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,MAAM,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,QAAQ;CACnB,CAAC,CAAC,CAAC;AAEJ,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,SAAS,EAAE,uBAAuB;IAClC,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,QAAQ;IACvB,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,QAAQ;IACpB,QAAQ,EAAE,QAAQ;IAClB,MAAM,EAAE,MAAM;CACf,CAAC,CAAC,CAAC;AAEJ,MAAM,WAAW,GAAG,MAAM,CA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AO,wUAAoQ,EAC5Q,KAAC,OAAO,8GAAiG,EACzG,KAAC,OAAO,uDAA0C,IACxC,EAEd,MAAC,YAAY,eAET,KAAC,gBAAgB,IACb,UAAU,EAAC,EAAE,EACb,MAAM,EAAC,MAAM,EACb,KAAK,EAAC,MAAM,EACZ,eAAe,EAAC,WAAW,EAC3B,GAAG,EAAE,WAAW,EAChB,KAAK,EAAC,SAAS,YAEf,uBAAK,aAAa,GAAM,GACT,EAEnB,KAAC,gBAAgB,IACb,UAAU,EAAC,EAAE,EACb,MAAM,EAAC,MAAM,EACb,KAAK,EAAC,MAAM,EACZ,eAAe,EAAC,WAAW,EAC3B,GAAG,EAAC,6CAA6C,EACjD,KAAK,EAAC,SAAS,YAEf,6CAA0B,GACX,IACR,IACT,IACX,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
interface NotificationBarProps {
|
|
2
|
+
url_termo_uso: string;
|
|
3
|
+
url_politica_privacidade: string;
|
|
4
|
+
background_color: string;
|
|
5
|
+
color: string;
|
|
6
|
+
background_color_button_ok: string;
|
|
7
|
+
color_button_ok: string;
|
|
8
|
+
background_color_button_cancel: string;
|
|
9
|
+
color_button_cancel: string;
|
|
10
|
+
background_color_link: string;
|
|
11
|
+
color_link: string;
|
|
12
|
+
background_color_hover_link: string;
|
|
13
|
+
color_hover_link: string;
|
|
14
|
+
}
|
|
15
|
+
declare const NotificationBar: React.FC<NotificationBarProps>;
|
|
16
|
+
export default NotificationBar;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { Box, styled } from '@mui/material';
|
|
4
|
+
import { parseCookies, setCookie } from 'nookies';
|
|
5
|
+
const Container = styled('div', {
|
|
6
|
+
shouldForwardProp: (prop) => ![
|
|
7
|
+
'background_color',
|
|
8
|
+
'show'
|
|
9
|
+
].includes(prop),
|
|
10
|
+
})(({ show, background_color }) => ({
|
|
11
|
+
position: 'fixed',
|
|
12
|
+
bottom: 0,
|
|
13
|
+
width: '100%',
|
|
14
|
+
backgroundColor: background_color,
|
|
15
|
+
display: show ? 'block' : 'none',
|
|
16
|
+
zIndex: 4000,
|
|
17
|
+
}));
|
|
18
|
+
const BotaoNotificationBar = styled('button', {
|
|
19
|
+
shouldForwardProp: (prop) => ![
|
|
20
|
+
'background_color',
|
|
21
|
+
'color',
|
|
22
|
+
].includes(prop),
|
|
23
|
+
})(({ theme, background_color, color }) => {
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
|
+
return ({
|
|
26
|
+
backgroundColor: background_color,
|
|
27
|
+
color: color,
|
|
28
|
+
padding: '8px 24px',
|
|
29
|
+
border: 'none',
|
|
30
|
+
cursor: 'pointer',
|
|
31
|
+
margin: '0 0 0 20px',
|
|
32
|
+
borderRadius: theme.shape.borderRadius,
|
|
33
|
+
fontFamily: theme.typography.fontFamily,
|
|
34
|
+
fontWeight: 600,
|
|
35
|
+
fontStyle: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontStyle,
|
|
36
|
+
lineHeight: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.lineHeight,
|
|
37
|
+
letterSpacing: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.letterSpacing,
|
|
38
|
+
fontSize: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.fontSize,
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
const LinkStyled = styled('a', {
|
|
42
|
+
shouldForwardProp: (prop) => ![
|
|
43
|
+
'background_color',
|
|
44
|
+
'background_color_hover',
|
|
45
|
+
'color',
|
|
46
|
+
'color_hover'
|
|
47
|
+
].includes(prop),
|
|
48
|
+
})(({ background_color, background_color_hover, color, color_hover, }) => ({
|
|
49
|
+
width: 'auto',
|
|
50
|
+
cursor: 'pointer',
|
|
51
|
+
textDecoration: 'none',
|
|
52
|
+
textTransform: 'none',
|
|
53
|
+
textAlign: 'center',
|
|
54
|
+
boxShadow: 'none',
|
|
55
|
+
backgroundColor: background_color,
|
|
56
|
+
color: color,
|
|
57
|
+
padding: '0',
|
|
58
|
+
margin: '0',
|
|
59
|
+
'&:hover': {
|
|
60
|
+
backgroundColor: background_color_hover,
|
|
61
|
+
borderBottom: `1px solid ${color_hover}`,
|
|
62
|
+
color: color_hover,
|
|
63
|
+
},
|
|
64
|
+
}));
|
|
65
|
+
const Content = styled('div')({
|
|
66
|
+
display: 'flex',
|
|
67
|
+
flexDirection: 'row',
|
|
68
|
+
justifyContent: 'center',
|
|
69
|
+
alignItems: 'center',
|
|
70
|
+
padding: '24px',
|
|
71
|
+
width: '100%',
|
|
72
|
+
boxSizing: 'border-box',
|
|
73
|
+
flexWrap: 'wrap',
|
|
74
|
+
});
|
|
75
|
+
const AreaTexto = styled('div', {
|
|
76
|
+
shouldForwardProp: (prop) => ![
|
|
77
|
+
'color',
|
|
78
|
+
].includes(prop),
|
|
79
|
+
})(({ theme, color }) => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f;
|
|
81
|
+
return ({
|
|
82
|
+
color: color,
|
|
83
|
+
flexGrow: 1,
|
|
84
|
+
minWidth: '340px',
|
|
85
|
+
fontFamily: theme.typography.fontFamily,
|
|
86
|
+
fontWeight: (_a = theme.typography.body1) === null || _a === void 0 ? void 0 : _a.fontWeight,
|
|
87
|
+
fontStyle: (_b = theme.typography.body1) === null || _b === void 0 ? void 0 : _b.fontStyle,
|
|
88
|
+
lineHeight: (_c = theme.typography.body1) === null || _c === void 0 ? void 0 : _c.lineHeight,
|
|
89
|
+
letterSpacing: (_d = theme.typography.body1) === null || _d === void 0 ? void 0 : _d.letterSpacing,
|
|
90
|
+
fontSize: (_e = theme.typography.body1) === null || _e === void 0 ? void 0 : _e.fontSize,
|
|
91
|
+
margin: (_f = theme.typography.body1) === null || _f === void 0 ? void 0 : _f.margin,
|
|
92
|
+
[`@media (max-width:600px)`]: {
|
|
93
|
+
maxWidth: '340px',
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
const NotificationBar = ({ url_termo_uso, url_politica_privacidade, background_color, color, background_color_button_ok, color_button_ok, background_color_button_cancel, color_button_cancel, background_color_link, color_link, background_color_hover_link, color_hover_link }) => {
|
|
98
|
+
const [showNotification, setShowNotification] = useState(() => {
|
|
99
|
+
const cookies = parseCookies();
|
|
100
|
+
return cookies.cookieConsent !== 'true' && cookies.cookieConsent !== 'false';
|
|
101
|
+
});
|
|
102
|
+
const handleAccept = () => {
|
|
103
|
+
setCookie(null, 'cookieConsent', 'true', {
|
|
104
|
+
maxAge: 60 * 60 * 24 * 365,
|
|
105
|
+
path: '/',
|
|
106
|
+
});
|
|
107
|
+
setShowNotification(false);
|
|
108
|
+
};
|
|
109
|
+
const handleReject = () => {
|
|
110
|
+
setCookie(null, 'cookieConsent', 'false', {
|
|
111
|
+
maxAge: 60 * 60 * 24 * 365,
|
|
112
|
+
path: '/',
|
|
113
|
+
});
|
|
114
|
+
setShowNotification(false);
|
|
115
|
+
};
|
|
116
|
+
return (_jsx(Container, { show: showNotification, background_color: background_color, children: _jsxs(Content, { children: [_jsxs(AreaTexto, { color: color, children: ["Este site usa cookies e dados pessoais de acordo com os nossos", ' ', _jsx(LinkStyled, { href: url_termo_uso, background_color: background_color_link, background_color_hover: background_color_hover_link, color: color_link, color_hover: color_hover_link, children: "Termos de Uso" }), " e", ' ', _jsx(LinkStyled, { href: url_politica_privacidade, background_color: background_color_link, background_color_hover: background_color_hover_link, color: color_link, color_hover: color_hover_link, children: "Pol\u00EDtica de Privacidade" }), ". Ao continuar navegando neste site, voc\u00EA declara estar ciente dessas condi\u00E7\u00F5es."] }), _jsxs(Box, { display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "center", sx: { padding: '16px' }, children: [_jsx(BotaoNotificationBar, { background_color: background_color_button_cancel, color: color_button_cancel, onClick: handleReject, children: "Cancelar" }), _jsx(BotaoNotificationBar, { background_color: background_color_button_ok, color: color_button_ok, onClick: handleAccept, children: "Ok" })] })] }) }));
|
|
117
|
+
};
|
|
118
|
+
export default NotificationBar;
|
|
119
|
+
//# sourceMappingURL=NotificationBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NotificationBar.js","sourceRoot":"","sources":["../../src/components/NotificationBar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC5B,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC5B,CAAC;QACE,kBAAkB;QAClB,MAAM;KACR,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7B,CAAC,CAKC,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,CAAC,CAAC;IAClC,QAAQ,EAAE,OAAO;IACjB,MAAM,EAAE,CAAC;IACT,KAAK,EAAE,MAAM;IACb,eAAe,EAAE,gBAAgB;IACjC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM;IAChC,MAAM,EAAE,IAAI;CACb,CAAC,CAAC,CAAC;AAEJ,MAAM,oBAAoB,GAAG,MAAM,CAAC,QAAQ,EAAE;IAC1C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC5B,CAAC;QACE,kBAAkB;QAClB,OAAO;KACT,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC3B,CAAC,CAID,CAAC,EAAE,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,EAAE,EAAE;;IAAC,OAAA,CAAC;QAE1C,eAAe,EAAE,gBAAgB;QACjC,KAAK,EAAE,KAAK;QACZ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BAAsB,EAAE,2BAA2B,EACnD,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,6CAGrC,uGAEH,EAEZ,MAAC,GAAG,IACF,OAAO,EAAC,MAAM,EACd,aAAa,EAAC,KAAK,EACnB,UAAU,EAAC,QAAQ,EACnB,cAAc,EAAC,QAAQ,EACvB,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAEvB,KAAC,oBAAoB,IAAC,gBAAgB,EAAE,8BAA8B,EACpE,KAAK,EAAE,mBAAmB,EAAE,OAAO,EAAE,YAAY,yBAE5B,EACvB,KAAC,oBAAoB,IAAC,gBAAgB,EAAE,0BAA0B,EAChE,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,YAAY,mBAExB,IACnB,IACE,GACA,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
type VideoPlayerProps = {
|
|
3
|
+
videoSrc: string;
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
controls?: boolean;
|
|
7
|
+
autoplay?: boolean;
|
|
8
|
+
loop?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const VideoPlayer: React.FC<VideoPlayerProps>;
|
|
11
|
+
export default VideoPlayer;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { styled } from "@mui/material";
|
|
3
|
+
const Container = styled('div')(() => ({
|
|
4
|
+
textAlign: 'center', // Ajustado para usar camelCase
|
|
5
|
+
width: '100%', // Ajustado para usar aspas corretas
|
|
6
|
+
height: '100%', // Ajustado para usar aspas corretas
|
|
7
|
+
}));
|
|
8
|
+
const VideoPlayer = ({ videoSrc, width = '100%', height = '100%', controls = true, autoplay = false, loop = false, }) => {
|
|
9
|
+
return (_jsx(Container, { children: _jsxs("video", { controls: controls, autoPlay: autoplay, loop: loop, style: { objectFit: "cover", width: width, height: height }, children: [_jsx("source", { src: videoSrc, type: "video/mp4" }), "Seu navegador n\u00E3o suporta v\u00EDdeos HTML5."] }) }));
|
|
10
|
+
};
|
|
11
|
+
export default VideoPlayer;
|
|
12
|
+
//# sourceMappingURL=VideoPlayer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoPlayer.js","sourceRoot":"","sources":["../../src/components/VideoPlayer.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAYvC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,SAAS,EAAE,QAAQ,EAAE,+BAA+B;IACpD,KAAK,EAAE,MAAM,EAAE,oCAAoC;IACnD,MAAM,EAAE,MAAM,EAAE,oCAAoC;CACrD,CAAC,CAAC,CAAC;AAEJ,MAAM,WAAW,GAA+B,CAAC,EAC/C,QAAQ,EACR,KAAK,GAAG,MAAM,EACd,MAAM,GAAG,MAAM,EACf,QAAQ,GAAG,IAAI,EACf,QAAQ,GAAG,KAAK,EAChB,IAAI,GAAG,KAAK,GACb,EAAE,EAAE;IACH,OAAO,CACL,KAAC,SAAS,cACR,iBACE,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,aAE3D,iBAAQ,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAC,WAAW,GAAG,yDAGpC,GACE,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import VideoPlayer from '../VideoPlayer';
|
|
3
|
+
import { styled } from '@mui/material/styles';
|
|
4
|
+
const Container = styled('div')(() => ({
|
|
5
|
+
width: '100%',
|
|
6
|
+
height: '600px',
|
|
7
|
+
position: 'relative',
|
|
8
|
+
overflow: 'hidden',
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
flexWrap: 'wrap',
|
|
12
|
+
gap: '24px',
|
|
13
|
+
alignItems: 'center',
|
|
14
|
+
justifyContent: 'center',
|
|
15
|
+
}));
|
|
16
|
+
const Banner = ({ src_video, children }) => {
|
|
17
|
+
return (_jsxs(Container, { children: [children, _jsx(VideoPlayer, { videoSrc: src_video })] }));
|
|
18
|
+
};
|
|
19
|
+
export default Banner;
|
|
20
|
+
//# sourceMappingURL=BannerVideo.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BannerVideo.js","sourceRoot":"","sources":["../../../src/components/Banner/BannerVideo.tsx"],"names":[],"mappings":";AACA,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACrC,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,OAAO;IACf,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,KAAK;IACpB,QAAQ,EAAE,MAAM;IAChB,GAAG,EAAE,MAAM;IACX,UAAU,EAAE,QAAQ;IACpB,cAAc,EAAE,QAAQ;CACzB,CAAC,CAAC,CAAC;AAOJ,MAAM,MAAM,GAA0B,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,EAAE;IAEhE,OAAO,CACL,MAAC,SAAS,eACP,QAAQ,EACT,KAAC,WAAW,IAAC,QAAQ,EAAE,SAAS,GAAgB,IACtC,CACb,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const ContentBannerCenter: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
|
+
export declare const ContentBannerLeft: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
3
|
+
export declare const ContentBanner2Columns: import("@emotion/styled").StyledComponent<import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme> & {
|
|
4
|
+
top: string;
|
|
5
|
+
height: string;
|
|
6
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { styled } from '@mui/material/styles';
|
|
2
|
+
//Usado para criar a area no bannner com 1 coluna alinhada ao centro.
|
|
3
|
+
export const ContentBannerCenter = styled('div')(() => ({
|
|
4
|
+
display: 'flex',
|
|
5
|
+
flexDirection: 'row',
|
|
6
|
+
justifyContent: 'center',
|
|
7
|
+
alignItems: 'center',
|
|
8
|
+
width: '100%',
|
|
9
|
+
height: '100%',
|
|
10
|
+
boxSizing: 'border-box',
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
position: 'relative',
|
|
13
|
+
}));
|
|
14
|
+
//Usado para criar a area no bannner com 1 coluna alinhada a esquerda.
|
|
15
|
+
export const ContentBannerLeft = styled('div')(() => ({
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
justifyContent: 'flex-start',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
width: '100%',
|
|
21
|
+
height: '100%',
|
|
22
|
+
boxSizing: 'border-box',
|
|
23
|
+
overflow: 'hidden',
|
|
24
|
+
position: 'relative',
|
|
25
|
+
}));
|
|
26
|
+
//Usado para criar a area no banner com duas colunas. 50% cada coluna.
|
|
27
|
+
//Para dispositivos menores será exibido 2 linhas.
|
|
28
|
+
export const ContentBanner2Columns = styled('div', {
|
|
29
|
+
shouldForwardProp: (prop) => !['top', 'height'].includes(prop),
|
|
30
|
+
})(({ theme, top = '10px', height = '100px' }) => ({
|
|
31
|
+
display: 'grid',
|
|
32
|
+
gridTemplateRows: '1fr 1fr',
|
|
33
|
+
justifyItems: 'center',
|
|
34
|
+
alignItems: 'center',
|
|
35
|
+
width: '100%',
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
top: top,
|
|
38
|
+
height: height,
|
|
39
|
+
[theme.breakpoints.up('md')]: {
|
|
40
|
+
gridTemplateRows: 'unset', // Remover gridTemplateRows para não conflitar
|
|
41
|
+
gridTemplateColumns: '50% 50%',
|
|
42
|
+
},
|
|
43
|
+
}));
|
|
44
|
+
//# sourceMappingURL=ContentBannerStyled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentBannerStyled.js","sourceRoot":"","sources":["../../../src/components/banner/ContentBannerStyled.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,qEAAqE;AACrE,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACtD,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAC,CAAC;AAEJ,sEAAsE;AACtE,MAAM,CAAC,MAAM,iBAAiB,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;IACpD,OAAO,EAAE,MAAM;IACf,aAAa,EAAE,KAAK;IACpB,cAAc,EAAE,YAAY;IAC5B,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,SAAS,EAAE,YAAY;IACvB,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,UAAU;CACrB,CAAC,CAAC,CAAC;AAEJ,sEAAsE;AACtE,kDAAkD;AAClD,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,KAAK,EAAE;IACjD,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,KAAK,EAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC7C,CAAC,CAAgC,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,MAAM,EAAE,MAAM,GAAC,OAAO,EAAC,EAAE,EAAE,CAAC,CAAC;IAE7E,OAAO,EAAE,MAAM;IACf,gBAAgB,EAAE,SAAS;IAC3B,YAAY,EAAE,QAAQ;IACtB,UAAU,EAAE,QAAQ;IACpB,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,UAAU;IACpB,GAAG,EAAE,GAAG;IACR,MAAM,EAAE,MAAM;IAEd,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE;QAC5B,gBAAgB,EAAE,OAAO,EAAE,8CAA8C;QACzE,mBAAmB,EAAE,SAAS;KAC/B;CAEF,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BannerResponsiveConfig } from '@/types/BannerResponsiveConfig';
|
|
3
|
+
interface BannerSources {
|
|
4
|
+
xs: BannerResponsiveConfig;
|
|
5
|
+
sm: BannerResponsiveConfig;
|
|
6
|
+
md: BannerResponsiveConfig;
|
|
7
|
+
lg: BannerResponsiveConfig;
|
|
8
|
+
xl: BannerResponsiveConfig;
|
|
9
|
+
}
|
|
10
|
+
interface BannerProps {
|
|
11
|
+
srcSet: BannerSources;
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
declare const ResponsiveBanner: React.FC<BannerProps>;
|
|
15
|
+
export default ResponsiveBanner;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect } from 'react';
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
4
|
+
import { ContainerSafeSemMargem } from '../containers/ContainerSafe';
|
|
5
|
+
import { styled } from '@mui/material/styles';
|
|
6
|
+
const Container = styled('div', {
|
|
7
|
+
shouldForwardProp: (prop) => !['height_xs', 'height_sm', 'height_md', 'height_lg', 'height_xl'].includes(prop),
|
|
8
|
+
})(({ theme, height_xs, height_sm, height_md, height_lg, height_xl }) => ({
|
|
9
|
+
width: '100%',
|
|
10
|
+
position: 'relative',
|
|
11
|
+
overflow: 'hidden',
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'center',
|
|
14
|
+
alignItems: 'center',
|
|
15
|
+
// Breakpoints para diferentes larguras de tela
|
|
16
|
+
[theme.breakpoints.down('sm')]: {
|
|
17
|
+
height: height_xs, // Menor que 600px
|
|
18
|
+
},
|
|
19
|
+
[theme.breakpoints.up('sm')]: {
|
|
20
|
+
height: height_sm, // Entre 600px e 960px
|
|
21
|
+
},
|
|
22
|
+
[theme.breakpoints.up('md')]: {
|
|
23
|
+
height: height_md, // Entre 960px e 1280px
|
|
24
|
+
},
|
|
25
|
+
[theme.breakpoints.up('lg')]: {
|
|
26
|
+
height: height_lg, // Entre 1280px e 1920px
|
|
27
|
+
},
|
|
28
|
+
[theme.breakpoints.up('xl')]: {
|
|
29
|
+
height: height_xl, // Acima de 1920px
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
const ResponsiveBanner = ({ srcSet, children }) => {
|
|
33
|
+
const theme = useTheme();
|
|
34
|
+
const [isLoaded, setIsLoaded] = useState(false);
|
|
35
|
+
const imgRef = useRef(null);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
const img = imgRef.current;
|
|
38
|
+
if (!img)
|
|
39
|
+
return;
|
|
40
|
+
if (img.complete) {
|
|
41
|
+
setIsLoaded(true);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const handleLoad = () => setIsLoaded(true);
|
|
45
|
+
img.addEventListener('load', handleLoad);
|
|
46
|
+
return () => img.removeEventListener('load', handleLoad);
|
|
47
|
+
}
|
|
48
|
+
}, []);
|
|
49
|
+
return (_jsxs(Container, { height_xs: srcSet.xs.height, height_sm: srcSet.sm.height, height_md: srcSet.md.height, height_lg: srcSet.lg.height, height_xl: srcSet.xl.height, children: [!isLoaded && (_jsx("div", { style: {
|
|
50
|
+
position: 'absolute',
|
|
51
|
+
zIndex: 1,
|
|
52
|
+
color: '#ededed',
|
|
53
|
+
fontSize: '1.2rem',
|
|
54
|
+
}, children: "Carregando imagem..." })), _jsxs("picture", { style: {
|
|
55
|
+
position: 'absolute',
|
|
56
|
+
inset: 0,
|
|
57
|
+
zIndex: 0,
|
|
58
|
+
width: '100%',
|
|
59
|
+
height: '100%',
|
|
60
|
+
}, children: [_jsx("source", { media: `(min-width: ${theme.breakpoints.values.xs}px) and (max-width: ${theme.breakpoints.values.sm - 1}px)`, srcSet: srcSet.xs.image }), _jsx("source", { media: `(min-width: ${theme.breakpoints.values.sm}px) and (max-width: ${theme.breakpoints.values.md - 1}px)`, srcSet: srcSet.sm.image }), _jsx("source", { media: `(min-width: ${theme.breakpoints.values.md}px) and (max-width: ${theme.breakpoints.values.lg - 1}px)`, srcSet: srcSet.md.image }), _jsx("source", { media: `(min-width: ${theme.breakpoints.values.lg}px) and (max-width: ${theme.breakpoints.values.xl - 1}px)`, srcSet: srcSet.lg.image }), _jsx("img", { ref: imgRef, src: srcSet.xl.image, alt: "Banner", style: {
|
|
61
|
+
width: '100%',
|
|
62
|
+
height: '100%',
|
|
63
|
+
objectFit: 'cover',
|
|
64
|
+
display: isLoaded ? 'block' : 'none',
|
|
65
|
+
} })] }), isLoaded && (_jsx(ContainerSafeSemMargem, { id: "areasafebanner", children: children }))] }));
|
|
66
|
+
};
|
|
67
|
+
export default ResponsiveBanner;
|
|
68
|
+
//# sourceMappingURL=ResponsiveBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ResponsiveBanner.js","sourceRoot":"","sources":["../../../src/components/banner/ResponsiveBanner.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAG9C,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,EAAE;IAC9B,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAC1B,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,IAAc,CAAC;CAC9F,CAAC,CAMC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC,CAAC;IAExE,KAAK,EAAE,MAAM;IACb,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,QAAQ;IAClB,OAAO,EAAE,MAAM;IACf,cAAc,EAAE,QAAQ;IACxB,UAAU,EAAE,QAAQ;IAEpB,+CAA+C;IAC/C,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,EAAE;QAC9B,MAAM,EAAE,SAAS,EAAE,kBAAkB;KACtC;IACD,CAAC,KAAK,CAAC,WAAW,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