diff --git a/public/img/grid_image_1.webp b/public/img/grid_image_1.webp new file mode 100644 index 0000000..5f631b4 Binary files /dev/null and b/public/img/grid_image_1.webp differ diff --git a/public/img/grid_image_2.webp b/public/img/grid_image_2.webp new file mode 100644 index 0000000..0395786 Binary files /dev/null and b/public/img/grid_image_2.webp differ diff --git a/public/img/grid_image_3.webp b/public/img/grid_image_3.webp new file mode 100644 index 0000000..94678ee Binary files /dev/null and b/public/img/grid_image_3.webp differ diff --git a/public/img/grid_image_4.webp b/public/img/grid_image_4.webp new file mode 100644 index 0000000..a99f29f Binary files /dev/null and b/public/img/grid_image_4.webp differ diff --git a/src/components/cards/GridCard.astro b/src/components/cards/GridCard.astro new file mode 100644 index 0000000..c665275 --- /dev/null +++ b/src/components/cards/GridCard.astro @@ -0,0 +1,15 @@ +--- +import { Icon } from "astro-icon/components"; + +const { props } = Astro.props; + +const bgClass = props.type === 'text'? `bg-[${props.bgColor}]` : `bg-[url(${props.image})] bg-cover` +--- +
+
+ { props.type === 'text' && ( + +

{props.text}

+ )} +
+
\ No newline at end of file diff --git a/src/components/NewsCard.astro b/src/components/cards/NewsCard.astro similarity index 100% rename from src/components/NewsCard.astro rename to src/components/cards/NewsCard.astro diff --git a/src/components/section/GridSection.astro b/src/components/section/GridSection.astro new file mode 100644 index 0000000..2e503c4 --- /dev/null +++ b/src/components/section/GridSection.astro @@ -0,0 +1,65 @@ +--- +import GridCard from "../cards/GridCard.astro" + +const cards = [ + { + type: 'text', + icon: 'ph:arrow-circle-down-thin', + text: 'Dirección de La Gran Carpa Catedral. Puerto Rico', + bgColor: '#EBE5D0' + }, + { + type: 'image', + image: 'https://picsum.photos/600/600?random=1&grayscale', + }, + { + type: 'text', + icon: 'ph:arrow-circle-right-thin', + text: 'Participación activa en escenarios internacionales.', + bgColor: '#BEA48D' + }, + { + type: 'image', + image: 'https://picsum.photos/600/600?random=1&grayscale', + }, + { + type: 'image', + image: 'https://picsum.photos/600/600?random=1&grayscale', + }, + { + type: 'text', + icon: 'ph:arrow-circle-up-thin', + text: 'Dirección de La Gran Carpa Catedral. Puerto Rico', + bgColor: '#EBE5D0' + }, + { + type: 'image', + image: 'https://picsum.photos/600/600?random=1&grayscale', + }, + { + type: 'text', + icon: 'ph:arrow-circle-left-thin', + text: 'Participación activa en escenarios internacionales.', + bgColor: '#BEA48D' + }, +]; +--- +
+
+
+ { + cards.map((card)=>( + + )) + } + +
+
+
\ No newline at end of file diff --git a/src/components/section/NewsSection.astro b/src/components/section/NewsSection.astro index 6e171d6..830b01a 100644 --- a/src/components/section/NewsSection.astro +++ b/src/components/section/NewsSection.astro @@ -1,7 +1,6 @@ --- -import Image from "astro/components/Image.astro"; import { getCollection, getEntry } from "astro:content"; -import NewsCard from "../NewsCard.astro"; +import NewsCard from "../cards/NewsCard.astro"; const newsItems = await getCollection("news"); ---
diff --git a/src/pages/index.astro b/src/pages/index.astro index f963029..1013edf 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -12,6 +12,7 @@ import IdentitySecion from "../components/section/identitySection.astro"; import { infoboxes } from "../data/content/infosection.js"; import ColorSection from "../components/section/ColorSection.astro"; import TitleSection from "../components/section/TitleSection.astro"; +import GridSection from "../components/section/GridSection.astro"; const carouselImages2 = [ "https://picsum.photos/1920/800?random=1&grayscale", @@ -41,6 +42,10 @@ El CPyJ nace con una misión clara: tender puentes entre la fe y la acción en Su mirada es estratégica, internacional y orientada al futuro, consciente de los conflictos emergentes, las tensiones culturales, los desafíos geopolíticos y la necesidad de liderazgos sólidos capaces de actuar con claridad en tiempos de transformación global.` /> + + + + + +