Desbloquea todos los bloques y plantillas premium con All-Access desde 20 € / 3 meses, cancela cuando quieras. Consigue All-Access
Todos los bloques
Gratis Demo

Marit Solane Demo

A demo block extracted from the Marit Solane template, available in Tailwind CSS.

0 0
Marit Solane Demo preview

Descargar el código

Licencia comercial

Descarga gratis · hasta 5 bloques al día. Ilimitado con All-Access

marit-solane.html
<!DOCTYPE html>
<html lang="en">
<head>
  <script>
    window.FontAwesomeConfig = { autoReplaceSvg: 'nest' };
  </script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/js/all.min.js" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Marit Solane Demo | Tailwind CSS UI Block</title>
  <meta name="description" content="A demo block extracted from the Marit Solane template, available in Tailwind CSS.">
  <meta name="keywords" content="Marit Solane, Tailwind CSS template, HTML website template, artist portfolio template, painter website, art gallery template, artwork series page, artist CV, commissions enquiry form, portfolio template">
  <meta name="author" content="Let's templates">
  <link rel="canonical" href="">

  <meta property="og:type" content="product">
  <meta property="og:site_name" content="Let's templates">
  <meta property="og:locale" content="en_US">
  <meta property="og:url" content="">
  <meta property="og:title" content="Marit Solane | Tailwind CSS Portfolio Template">
  <meta property="og:description" content="A quiet Tailwind CSS template for painters and other artists, with a hairline serif series title beside a slice of a painting, a gallery with wall labels, a to-scale viewer, a series page, a CV and an enquiry form.">
  <meta property="og:image" content="">
  <meta property="og:image:alt" content="Marit Solane template preview">

  <meta name="twitter:card" content="summary_large_image">
  <meta name="twitter:url" content="">
  <meta name="twitter:title" content="Marit Solane | Tailwind CSS Portfolio Template">
  <meta name="twitter:description" content="A quiet Tailwind CSS template for painters and other artists, with a hairline serif series title beside a slice of a painting, a gallery with wall labels, a to-scale viewer, a series page, a CV and an enquiry form.">
  <meta name="twitter:image" content="">
  <meta name="twitter:image:alt" content="Marit Solane template preview">
  <script src="https://cdn.tailwindcss.com/3.4.17"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link href="https://fonts.googleapis.com/css2?family=Archivo:wght@400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {
            ink: { DEFAULT: '#141414', soft: '#4a4a48', mute: '#6f6e6a' },
            line: '#e2e0db',
            wall: '#f1eee9'
          },
          fontFamily: {
            serif: ['"Cormorant Garamond"', 'serif'],
            sans: ['Archivo', 'sans-serif']
          }
        }
      }
    }
  </script>
  <style>
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
    [hidden] { display: none !important; }
    .display { font-family: "Cormorant Garamond", serif; font-weight: 300; line-height: .95; letter-spacing: -.015em; }
    .italic-serif { font-family: "Cormorant Garamond", serif; font-style: italic; font-weight: 300; }
    .label { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

    /* Hero: one series at a time; the tall slice on the right edge is a strip of its lead painting. */
    .slides { display: grid; }
    .slides > * { grid-area: 1 / 1; transition: opacity .6s ease, visibility .6s; }
    .slides > [aria-hidden="true"] { opacity: 0; visibility: hidden; }

    /* To scale: the stage is a wall 360 cm wide and 250 cm high, so 1 cm is 100cqw / 360. */
    .stage { container-type: inline-size; }
    .stage-wall { position: relative; aspect-ratio: 360 / 250; --cm: calc(100cqw / 360); border-bottom: 1px solid #141414; }
    .stage-work { position: absolute; left: 62%; bottom: calc((150 - var(--h) / 2) * var(--cm)); width: calc(var(--w) * var(--cm)); height: calc(var(--h) * var(--cm)); transform: translateX(-50%); object-fit: cover; box-shadow: 0 calc(3 * var(--cm)) calc(8 * var(--cm)) rgba(20, 20, 20, .22); }
    .stage-person { position: absolute; left: 14%; bottom: 0; height: calc(170 * var(--cm)); width: auto; fill: #cdc7bd; }

    dialog.lightbox { max-width: none; max-height: none; height: 100dvh; width: 100vw; margin: 0; padding: 0; background: #fff; }
    dialog.lightbox::backdrop { background: #fff; }
    .reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--reveal-delay, 0ms); }
    .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) { .slides > * { transition: none; } }
  </style>
</head>
<body class="bg-white font-sans text-ink antialiased">
<!-- block:start demo -->
  <section id="to-scale" class="bg-wall px-5 py-20 md:px-14 md:py-28" data-scale>
    <div class="grid gap-12 lg:grid-cols-[.8fr_1.2fr] lg:gap-20">
      <div>
        <p class="label text-ink-mute">On the wall</p>
        <h2 class="display mt-5 text-5xl md:text-7xl">How big is it, really?</h2>
        <p class="mt-6 max-w-md text-lg text-ink-soft">A screen makes every painting the same size. Pick one and see it hung at eye level beside somebody 170 cm tall.</p>
        <div role="radiogroup" aria-label="Choose a painting" class="mt-10 border-t border-ink/20">
            <button type="button" role="radio" aria-checked="true" data-scale-work data-w="120" data-h="90" data-src="https://images.unsplash.com/photo-1515405295579-ba7b45403062?auto=format&amp;fit=crop&amp;w=900&amp;q=80" data-alt="A dark blue painting of broken horizontal strokes, like a sea at night" data-title="Slack Water" class="group flex w-full items-baseline justify-between gap-6 border-b border-ink/20 py-4 text-left text-ink-mute transition hover:text-ink aria-checked:text-ink">
              <span class="italic-serif text-2xl md:text-3xl"><span class="mr-3 inline-block h-2 w-2 rounded-full bg-ink align-middle opacity-0 group-aria-checked:opacity-100"></span>Slack Water</span>
              <span class="shrink-0 text-sm">120 &times; 90 cm</span>
            </button>
            <button type="button" role="radio" aria-checked="false" data-scale-work data-w="100" data-h="140" data-src="https://images.unsplash.com/photo-1618331835717-801e976710b2?auto=format&amp;fit=crop&amp;w=900&amp;q=80" data-alt="Blocks of muted teal, cream and charcoal paint laid on thickly" data-title="Ebb, Evening" class="group flex w-full items-baseline justify-between gap-6 border-b border-ink/20 py-4 text-left text-ink-mute transition hover:text-ink aria-checked:text-ink">
              <span class="italic-serif text-2xl md:text-3xl"><span class="mr-3 inline-block h-2 w-2 rounded-full bg-ink align-middle opacity-0 group-aria-checked:opacity-100"></span>Ebb, Evening</span>
              <span class="shrink-0 text-sm">100 &times; 140 cm</span>
            </button>
            <button type="button" role="radio" aria-checked="false" data-scale-work data-w="150" data-h="150" data-src="https://images.unsplash.com/photo-1536924940846-227afb31e2a5?auto=format&amp;fit=crop&amp;w=900&amp;q=80" data-alt="Heavy blue and rust-orange paint dragged across a dark ground" data-title="Breakwater" class="group flex w-full items-baseline justify-between gap-6 border-b border-ink/20 py-4 text-left text-ink-mute transition hover:text-ink aria-checked:text-ink">
              <span class="italic-serif text-2xl md:text-3xl"><span class="mr-3 inline-block h-2 w-2 rounded-full bg-ink align-middle opacity-0 group-aria-checked:opacity-100"></span>Breakwater</span>
              <span class="shrink-0 text-sm">150 &times; 150 cm</span>
            </button>
            <button type="button" role="radio" aria-checked="false" data-scale-work data-w="60" data-h="60" data-src="https://images.unsplash.com/photo-1531913764164-f85c52e6e654?auto=format&amp;fit=crop&amp;w=900&amp;q=80" data-alt="Overlapping red, yellow and blue rectangles of paint" data-title="Corner Table" class="group flex w-full items-baseline justify-between gap-6 border-b border-ink/20 py-4 text-left text-ink-mute transition hover:text-ink aria-checked:text-ink">
              <span class="italic-serif text-2xl md:text-3xl"><span class="mr-3 inline-block h-2 w-2 rounded-full bg-ink align-middle opacity-0 group-aria-checked:opacity-100"></span>Corner Table</span>
              <span class="shrink-0 text-sm">60 &times; 60 cm</span>
            </button>
            <button type="button" role="radio" aria-checked="false" data-scale-work data-w="56" data-h="76" data-src="https://images.unsplash.com/photo-1557672172-298e090bd0f1?auto=format&amp;fit=crop&amp;w=900&amp;q=80" data-alt="Pale pink and blue pigment running in marbled bands" data-title="First Thaw" class="group flex w-full items-baseline justify-between gap-6 border-b border-ink/20 py-4 text-left text-ink-mute transition hover:text-ink aria-checked:text-ink">
              <span class="italic-serif text-2xl md:text-3xl"><span class="mr-3 inline-block h-2 w-2 rounded-full bg-ink align-middle opacity-0 group-aria-checked:opacity-100"></span>First Thaw</span>
              <span class="shrink-0 text-sm">56 &times; 76 cm</span>
            </button>
        </div>
      </div>
      <figure class="stage self-end">
        <div class="stage-wall" style="--w: 120; --h: 90" data-scale-wall>
          <svg class="stage-person" viewBox="0 0 56 170" aria-hidden="true"><circle cx="28" cy="12" r="11"/><path d="M11 42c0-10 7-15 17-15s17 5 17 15v46a4 4 0 0 1-8 0V50h-2v112a6 6 0 0 1-12 0V98h-2v64a6 6 0 0 1-12 0V50h-1v38a4 4 0 0 1-8 0z" transform="translate(4 0)"/></svg>
          <img class="stage-work" src="https://images.unsplash.com/photo-1515405295579-ba7b45403062?auto=format&amp;fit=crop&amp;w=900&amp;q=80" alt="A dark blue painting of broken horizontal strokes, like a sea at night" data-scale-image>
        </div>
        <figcaption class="mt-4 flex items-baseline justify-between gap-6 text-sm text-ink-mute" aria-live="polite">
          <span><span class="italic-serif text-xl text-ink" data-scale-title>Slack Water</span>, <span data-scale-size>120 &times; 90</span> cm</span>
          <span>Wall shown: 3.6 m wide</span>
        </figcaption>
      </figure>
    </div>
  </section>
  <!-- block:end demo -->
<script>
    document.querySelectorAll("[data-menu-toggle]").forEach((button) => {
      const menu = document.getElementById(button.getAttribute("aria-controls"));
      if (!menu) return;
      button.addEventListener("click", () => {
        const open = button.getAttribute("aria-expanded") === "true";
        button.setAttribute("aria-expanded", String(!open));
        menu.classList.toggle("hidden", open);
      });
    });

    document.querySelectorAll("[data-slides]").forEach((root) => {
      const slides = [...root.querySelectorAll("[data-slide]")];
      if (slides.length < 2) return;
      let current = 0;
      const show = (index) => {
        current = (index + slides.length) % slides.length;
        slides.forEach((slide, i) => {
          if (i === current) slide.removeAttribute("aria-hidden"); else slide.setAttribute("aria-hidden", "true");
        });
      };
      root.querySelector("[data-slide-prev]")?.addEventListener("click", () => show(current - 1));
      root.querySelector("[data-slide-next]")?.addEventListener("click", () => show(current + 1));
      slides.forEach((slide) => slide.querySelector("img")?.addEventListener("click", () => show(current + 1)));
    });

    document.querySelectorAll("[data-scale]").forEach((root) => {
      const wall = root.querySelector("[data-scale-wall]");
      const image = root.querySelector("[data-scale-image]");
      const options = root.querySelectorAll("[data-scale-work]");
      options.forEach((option) => option.addEventListener("click", () => {
        options.forEach((other) => other.setAttribute("aria-checked", String(other === option)));
        const { w, h, src, alt, title } = option.dataset;
        wall.style.setProperty("--w", w);
        wall.style.setProperty("--h", h);
        image.src = src;
        image.alt = alt;
        root.querySelector("[data-scale-title]").textContent = title;
        root.querySelector("[data-scale-size]").textContent = `${w} × ${h}`;
      }));
    });

    document.querySelectorAll("[data-hover-list]").forEach((root) => {
      const image = root.querySelector("[data-hover-image]");
      if (!image) return;
      root.querySelectorAll("[data-hover-row]").forEach((row) => {
        const on = () => { image.src = row.dataset.src; image.style.opacity = 1; };
        const off = () => { image.style.opacity = 0; };
        row.addEventListener("mouseenter", on);
        row.addEventListener("focus", on);
        row.addEventListener("mouseleave", off);
        row.addEventListener("blur", off);
      });
    });

    (() => {
      const dialog = document.querySelector("[data-lightbox]");
      if (!dialog || !dialog.showModal) return;
      const part = (name) => dialog.querySelector(`[data-lightbox-${name}]`);
      let list = [];
      let current = 0;
      const show = (index) => {
        current = (index + list.length) % list.length;
        const { title, meta, status, src, alt } = list[current].dataset;
        part("image").src = src;
        part("image").alt = alt;
        part("title").textContent = title;
        part("meta").textContent = meta;
        part("status").textContent = status;
        part("link").hidden = status !== "Available";
        part("link").href = `contact.html?work=${encodeURIComponent(title)}`;
      };
      document.addEventListener("click", (event) => {
        const trigger = event.target.closest("[data-work]");
        if (!trigger) return;
        list = [...document.querySelectorAll("[data-work]")].filter((item) => !item.closest("[hidden]"));
        show(list.indexOf(trigger));
        dialog.showModal();
      });
      part("prev").addEventListener("click", () => show(current - 1));
      part("next").addEventListener("click", () => show(current + 1));
      part("close").addEventListener("click", () => dialog.close());
      dialog.addEventListener("keydown", (event) => {
        if (event.key === "ArrowLeft") show(current - 1);
        if (event.key === "ArrowRight") show(current + 1);
      });
    })();

    (() => {
      const items = document.querySelectorAll("[data-reveal]");
      const skip = navigator.webdriver || !("IntersectionObserver" in window) || matchMedia("(prefers-reduced-motion: reduce)").matches;
      if (!items.length || skip) return;
      document.documentElement.classList.add("reveal-ready");
      const observer = new IntersectionObserver((entries) => {
        entries.forEach((entry) => {
          if (!entry.isIntersecting) return;
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        });
      }, { rootMargin: "0px 0px -10% 0px" });
      items.forEach((item) => observer.observe(item));
    })();
  </script>
<!-- Optional credit — delete this block if you prefer a clean footer -->
<p class="lt-built-with" style="margin:0;padding:12px 16px;text-align:center;font:500 11px/1.4 system-ui,-apple-system,sans-serif;color:#9ca3af;">Built with <a href="https://letstemplates.com" style="color:#059669;text-decoration:none;">Let's templates</a></p>
</body>
</html>

De esta plantilla

Marit Solane screenshot Premium

Portfolio

Marit Solane

Acceso ilimitado a todos los productos

Desbloquea toda la biblioteca de plantillas y bloques premium. Se renueva automáticamente, cancela cuando quieras.

20 € / 3 meses o 60 € / año
Conseguir acceso ilimitado