پیش‌نمایش زنده
کد HTML
<div class="manifesto-showcase">
  <input type="checkbox" id="rebel-toggle" class="rebel-toggle" />

  <div class="presentation-stage">
    <label for="rebel-toggle" class="aesthetic-switch">
      <span class="switch-track"></span>
      <span class="switch-text mode-clean">BRUTALIZE AESTHETIC-CLICK ME </span>
      <span class="switch-text mode-chaos">RESTORE MINIMALISM</span>
    </label>

    <div class="poster-card">
      <div class="css-mesh-grain"></div>
      <div class="drafting-grid"></div>

      <div class="geo-orb"></div>

      <div class="type-container">
        <div class="huge-text word-1">FRONT</div>
        <div class="huge-text word-2">END.</div>
      </div>

      <div class="tape-ribbon">
        <div class="tape-scroll">
          <span
            >NO JS // PURE CSS // BOLD AESTHETICS // REJECT MEDIOCRITY //
          </span>
          <span
            >NO JS // PURE CSS // BOLD AESTHETICS // REJECT MEDIOCRITY //
          </span>
        </div>
      </div>

      <div class="poster-footer">
        <div class="barcode"></div>
        <div class="manifesto-text">
          <p class="vol">VOL. 01 / REBELLION</p>
          <p class="desc">
            Crafted exclusively with structural markup and cascading
            stylesheets. Zero scripts. Zero compromises.
          </p>
        </div>
      </div>
    </div>
  </div>
</div>
کد CSS
/* --- BASE & VARIABLES --- */
.manifesto-showcase {
  /* Theme 1: Editorial Minimalism */
  --bg-outer: transparent; /* Fully transparent background */
  --bg-inner: #fdfdfa;
  --text-main: #0a0a0a;
  --accent: #ff2a00;
  --shadow-color: #0a0a0a;

  --geo-radius: 0%;
  --geo-bg: repeating-linear-gradient(
    45deg,
    var(--text-main) 0 2px,
    transparent 2px 10px
  );
  --geo-pos-x: -10%;
  --geo-pos-y: -10%;

  --font-display: "Impact", "Arial Black", sans-serif;
  --font-body: "Georgia", "Times New Roman", serif;
  --font-mono: "Courier New", Courier, monospace;

  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.manifesto-showcase * {
  box-sizing: border-box;
}

/* Theme 2: Acid Brutalism (Triggered by checkbox) */
.manifesto-showcase:has(.rebel-toggle:checked) {
  --bg-inner: #111111;
  --text-main: #ccff00;
  --accent: #ff007f;
  --shadow-color: #ff007f;

  --geo-radius: 50%;
  --geo-bg: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  --geo-pos-x: 20%;
  --geo-pos-y: 20%;

  --font-display: "Arial Black", sans-serif;
  --font-body: "Courier New", Courier, monospace;
}

.manifesto-showcase .rebel-toggle {
  display: none;
}

.manifesto-showcase .presentation-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--bg-outer);
  padding: 10px;
  font-family: var(--font-body);
  perspective: 1000px;
}

/* --- THE CONTROL SWITCH --- */
.manifesto-showcase .aesthetic-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  margin-bottom: 1.5rem; /* Reduced margin to fit */
  background: var(--text-main);
  color: var(--bg-inner);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.75rem; /* Scaled down */
  letter-spacing: 1px;
  cursor: pointer;
  border: 2px solid var(--text-main);
  box-shadow: 3px 3px 0px var(--accent);
  transition: all 0.3s ease;
  z-index: 50;
  text-transform: uppercase;
}

.manifesto-showcase .aesthetic-switch:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0px var(--accent);
}

.manifesto-showcase .aesthetic-switch:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px var(--accent);
}

.manifesto-showcase .mode-chaos {
  display: none;
}
.manifesto-showcase .rebel-toggle:checked ~ .presentation-stage .mode-clean {
  display: none;
}
.manifesto-showcase .rebel-toggle:checked ~ .presentation-stage .mode-chaos {
  display: inline;
}

/* --- THE POSTER ARTIFACT --- */
.manifesto-showcase .poster-card {
  position: relative;
  width: 250px; /* Scaled down to fit frame perfectly */
  height: 360px;
  background-color: var(--bg-inner);
  border: 2px solid var(--text-main);
  box-shadow: 8px 8px 0px var(--shadow-color);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.83, 0, 0.17, 1);
  transform-style: preserve-3d;
}

.manifesto-showcase .poster-card:hover {
  transform: rotateY(5deg) rotateX(2deg) scale(1.02);
  box-shadow: 12px 12px 0px var(--shadow-color);
}

/* --- TEXTURES & GRIDS (Pure CSS) --- */
.manifesto-showcase .css-mesh-grain {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--text-main) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.15;
  pointer-events: none;
  z-index: 10;
}

.manifesto-showcase .drafting-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      to right,
      var(--text-main) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, var(--text-main) 1px, transparent 1px);
  background-size: 20% 20%;
  opacity: 0.1;
  pointer-events: none;
}

/* --- GEOMETRIC ART --- */
.manifesto-showcase .geo-orb {
  position: absolute;
  top: var(--geo-pos-y);
  right: var(--geo-pos-x);
  width: 60%;
  height: 45%;
  background: var(--geo-bg);
  border-radius: var(--geo-radius);
  transition: all 0.8s cubic-bezier(0.83, 0, 0.17, 1);
  mix-blend-mode: multiply;
  opacity: 0.8;
}

/* --- TYPOGRAPHY --- */
.manifesto-showcase .type-container {
  position: absolute;
  top: 10%;
  left: 5%;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.manifesto-showcase .huge-text {
  font-family: var(--font-display);
  font-size: 3.5rem; /* Scaled down perfectly */
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--text-main);
  text-transform: uppercase;
  mix-blend-mode: exclusion;
  position: relative;
  transition: color 0.6s ease;
}

.manifesto-showcase .word-2 {
  margin-left: 10%;
  color: transparent;
  -webkit-text-stroke: 2px var(--text-main);
}

/* --- MARQUEE CAUTION TAPE --- */
.manifesto-showcase .tape-ribbon {
  position: absolute;
  top: 50%;
  left: -30%;
  width: 160%;
  background: var(--accent);
  color: var(--bg-inner);
  transform: rotate(-12deg) scale(1.05);
  padding: 0.6rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 20;
  display: flex;
  overflow: hidden;
  transition: all 0.6s ease;
}

.manifesto-showcase .tape-scroll {
  display: flex;
  width: max-content;
  animation: manifestoScrollText 10s linear infinite;
}

.manifesto-showcase .tape-scroll span {
  padding-right: 1rem;
}

@keyframes manifestoScrollText {
  to {
    transform: translateX(-50%);
  }
}

/* --- FOOTER & BARCODE --- */
.manifesto-showcase .poster-footer {
  position: absolute;
  bottom: 5%;
  left: 5%;
  right: 5%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 5;
  border-top: 2px solid var(--text-main);
  padding-top: 0.6rem;
  transition: border-color 0.6s ease;
}

.manifesto-showcase .barcode {
  width: 50px;
  height: 25px;
  /* Pure CSS Barcode Generator */
  background: repeating-linear-gradient(
    to right,
    var(--text-main) 0,
    var(--text-main) 2px,
    transparent 2px,
    transparent 4px,
    var(--text-main) 4px,
    var(--text-main) 6px,
    transparent 6px,
    transparent 10px,
    var(--text-main) 10px,
    var(--text-main) 11px,
    transparent 11px,
    transparent 15px,
    var(--text-main) 15px,
    var(--text-main) 19px,
    transparent 19px,
    transparent 22px
  );
  transition: background 0.6s ease;
}

.manifesto-showcase .manifesto-text {
  max-width: 65%;
  text-align: right;
  color: var(--text-main);
  transition: color 0.6s ease;
}

.manifesto-showcase .manifesto-text p {
  margin: 0;
}

.manifesto-showcase .vol {
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.55rem;
  margin-bottom: 0.2rem !important;
  text-transform: uppercase;
}

.manifesto-showcase .desc {
  font-size: 0.5rem;
  line-height: 1.3;
  opacity: 0.8;
}

/* Reaction to Chaos Mode Checkbox */
.manifesto-showcase .rebel-toggle:checked ~ .presentation-stage .geo-orb {
  animation: manifestoPulseAcid 3s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}

.manifesto-showcase .rebel-toggle:checked ~ .presentation-stage .huge-text {
  text-shadow:
    4px 4px 0px var(--accent),
    -2px -2px 0px #00ffff;
  mix-blend-mode: normal;
}

@keyframes manifestoPulseAcid {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.6;
    filter: blur(10px);
  }
  100% {
    transform: scale(1.2) translate(-10%, 10%);
    opacity: 1;
    filter: blur(20px);
  }
}
نوع: card
تاریخ ایجاد: 2026/06/06
آخرین بروزرسانی: 2026/06/06