{F}rontendové nowwwinky

Pivovar Lajka

příště: 10. dubna v Alma Career (exLMC)
mezitím v Brně: ARTIN

note:

Letem swwwětem

note:

WWW minulém díle jste viděli

note:

Dnes

note:

Prohlížeče

note:

Firefox 123

vydán 20. února 2024

note:

Chrome 123

vydán 13. března 2024

note:

Chrome 123
import json from "./foo.json" with { type: "json" };
import("foo.json", { with: { type: "json" } });

note:

Zachyceno v síti

Michelle Barker: How I Solved My Font Rendering Problem

image

Michelle Barker: How I Solved My Font Rendering Problem

@font-face {
  font-family: 'Frontendisti';
  src: url('../fonts/verdana.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Frontendisti';
  src: url('../fonts/verdana.woff2') format('woff2-variations');
  font-display: swap;
  font-weight: 100 800;
}

note:

Nástroje a udělátka

Textová bublina

<div class="tooltip">{F}rontendisti jsou prostě boží!</div>
.tooltip {
  color: #fff;
  font-size: 1.25rem;
  max-width: 28ch;
  text-align: center;
}

Textová bublina

.tooltip {
  /* tail dimension */
  --b: 2em; /* base */
  --h: 1.5em; /* height */
  --p: 50%; /* main position (0%:left 100%:right) */
  --x: 1.8em; /* tail position (relative to the main position). Can be percentage */
  --r: 1.2em; /* the radius */
  --c: #4ECDC4;

  padding: 1em;
  border-radius:
      var(--r)
      var(--r)
      min(var(--r),100% - var(--p) - var(--b)/2)
      min(var(--r),var(--p) - var(--b)/2)/var(--r);
  clip-path: polygon(0 100%,0 0,100% 0,100% 100%,
    clamp(var(--b),var(--p) + var(--b)/2,100%) 100%,
    calc(var(--p) + var(--x)) calc(100% + var(--h)),
    clamp(0%,var(--p) - var(--b)/2,100% - var(--b)) 100%);
  background: var(--c);
  border-image:
      conic-gradient(var(--c) 0 0) 0 0 1 0/0 0 var(--h) 0/0 999px var(--h) 999px;
}

Kitát na záwwwěr

CSS is the only language that gets blamed when the author is bad.

Josh Collinsworth

note:

Díky, prezentace za chvíli na @frontendisti