Marriage and Family Planning: A Guide for Couples
Hear’s a breakdown of the HTML code you provided, focusing on its structure and purpose:
Overall Structure
The code snippet represents two “slides” within a larger carousel or slider (likely using a library like Swiper, as indicated by the swiper-slide class). Each slide contains a figure with an image and a caption.
Slide 1 Breakdown
* <figure class="swiper-slide flex flex-col gap-4 group bg-white">: This is the container for a single slide.
* swiper-slide: Indicates this is a slide in a Swiper carousel.
* flex flex-col gap-4: Uses CSS Flexbox to arrange content in a column with a gap of 4 units between items.
* group: Used for CSS hover effects that apply to the entire figure.
* bg-white: Sets the background color to white.
* <div class="relative flex justify-centre overflow-hidden aspect-[16/9]">: This is the image container.
* relative: Allows absolute positioning of elements within it (like the zoom icon).
* flex justify-center: Centers the image horizontally using Flexbox.
* overflow-hidden: Hides any part of the image that overflows the container.
* aspect-[16/9]: Sets the aspect ratio of the container to 16:9, ensuring the image maintains its proportions.
* <a ...>: This is a link that, when clicked, likely opens a larger version of the image in a popup.
* dtr-evt="frame foto", dtr-sec="", dtr-act="tombol enlarge frame foto", dtr-ttl="enlarge": These are custom data attributes, likely used by a tracking or analytics system (possibly “Detik.com” based on the domain).
* onclick="_pt(this)": Calls a JavaScript function _pt when the link is clicked.This function probably handles the popup logic.
* href="https://www.detik.com/pop/foto/d-8112248/?zoom=1": The URL that the link points to. It’s a Detik.com photo page with a zoom=1 parameter.
* class="opacity-60 group-hover:opacity-100 transition-opacity duration-300": CSS classes for styling the link. It starts with 60% opacity and transitions to 100% opacity on hover (when the group is hovered over).
* <svg ...>: This is an SVG (Scalable Vector Graphics) icon, likely a zoom or enlarge icon. It’s positioned in the top-right corner of the image.
* <img ...>: This is the actual image.
* src="https://awsimages.detik.net.id/community/media/visual/2023/09/19/wulan-guritno-2.png?w=700&q=90": The URL of the image.
* alt="Wulan Guritno": Alternative text for the image (for accessibility).
* title="wulan Guritno": The title attribute (displayed on hover).
* class="max-h-full max-w-full object-contain": CSS classes for styling the image.
* max-h-full: Sets the maximum height to 100% of the container.
* max-w-full: Sets the maximum width to 100% of the container.
* object-contain: Scales the image to fit within the container while preserving its aspect ratio (it might leave some empty space).
* <figcaption class="text-lg">: This is the caption for the image.
* text-lg: Sets the font size to large.
* `
Target Wulan Guritno is clear: remarried and have children before age
