@crtobiasdelsud/portal-ui 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/CHANGELOG.md +71 -0
- package/README.md +829 -0
- package/package.json +43 -0
- package/src/adapters/AdaptersContext.jsx +28 -0
- package/src/components/ArticleHero/ArticleHero.jsx +73 -0
- package/src/components/ArticleHero/ArticleHero.module.scss +89 -0
- package/src/components/ArticleHero/variants/V0/V0.jsx +29 -0
- package/src/components/ArticleHero/variants/V0/V0.module.scss +51 -0
- package/src/components/ArticleHero/variants/V0Desktop/V0Desktop.jsx +29 -0
- package/src/components/ArticleHero/variants/V0Desktop/V0Desktop.module.scss +54 -0
- package/src/components/ArticleHero/variants/V0Tablet/V0Tablet.jsx +29 -0
- package/src/components/ArticleHero/variants/V0Tablet/V0Tablet.module.scss +49 -0
- package/src/components/ArticleHero/variants/V1/V1.jsx +29 -0
- package/src/components/ArticleHero/variants/V1/V1.module.scss +40 -0
- package/src/components/ArticleHero/variants/V2/V2.jsx +29 -0
- package/src/components/ArticleHero/variants/V2/V2.module.scss +44 -0
- package/src/components/ArticleHero/variants/V3/V3.jsx +25 -0
- package/src/components/ArticleHero/variants/V3/V3.module.scss +41 -0
- package/src/components/ArticleHero/variants/V4/V4.jsx +25 -0
- package/src/components/ArticleHero/variants/V4/V4.module.scss +36 -0
- package/src/components/ArticleHero/variants/V5/V5.jsx +25 -0
- package/src/components/ArticleHero/variants/V5/V5.module.scss +33 -0
- package/src/components/ArticleHeroFull/ArticleHeroFull.jsx +38 -0
- package/src/components/ArticleHeroFull/ArticleHeroFull.module.scss +116 -0
- package/src/components/ArticleSidebar/ArticleSidebar.jsx +28 -0
- package/src/components/ArticleSidebar/ArticleSidebar.module.scss +41 -0
- package/src/components/AuthorBlock/AuthorBlock.jsx +67 -0
- package/src/components/AuthorBlock/AuthorBlock.module.scss +35 -0
- package/src/components/AuthorBlock/variants/V1/V1.jsx +38 -0
- package/src/components/AuthorBlock/variants/V1/V1.module.scss +25 -0
- package/src/components/AuthorBlock/variants/V2/V2.jsx +38 -0
- package/src/components/AuthorBlock/variants/V2/V2.module.scss +10 -0
- package/src/components/AuthorBlock/variants/V3/V3.jsx +30 -0
- package/src/components/AuthorBlock/variants/V3/V3.module.scss +10 -0
- package/src/components/AuthorBlock/variants/V4/V4.jsx +30 -0
- package/src/components/AuthorBlock/variants/V4/V4.module.scss +10 -0
- package/src/components/Banner/Banner.module.scss +70 -0
- package/src/components/Banner/BannerDisplay.jsx +118 -0
- package/src/components/Banner/BannerView.jsx +35 -0
- package/src/components/Blocks/BlockColumns/BlockColumns.jsx +37 -0
- package/src/components/Blocks/BlockColumns/BlockColumns.module.scss +64 -0
- package/src/components/Blocks/BlockColumnsBajada/BlockColumnsBajada.jsx +38 -0
- package/src/components/Blocks/BlockColumnsBajada/BlockColumnsBajada.module.scss +64 -0
- package/src/components/Blocks/BlockMain/BlockMain.jsx +18 -0
- package/src/components/Blocks/BlockMain/BlockMain.module.scss +9 -0
- package/src/components/Blocks/BlockMainNarrow/BlockMainNarrow.jsx +18 -0
- package/src/components/Blocks/BlockMainNarrow/BlockMainNarrow.module.scss +9 -0
- package/src/components/Blocks/BlockMainSidebar/BlockMainSidebar.jsx +33 -0
- package/src/components/Blocks/BlockMainSidebar/BlockMainSidebar.module.scss +44 -0
- package/src/components/Blocks/BlockStack/BlockStack.jsx +8 -0
- package/src/components/Blocks/BlockStack/BlockStack.module.scss +18 -0
- package/src/components/Blocks/WidgetErrorBoundary.jsx +43 -0
- package/src/components/Breadcrumb/Breadcrumb.jsx +24 -0
- package/src/components/Breadcrumb/Breadcrumb.module.scss +33 -0
- package/src/components/Breadcrumb/variants/V1/V1.jsx +39 -0
- package/src/components/Breadcrumb/variants/V1/V1.module.scss +3 -0
- package/src/components/Breadcrumb/variants/V2/V2.jsx +28 -0
- package/src/components/Breadcrumb/variants/V2/V2.module.scss +3 -0
- package/src/components/Breadcrumb/variants/V3/V3.jsx +28 -0
- package/src/components/Breadcrumb/variants/V3/V3.module.scss +3 -0
- package/src/components/Breadcrumb/variants/V4/V4.jsx +28 -0
- package/src/components/Breadcrumb/variants/V4/V4.module.scss +3 -0
- package/src/components/Breadcrumb/variants/V5/V5.jsx +28 -0
- package/src/components/Breadcrumb/variants/V5/V5.module.scss +4 -0
- package/src/components/Cabezal/Cabezal.module.scss +82 -0
- package/src/components/Cabezal/CabezalView.jsx +87 -0
- package/src/components/Cabezal/CardCabezal/CardCabezal.module.scss +403 -0
- package/src/components/Cabezal/CardCabezal/index.jsx +25 -0
- package/src/components/Cabezal/CardCabezal/variants/Amp/Amp.jsx +20 -0
- package/src/components/Cabezal/CardCabezal/variants/Carrusel/Carrusel.jsx +39 -0
- package/src/components/Cabezal/CardCabezal/variants/Carrusel/Carrusel.module.scss +87 -0
- package/src/components/Cabezal/CardCabezal/variants/Compact/Compact.jsx +36 -0
- package/src/components/Cabezal/CardCabezal/variants/Default/Default.jsx +35 -0
- package/src/components/Cabezal/CardCabezal/variants/Featured/Featured.jsx +36 -0
- package/src/components/Cabezal/CardCabezal/variants/FeaturedDuo/FeaturedDuo.jsx +36 -0
- package/src/components/Cabezal/CardCabezal/variants/FeaturedHorizontal/FeaturedHorizontal.jsx +36 -0
- package/src/components/Cabezal/CardCabezal/variants/Medium/Medium.jsx +35 -0
- package/src/components/Cabezal/CardCabezal/variants/Ranked/Ranked.jsx +36 -0
- package/src/components/Cabezal/variants/Carrusel/Carrusel.jsx +167 -0
- package/src/components/Cabezal/variants/Carrusel/Carrusel.module.scss +145 -0
- package/src/components/Cabezal/variants/Categoria/Categoria.jsx +29 -0
- package/src/components/Cabezal/variants/Categoria/Categoria.module.scss +82 -0
- package/src/components/Cabezal/variants/CategoriaDos/CategoriaDos.jsx +29 -0
- package/src/components/Cabezal/variants/CategoriaDos/CategoriaDos.module.scss +99 -0
- package/src/components/Cabezal/variants/Compact/Compact.jsx +24 -0
- package/src/components/Cabezal/variants/Compact/Compact.module.scss +73 -0
- package/src/components/Cabezal/variants/Default/Default.jsx +24 -0
- package/src/components/Cabezal/variants/Default/Default.module.scss +71 -0
- package/src/components/Cabezal/variants/Desktop/Desktop.jsx +45 -0
- package/src/components/Cabezal/variants/Desktop/Desktop.module.scss +113 -0
- package/src/components/Cabezal/variants/Duo/Duo.jsx +24 -0
- package/src/components/Cabezal/variants/Duo/Duo.module.scss +72 -0
- package/src/components/Cabezal/variants/DuoSinCopete/DuoSinCopete.jsx +24 -0
- package/src/components/Cabezal/variants/DuoSinCopete/DuoSinCopete.module.scss +72 -0
- package/src/components/Cabezal/variants/Horizontal/Horizontal.jsx +24 -0
- package/src/components/Cabezal/variants/Horizontal/Horizontal.module.scss +64 -0
- package/src/components/Cabezal/variants/LeeAdemas/LeeAdemas.jsx +53 -0
- package/src/components/Cabezal/variants/LeeAdemas/LeeAdemas.module.scss +103 -0
- package/src/components/Cabezal/variants/LoQueSeLee/LoQueSeLee.jsx +48 -0
- package/src/components/Cabezal/variants/LoQueSeLee/LoQueSeLee.module.scss +103 -0
- package/src/components/Cabezal/variants/LoQueSeLee/LoQueSeLeeSkeleton.jsx +21 -0
- package/src/components/Cabezal/variants/LoQueSeLee/LoQueSeLeeSkeleton.module.scss +34 -0
- package/src/components/Cabezal/variants/Medium/Medium.jsx +24 -0
- package/src/components/Cabezal/variants/Medium/Medium.module.scss +78 -0
- package/src/components/Cabezal/variants/Mobile/Mobile.jsx +48 -0
- package/src/components/Cabezal/variants/Mobile/Mobile.module.scss +64 -0
- package/src/components/Cabezal/variants/Ranking/Ranking.jsx +24 -0
- package/src/components/Cabezal/variants/Ranking/Ranking.module.scss +79 -0
- package/src/components/Cabezal/variants/SeguiLeyendo/SeguiLeyendo.jsx +38 -0
- package/src/components/Cabezal/variants/SeguiLeyendo/SeguiLeyendo.module.scss +52 -0
- package/src/components/Cabezal/variants/Tablet/Tablet.jsx +45 -0
- package/src/components/Cabezal/variants/Tablet/Tablet.module.scss +113 -0
- package/src/components/Cabezal/variants/Tres/Tres.jsx +24 -0
- package/src/components/Cabezal/variants/Tres/Tres.module.scss +74 -0
- package/src/components/Cabezal/variants/UnaDetallada/UnaDetallada.jsx +29 -0
- package/src/components/Cabezal/variants/UnaDetallada/UnaDetallada.module.scss +86 -0
- package/src/components/Cards/ArticleBody/ArticleBody.module.scss +9 -0
- package/src/components/Cards/ArticleBody/ArticleBodyView.jsx +23 -0
- package/src/components/Cards/ArticleCard/ArticleCard.jsx +111 -0
- package/src/components/Cards/ArticleCard/ArticleCard.module.scss +129 -0
- package/src/components/Cards/Bajada/Bajada.jsx +41 -0
- package/src/components/Cards/Bajada/Bajada.module.scss +113 -0
- package/src/components/Cards/Bajada/variants/V1/V1.jsx +20 -0
- package/src/components/Cards/Bajada/variants/V1/V1.module.scss +2 -0
- package/src/components/Cards/Bajada/variants/V2/V2.jsx +20 -0
- package/src/components/Cards/Bajada/variants/V2/V2.module.scss +2 -0
- package/src/components/Clima/Clima.module.scss +93 -0
- package/src/components/Clima/ClimaView.jsx +45 -0
- package/src/components/DateTime/DateTime.jsx +26 -0
- package/src/components/DateTime/DateTime.module.scss +29 -0
- package/src/components/DolarTicker/DolarTicker.jsx +137 -0
- package/src/components/DolarTicker/DolarTicker.module.scss +249 -0
- package/src/components/DolarTicker/arrow_back_ios_black.svg +3 -0
- package/src/components/DolarTicker/arrow_back_ios_white.svg +3 -0
- package/src/components/DolarTicker/arrow_downward.svg +3 -0
- package/src/components/DolarTicker/arrow_upward.svg +3 -0
- package/src/components/DolarTickerOriginal/DolarTickerOriginal.jsx +137 -0
- package/src/components/DolarTickerOriginal/DolarTickerOriginal.module.scss +235 -0
- package/src/components/DolarTickerOriginal/arrow_back_ios_black.svg +3 -0
- package/src/components/DolarTickerOriginal/arrow_back_ios_white.svg +3 -0
- package/src/components/DolarTickerOriginal/arrow_downward.svg +3 -0
- package/src/components/DolarTickerOriginal/arrow_upward.svg +3 -0
- package/src/components/EditorOutput/EditorOutput.jsx +303 -0
- package/src/components/EditorOutput/EditorOutput.module.scss +310 -0
- package/src/components/EditorOutputFull/EditorOutputFull.jsx +303 -0
- package/src/components/EditorOutputFull/EditorOutputFull.module.scss +317 -0
- package/src/components/Feed/Feed.module.scss +77 -0
- package/src/components/Feed/FeedView.jsx +25 -0
- package/src/components/Feed/variants/V1/V1.jsx +34 -0
- package/src/components/Feed/variants/V1/V1.module.scss +39 -0
- package/src/components/Feed/variants/V2/V2.jsx +36 -0
- package/src/components/Feed/variants/V2/V2.module.scss +72 -0
- package/src/components/Footers/FooterSimple/FooterSimple.jsx +170 -0
- package/src/components/Footers/FooterSimple/FooterSimple.module.scss +256 -0
- package/src/components/Headers/HeaderSimple/CategoriesBar/CategoriesBar.jsx +104 -0
- package/src/components/Headers/HeaderSimple/CategoriesBar/CategoriesBar.module.scss +112 -0
- package/src/components/Headers/HeaderSimple/DrawerContext/DrawerContext.jsx +44 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleAmp/HeaderSimpleAmp.jsx +95 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleAmp/HeaderSimpleAmp.module.scss +2 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleDesktop/HeaderSimpleDesktop.jsx +93 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleDesktop/HeaderSimpleDesktop.module.scss +121 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleDesktopCompact/HeaderSimpleDesktopCompact.jsx +96 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleDesktopCompact/HeaderSimpleDesktopCompact.module.scss +137 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleDesktopCompact/SearchTrigger.jsx +17 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleMobile/HeaderSimpleMobile.jsx +89 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleMobile/HeaderSimpleMobile.module.scss +76 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleSwitch/HeaderSimpleSwitch.jsx +47 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleSwitch/HeaderSwitch.jsx +32 -0
- package/src/components/Headers/HeaderSimple/HeaderSimpleSwitch/HeaderSwitch.module.scss +46 -0
- package/src/components/Headers/HeaderSimple/LiveBanner/LiveBanner.jsx +79 -0
- package/src/components/Headers/HeaderSimple/LiveBanner/LiveBanner.module.scss +102 -0
- package/src/components/Headers/HeaderSimple/MenuDrawer/MenuDrawer.jsx +217 -0
- package/src/components/Headers/HeaderSimple/MenuDrawer/MenuDrawer.module.scss +243 -0
- package/src/components/Headers/HeaderSimple/_headerUtils.js +48 -0
- package/src/components/Headers/HeaderSimple/_logos/mendoza-claro.svg +43 -0
- package/src/components/Headers/HeaderSimple/_logos/mendoza-oscuro.svg +43 -0
- package/src/components/Hero/Hero.module.scss +131 -0
- package/src/components/Hero/HeroView.jsx +48 -0
- package/src/components/Recommended/Recommended.module.scss +119 -0
- package/src/components/Recommended/RecommendedView.jsx +23 -0
- package/src/components/ShareBlock/ShareBlock.jsx +75 -0
- package/src/components/ShareBlock/ShareBlock.module.scss +60 -0
- package/src/components/ShareBlock/variants/V1/V1.jsx +27 -0
- package/src/components/ShareBlock/variants/V1/V1.module.scss +2 -0
- package/src/components/ShareBlock/variants/V2/V2.jsx +27 -0
- package/src/components/ShareBlock/variants/V2/V2.module.scss +3 -0
- package/src/components/SpeechButton/SpeechButton.jsx +60 -0
- package/src/components/SpeechButton/SpeechButton.module.scss +49 -0
- package/src/components/SpeechPlayerBar/SpeechPlayerBar.jsx +92 -0
- package/src/components/SpeechPlayerBar/SpeechPlayerBar.module.scss +180 -0
- package/src/components/SpeechProviderWrapper/SpeechProviderWrapper.jsx +13 -0
- package/src/components/TextWrap/TextWrap.module.scss +72 -0
- package/src/components/TextWrap/TextWrapView.jsx +23 -0
- package/src/components/UI/AspectImage/AspectImage.jsx +53 -0
- package/src/components/UI/FocalImage/FocalImage.jsx +36 -0
- package/src/components/UI/Icon/Icon.jsx +40 -0
- package/src/components/UI/Icon/Icon.module.scss +82 -0
- package/src/components/UI/IconSmall/IconSmall.jsx +40 -0
- package/src/components/UI/IconSmall/IconSmall.module.scss +82 -0
- package/src/components/UI/PageWrapper/PageWrapper.jsx +9 -0
- package/src/components/UI/PageWrapper/PageWrapper.module.scss +5 -0
- package/src/components/UI/ToolTip/ToolTip.jsx +49 -0
- package/src/components/UI/ToolTip/ToolTip.module.scss +26 -0
- package/src/components/UI/index.js +6 -0
- package/src/constants/imageSizes.js +10 -0
- package/src/context/SiteConfigContext.jsx +79 -0
- package/src/context/SpeechContext.jsx +138 -0
- package/src/data/ArticlePoolContext.jsx +83 -0
- package/src/data/index.js +7 -0
- package/src/data/useArticles.js +67 -0
- package/src/index.js +101 -0
- package/src/styles/index.scss +3 -0
- package/src/styles/mixins/_helpers.scss +6 -0
- package/src/styles/mixins/_media.scss +30 -0
- package/src/styles/variables/_breakpoint.scss +4 -0
- package/src/styles/variables/_colors.scss +4 -0
- package/src/styles/variables/_spacing.scss +0 -0
- package/src/utils/colorContrast.js +64 -0
- package/src/utils/fechaHora.js +26 -0
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@crtobiasdelsud/portal-ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Componentes compartidos entre el portal (Next) y el CMS (Vite) — widgets, views, providers para adapters y article pool.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./src/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/index.js",
|
|
9
|
+
"./adapters": "./src/adapters/AdaptersContext.jsx",
|
|
10
|
+
"./data": "./src/data/index.js",
|
|
11
|
+
"./components/*": "./src/components/*"
|
|
12
|
+
},
|
|
13
|
+
"files": [
|
|
14
|
+
"src",
|
|
15
|
+
"README.md",
|
|
16
|
+
"CHANGELOG.md"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"release:patch": "npm version patch && npm publish --access public",
|
|
20
|
+
"release:minor": "npm version minor && npm publish --access public",
|
|
21
|
+
"release:major": "npm version major && npm publish --access public"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"react": "^19",
|
|
25
|
+
"react-dom": "^19",
|
|
26
|
+
"sass": "^1.98"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"react": "^19",
|
|
30
|
+
"react-dom": "^19"
|
|
31
|
+
},
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"portal",
|
|
37
|
+
"cms",
|
|
38
|
+
"widgets",
|
|
39
|
+
"react",
|
|
40
|
+
"next"
|
|
41
|
+
],
|
|
42
|
+
"license": "MIT"
|
|
43
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import { createContext, useContext } from 'react'
|
|
4
|
+
|
|
5
|
+
const AdaptersContext = createContext(null)
|
|
6
|
+
|
|
7
|
+
export function AdaptersProvider({ value, children }) {
|
|
8
|
+
return (
|
|
9
|
+
<AdaptersContext.Provider value={value}>
|
|
10
|
+
{children}
|
|
11
|
+
</AdaptersContext.Provider>
|
|
12
|
+
)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function useAdapters() {
|
|
16
|
+
const adapters = useContext(AdaptersContext)
|
|
17
|
+
if (!adapters) {
|
|
18
|
+
throw new Error(
|
|
19
|
+
'[portal-ui] useAdapters() llamado fuera de <AdaptersProvider>. ' +
|
|
20
|
+
'Asegurate de envolver tu app con <AdaptersProvider value={{ Image, Link, fetcher }}>.'
|
|
21
|
+
)
|
|
22
|
+
}
|
|
23
|
+
return adapters
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export function useOptionalAdapters() {
|
|
27
|
+
return useContext(AdaptersContext)
|
|
28
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
'use client'
|
|
2
|
+
|
|
3
|
+
import styles from './ArticleHero.module.scss'
|
|
4
|
+
import { useTheme } from '../../context/SiteConfigContext.jsx'
|
|
5
|
+
import AspectImage from '../../components/UI/AspectImage/AspectImage.jsx'
|
|
6
|
+
import V0 from './variants/V0/V0'
|
|
7
|
+
import V1 from './variants/V1/V1'
|
|
8
|
+
import V2 from './variants/V2/V2'
|
|
9
|
+
import V3 from './variants/V3/V3'
|
|
10
|
+
import V4 from './variants/V4/V4'
|
|
11
|
+
import V5 from './variants/V5/V5'
|
|
12
|
+
import V0Tablet from './variants/V0Tablet/V0Tablet'
|
|
13
|
+
import V0Desktop from './variants/V0Desktop/V0Desktop'
|
|
14
|
+
|
|
15
|
+
const VARIANTS = { '0': V0, '1': V1, '2': V2, '3': V3, '4': V4, '5': V5 }
|
|
16
|
+
|
|
17
|
+
export default function ArticleHero({ titulo, volanta, copete, imagen, focalPoint, isAmp = false, extras = null, hideImageOnDesktop = false }) {
|
|
18
|
+
const theme = useTheme()
|
|
19
|
+
const variant = String(theme.articleHero ?? 1)
|
|
20
|
+
|
|
21
|
+
const inlineStyle = isAmp ? {} : {
|
|
22
|
+
fontFamily: theme.fontFamily,
|
|
23
|
+
'--primary-color': theme.primary,
|
|
24
|
+
'--surface-color': theme.surface,
|
|
25
|
+
'--secondary-color': theme.secondary,
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
const ExtrasEl = (!isAmp && extras) ? <div className={styles.extras}>{extras}</div> : null
|
|
29
|
+
|
|
30
|
+
const ImgEl = imagen
|
|
31
|
+
? isAmp
|
|
32
|
+
? <img src={imagen} alt={titulo ?? ''} className="article-hero__img" />
|
|
33
|
+
: <AspectImage src={imagen} alt={titulo ?? ''} aspect="16:9" fill={true} focalPoint={focalPoint} />
|
|
34
|
+
: null
|
|
35
|
+
|
|
36
|
+
const imgWrapClass = isAmp
|
|
37
|
+
? 'article-hero__img-wrap'
|
|
38
|
+
: `${styles.imgWrap}${hideImageOnDesktop ? ` ${styles.imgHiddenDesktop}` : ''}`
|
|
39
|
+
|
|
40
|
+
const imgOnlyClass = (!isAmp && hideImageOnDesktop) ? styles.imgHiddenDesktop : undefined
|
|
41
|
+
const noImgMod = (!isAmp && hideImageOnDesktop) ? ` ${styles.noImgDesktop}` : ''
|
|
42
|
+
|
|
43
|
+
const MobileVariant = VARIANTS[variant] ?? V1
|
|
44
|
+
|
|
45
|
+
const sharedProps = {
|
|
46
|
+
isAmp,
|
|
47
|
+
inlineStyle,
|
|
48
|
+
titulo,
|
|
49
|
+
volanta,
|
|
50
|
+
copete,
|
|
51
|
+
ImgEl,
|
|
52
|
+
ExtrasEl,
|
|
53
|
+
imgWrapClass,
|
|
54
|
+
imgOnlyClass,
|
|
55
|
+
noImgMod,
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (isAmp) return <MobileVariant {...sharedProps} />
|
|
59
|
+
|
|
60
|
+
return (
|
|
61
|
+
<>
|
|
62
|
+
<div className={styles.mobileOnly}>
|
|
63
|
+
<MobileVariant {...sharedProps} />
|
|
64
|
+
</div>
|
|
65
|
+
<div className={styles.tabletOnly}>
|
|
66
|
+
<V0Tablet {...sharedProps} />
|
|
67
|
+
</div>
|
|
68
|
+
<div className={styles.desktopUp}>
|
|
69
|
+
<V0Desktop {...sharedProps} />
|
|
70
|
+
</div>
|
|
71
|
+
</>
|
|
72
|
+
)
|
|
73
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use "../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
// ── Base ─────────────────────────────────────────────────────────────────────
|
|
4
|
+
.container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 631px;
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
font-family: var(--font-family, inherit);
|
|
11
|
+
max-width: 1520px;
|
|
12
|
+
margin-bottom: 30px;
|
|
13
|
+
max-height: 80vh;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.volanta {
|
|
17
|
+
align-self: flex-start;
|
|
18
|
+
background: transparent;
|
|
19
|
+
padding: 0;
|
|
20
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
21
|
+
font-size: 1em;
|
|
22
|
+
font-weight: 500;
|
|
23
|
+
line-height: 1.7625rem;
|
|
24
|
+
color: var(--primary-color, #af0437);
|
|
25
|
+
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.titulo {
|
|
29
|
+
margin: 0;
|
|
30
|
+
font-family: var(--font-titulo, inherit);
|
|
31
|
+
font-weight: 500;
|
|
32
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
33
|
+
line-height: 120%;
|
|
34
|
+
letter-spacing: 0.005em;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.copete {
|
|
38
|
+
margin: 0;
|
|
39
|
+
font-family: var(--font-inter, inherit);
|
|
40
|
+
font-weight: 500;
|
|
41
|
+
font-size: 20px;
|
|
42
|
+
line-height: 100%;
|
|
43
|
+
letter-spacing: -0.02em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.imgWrap {
|
|
47
|
+
position: relative;
|
|
48
|
+
flex: 1;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// ── Responsive: show/hide por breakpoint ──────────────────────────────────────
|
|
52
|
+
.mobileOnly {
|
|
53
|
+
display: contents;
|
|
54
|
+
|
|
55
|
+
@include respond(tablet) { display: none; }
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.tabletOnly {
|
|
59
|
+
display: none;
|
|
60
|
+
|
|
61
|
+
@include respond(tablet) { display: contents; }
|
|
62
|
+
@include respond(desktop) { display: none; }
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.desktopUp {
|
|
66
|
+
display: none;
|
|
67
|
+
|
|
68
|
+
@include respond(desktop) { display: contents; }
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// ── Extras (author + share) — solo desktop ────────────────────────────────────
|
|
72
|
+
.extras {
|
|
73
|
+
display: none;
|
|
74
|
+
|
|
75
|
+
@include respond(desktop) { display: block; }
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
// ── Imagen oculta en tablet+ (se mueve al body del artículo) ─────────────────
|
|
79
|
+
.imgHiddenDesktop {
|
|
80
|
+
@include respond(tablet) { display: none; }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// ── Sin imagen en tablet+: colapsa la altura fija del container ───────────────
|
|
84
|
+
.noImgDesktop {
|
|
85
|
+
@include respond(tablet) {
|
|
86
|
+
height: auto;
|
|
87
|
+
max-height: none;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V0.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V0({ isAmp, inlineStyle, titulo, volanta, copete, ImgEl, ExtrasEl, imgWrapClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
const CopeteEl = copete
|
|
10
|
+
? <p className={isAmp ? 'article-hero__copete' : `${shared.copete} ${s.copete}`}>{copete}</p>
|
|
11
|
+
: null
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<article
|
|
15
|
+
className={isAmp ? 'article-hero article-hero--0' : `${shared.container} ${s.root}${noImgMod}`}
|
|
16
|
+
style={inlineStyle}
|
|
17
|
+
>
|
|
18
|
+
<div className={isAmp ? 'article-hero__text' : s.text}>
|
|
19
|
+
{VolantaEl}
|
|
20
|
+
{TituloEl}
|
|
21
|
+
{CopeteEl}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={`${imgWrapClass} ${s.imgWrap}`}>
|
|
24
|
+
{ImgEl}
|
|
25
|
+
</div>
|
|
26
|
+
{ExtrasEl}
|
|
27
|
+
</article>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
background: var(--surface-color, #f0f0f0);
|
|
5
|
+
height: auto;
|
|
6
|
+
max-height: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.imgWrap {
|
|
10
|
+
aspect-ratio: 16 / 9;
|
|
11
|
+
flex: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text {
|
|
15
|
+
padding-top: 15px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 15px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.volanta {
|
|
23
|
+
align-self: flex-start;
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: var(--primary-color, #b1043f);
|
|
26
|
+
padding: 0;
|
|
27
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
28
|
+
font-size: 1em;
|
|
29
|
+
font-weight: 500;
|
|
30
|
+
line-height: 1.7625rem;
|
|
31
|
+
|
|
32
|
+
@include respond(tablet) {
|
|
33
|
+
font-size: 24px;
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.titulo {
|
|
39
|
+
color: var(--text-color, #252523);
|
|
40
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.copete {
|
|
44
|
+
font-size: 18px;
|
|
45
|
+
margin-bottom: 15px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 24px;
|
|
48
|
+
color: var(--text-color, #252523);
|
|
49
|
+
|
|
50
|
+
@include respond(tablet) { font-size: 1rem; }
|
|
51
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V0Desktop.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V0Desktop({ isAmp, inlineStyle, titulo, volanta, copete, ImgEl, ExtrasEl, imgWrapClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
const CopeteEl = copete
|
|
10
|
+
? <p className={isAmp ? 'article-hero__copete' : `${shared.copete} ${s.copete}`}>{copete}</p>
|
|
11
|
+
: null
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<article
|
|
15
|
+
className={isAmp ? 'article-hero article-hero--0' : `${shared.container} ${s.root}${noImgMod}`}
|
|
16
|
+
style={inlineStyle}
|
|
17
|
+
>
|
|
18
|
+
<div className={isAmp ? 'article-hero__text' : s.text}>
|
|
19
|
+
{VolantaEl}
|
|
20
|
+
{TituloEl}
|
|
21
|
+
{CopeteEl}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={`${imgWrapClass} ${s.imgWrap}`}>
|
|
24
|
+
{ImgEl}
|
|
25
|
+
</div>
|
|
26
|
+
<div className={s.extrasRow}>{ExtrasEl}</div>
|
|
27
|
+
</article>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
background: var(--surface-color, #f0f0f0);
|
|
5
|
+
height: auto;
|
|
6
|
+
max-height: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.imgWrap {
|
|
10
|
+
aspect-ratio: 16 / 9;
|
|
11
|
+
flex: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text {
|
|
15
|
+
padding-top: 35px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 15px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.volanta {
|
|
22
|
+
align-self: flex-start;
|
|
23
|
+
background: transparent;
|
|
24
|
+
color: var(--primary-color, #b1043f);
|
|
25
|
+
padding: 0;
|
|
26
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
27
|
+
font-size: 1.5rem;
|
|
28
|
+
font-weight: 700;
|
|
29
|
+
line-height: 1.7625rem;
|
|
30
|
+
|
|
31
|
+
@include respond(desktop) {
|
|
32
|
+
font-size: 24px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.titulo {
|
|
37
|
+
color: var(--text-color, #252523);
|
|
38
|
+
font-size: 3.75rem;
|
|
39
|
+
font-weight: 700;
|
|
40
|
+
line-height: 4.5rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.copete {
|
|
44
|
+
font-size: 20px;
|
|
45
|
+
margin-bottom: 15px;
|
|
46
|
+
font-weight: 400;
|
|
47
|
+
line-height: 24px;
|
|
48
|
+
color: #252523;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.extrasRow {
|
|
52
|
+
border-bottom: 1px solid #e2e2e2;
|
|
53
|
+
overflow: hidden;
|
|
54
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V0Tablet.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V0Tablet({ isAmp, inlineStyle, titulo, volanta, copete, ImgEl, ExtrasEl, imgWrapClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
const CopeteEl = copete
|
|
10
|
+
? <p className={isAmp ? 'article-hero__copete' : `${shared.copete} ${s.copete}`}>{copete}</p>
|
|
11
|
+
: null
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<article
|
|
15
|
+
className={isAmp ? 'article-hero article-hero--0' : `${shared.container} ${s.root}${noImgMod}`}
|
|
16
|
+
style={inlineStyle}
|
|
17
|
+
>
|
|
18
|
+
<div className={isAmp ? 'article-hero__text' : s.text}>
|
|
19
|
+
{VolantaEl}
|
|
20
|
+
{TituloEl}
|
|
21
|
+
{CopeteEl}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={`${imgWrapClass} ${s.imgWrap}`}>
|
|
24
|
+
{ImgEl}
|
|
25
|
+
</div>
|
|
26
|
+
{ExtrasEl}
|
|
27
|
+
</article>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
background: var(--surface-color, #f0f0f0);
|
|
5
|
+
height: auto;
|
|
6
|
+
max-height: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.imgWrap {
|
|
10
|
+
aspect-ratio: 16 / 9;
|
|
11
|
+
flex: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text {
|
|
15
|
+
padding-top: 15px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 15px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
.volanta {
|
|
23
|
+
align-self: flex-start;
|
|
24
|
+
background: transparent;
|
|
25
|
+
color: var(--primary-color, #b1043f);
|
|
26
|
+
padding: 0;
|
|
27
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
28
|
+
font-size: 1.5rem;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
line-height: 1.7625rem;
|
|
31
|
+
|
|
32
|
+
@include respond(tablet) {
|
|
33
|
+
font-size: 24px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.titulo {
|
|
37
|
+
color: var(--text-color, #252523);
|
|
38
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.copete {
|
|
42
|
+
font-size: 18px;
|
|
43
|
+
margin-bottom: 15px;
|
|
44
|
+
font-weight: 400;
|
|
45
|
+
line-height: 24px;
|
|
46
|
+
color: #252523;
|
|
47
|
+
|
|
48
|
+
@include respond(tablet) { font-size: 1rem; }
|
|
49
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V1.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V1({ isAmp, inlineStyle, titulo, volanta, copete, ImgEl, ExtrasEl, imgWrapClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
const CopeteEl = copete
|
|
10
|
+
? <p className={isAmp ? 'article-hero__copete' : `${shared.copete} ${s.copete}`}>{copete}</p>
|
|
11
|
+
: null
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<article
|
|
15
|
+
className={isAmp ? 'article-hero article-hero--2' : `${shared.container} ${s.root}${noImgMod}`}
|
|
16
|
+
style={inlineStyle}
|
|
17
|
+
>
|
|
18
|
+
<div className={isAmp ? 'article-hero__text' : s.text}>
|
|
19
|
+
{VolantaEl}
|
|
20
|
+
{TituloEl}
|
|
21
|
+
{CopeteEl}
|
|
22
|
+
</div>
|
|
23
|
+
<div className={`${imgWrapClass} ${s.imgWrap}`}>
|
|
24
|
+
{ImgEl}
|
|
25
|
+
</div>
|
|
26
|
+
{ExtrasEl}
|
|
27
|
+
</article>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.root {
|
|
4
|
+
background: var(--surface-color, #f0f0f0);
|
|
5
|
+
height: auto;
|
|
6
|
+
max-height: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.imgWrap {
|
|
10
|
+
aspect-ratio: 16 / 9;
|
|
11
|
+
flex: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text {
|
|
15
|
+
padding-top: 15px;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
gap: 15px;
|
|
19
|
+
}
|
|
20
|
+
.volanta {
|
|
21
|
+
align-self: flex-start;
|
|
22
|
+
background: transparent;
|
|
23
|
+
color: var(--primary-color, #b1043f);
|
|
24
|
+
padding: 0;
|
|
25
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
26
|
+
font-size: 1em;
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
line-height: 1.7625rem;
|
|
29
|
+
color: #B1043F;
|
|
30
|
+
|
|
31
|
+
@include respond(tablet) {
|
|
32
|
+
font-size: 24px;
|
|
33
|
+
font-weight: 700;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.titulo {
|
|
38
|
+
color: #1a1a1a;
|
|
39
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
40
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V2.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V2({ isAmp, inlineStyle, titulo, volanta, copete, ImgEl, ExtrasEl, imgWrapClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
const CopeteEl = copete
|
|
10
|
+
? <p className={isAmp ? 'article-hero__copete' : `${shared.copete} ${s.copete}`}>{copete}</p>
|
|
11
|
+
: null
|
|
12
|
+
|
|
13
|
+
return (
|
|
14
|
+
<article
|
|
15
|
+
className={isAmp ? 'article-hero article-hero--1' : `${shared.container}${noImgMod}`}
|
|
16
|
+
style={inlineStyle}
|
|
17
|
+
>
|
|
18
|
+
<div className={`${imgWrapClass} ${s.imgWrap}`}>
|
|
19
|
+
{VolantaEl}
|
|
20
|
+
{ImgEl}
|
|
21
|
+
</div>
|
|
22
|
+
<div className={isAmp ? 'article-hero__panel' : s.panel}>
|
|
23
|
+
{TituloEl}
|
|
24
|
+
{CopeteEl}
|
|
25
|
+
</div>
|
|
26
|
+
{ExtrasEl}
|
|
27
|
+
</article>
|
|
28
|
+
)
|
|
29
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
|
|
3
|
+
.imgWrap {
|
|
4
|
+
height: 260px;
|
|
5
|
+
flex-shrink: 0;
|
|
6
|
+
|
|
7
|
+
@include respond(tablet) { height: 340px; }
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.panel {
|
|
11
|
+
background: var(--secondary-color);
|
|
12
|
+
padding: 24px 20px 28px;
|
|
13
|
+
flex: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.volanta {
|
|
17
|
+
align-self: flex-start;
|
|
18
|
+
background: transparent;
|
|
19
|
+
color: var(--primary-color, #b1043f);
|
|
20
|
+
padding: 0;
|
|
21
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
22
|
+
font-size: 1em;
|
|
23
|
+
font-weight: 500;
|
|
24
|
+
line-height: 1.7625rem;
|
|
25
|
+
color: #B1043F;
|
|
26
|
+
|
|
27
|
+
@include respond(tablet) {
|
|
28
|
+
font-size: 24px;
|
|
29
|
+
font-weight: 700;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
.titulo {
|
|
33
|
+
color: #ffffff;
|
|
34
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
35
|
+
|
|
36
|
+
@include respond(tablet) { font-size: 1.75rem; }
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.copete {
|
|
40
|
+
color: rgba(255, 255, 255, 0.78);
|
|
41
|
+
font-size: 0.875rem;
|
|
42
|
+
|
|
43
|
+
@include respond(tablet) { font-size: 1rem; }
|
|
44
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import shared from '../../ArticleHero.module.scss'
|
|
2
|
+
import s from './V3.module.scss'
|
|
3
|
+
|
|
4
|
+
export default function V3({ isAmp, inlineStyle, titulo, volanta, ImgEl, ExtrasEl, imgOnlyClass, noImgMod }) {
|
|
5
|
+
const VolantaEl = volanta
|
|
6
|
+
? <span className={isAmp ? 'article-hero__volanta' : `${shared.volanta} ${s.volanta}`}>{volanta}</span>
|
|
7
|
+
: null
|
|
8
|
+
const TituloEl = <h1 className={isAmp ? 'article-hero__titulo' : `${shared.titulo} ${s.titulo}`}>{titulo}</h1>
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<article
|
|
12
|
+
className={isAmp ? 'article-hero article-hero--3' : `${shared.container}${noImgMod}`}
|
|
13
|
+
style={inlineStyle}
|
|
14
|
+
>
|
|
15
|
+
<div className={isAmp ? 'article-hero__img-wrap' : shared.imgWrap}>
|
|
16
|
+
{imgOnlyClass ? <div className={imgOnlyClass}>{ImgEl}</div> : ImgEl}
|
|
17
|
+
<div className={isAmp ? 'article-hero__overlay' : s.overlay}>
|
|
18
|
+
{VolantaEl}
|
|
19
|
+
{TituloEl}
|
|
20
|
+
</div>
|
|
21
|
+
</div>
|
|
22
|
+
{ExtrasEl}
|
|
23
|
+
</article>
|
|
24
|
+
)
|
|
25
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use "../../../../styles/index" as *;
|
|
2
|
+
.volanta {
|
|
3
|
+
align-self: flex-start;
|
|
4
|
+
background: transparent;
|
|
5
|
+
color: var(--primary-color, #b1043f);
|
|
6
|
+
padding: 0;
|
|
7
|
+
font-family: "Inter", "Helvetica", Arial, sans-serif;
|
|
8
|
+
font-size: 1em;
|
|
9
|
+
font-weight: 500;
|
|
10
|
+
line-height: 1.7625rem;
|
|
11
|
+
color: #B1043F;
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@include respond(tablet) { font-size: 24px; }
|
|
16
|
+
@include respond(desktop) { font-size: 24px; }
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.overlay {
|
|
20
|
+
background: linear-gradient(
|
|
21
|
+
to bottom,
|
|
22
|
+
transparent 0%,
|
|
23
|
+
var(--secondary-color) 70%,
|
|
24
|
+
var(--secondary-color) 100%
|
|
25
|
+
);
|
|
26
|
+
position: absolute;
|
|
27
|
+
inset: auto 0 0 0;
|
|
28
|
+
height: 72%;
|
|
29
|
+
display: flex;
|
|
30
|
+
flex-direction: column;
|
|
31
|
+
justify-content: flex-end;
|
|
32
|
+
padding: 20px 18px 24px;
|
|
33
|
+
gap: 8px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.titulo {
|
|
37
|
+
color: #ffffff;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
font-size: clamp(32px, 5vw, 60px);
|
|
40
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
|
|
41
|
+
}
|