burtenshaw commited on
Commit
8943868
·
1 Parent(s): d18869d

feat: expand article hero and images

Browse files
app/src/components/HeroArticle.astro CHANGED
@@ -285,16 +285,24 @@ const pdfFilename = `${slugify(pdfBase)}.pdf`;
285
 
286
  <style>
287
  .hero {
 
288
  width: 100%;
289
- padding: 64px 16px 16px;
 
290
  text-align: center;
 
 
 
 
291
  }
292
  .hero-title {
 
 
293
  font-size: clamp(34px, 5vw, 54px);
294
  font-weight: 800;
295
  line-height: 1.12;
296
  letter-spacing: -0.02em;
297
- margin: 0 auto 8px;
298
  max-width: 780px;
299
  text-wrap: balance;
300
  }
@@ -305,11 +313,21 @@ const pdfFilename = `${slugify(pdfBase)}.pdf`;
305
  font-size: clamp(24px, 3.2vw, 38px);
306
  }
307
  .hero-banner {
308
- max-width: 980px;
309
- margin: 0 auto;
310
- aspect-ratio: 5 / 2;
 
311
  overflow: hidden;
312
  }
 
 
 
 
 
 
 
 
 
313
  .hero-banner :global(.html-embed) {
314
  height: 100%;
315
  }
@@ -317,15 +335,19 @@ const pdfFilename = `${slugify(pdfBase)}.pdf`;
317
  height: 100%;
318
  }
319
  .hero-desc {
 
 
320
  color: var(--muted-color);
321
  font-style: italic;
322
- margin: 0 auto 16px;
323
- max-width: 55%;
324
  }
325
 
326
  @media (max-width: 768px) {
327
- .hero-banner { aspect-ratio: auto; }
328
- .hero-desc { max-width: 90%; }
 
 
329
  }
330
 
331
  /* Meta bar */
 
285
 
286
  <style>
287
  .hero {
288
+ position: relative;
289
  width: 100%;
290
+ min-height: 100svh;
291
+ padding: clamp(56px, 9vh, 96px) 16px clamp(32px, 7vh, 72px);
292
  text-align: center;
293
+ display: flex;
294
+ flex-direction: column;
295
+ justify-content: flex-start;
296
+ overflow: hidden;
297
  }
298
  .hero-title {
299
+ position: relative;
300
+ z-index: 1;
301
  font-size: clamp(34px, 5vw, 54px);
302
  font-weight: 800;
303
  line-height: 1.12;
304
  letter-spacing: -0.02em;
305
+ margin: 0 auto;
306
  max-width: 780px;
307
  text-wrap: balance;
308
  }
 
313
  font-size: clamp(24px, 3.2vw, 38px);
314
  }
315
  .hero-banner {
316
+ position: absolute;
317
+ inset: 0;
318
+ width: 100%;
319
+ height: 100%;
320
  overflow: hidden;
321
  }
322
+ .hero-banner::after {
323
+ content: "";
324
+ position: absolute;
325
+ inset: 0;
326
+ pointer-events: none;
327
+ background:
328
+ linear-gradient(to bottom, var(--page-bg) 0%, color-mix(in srgb, var(--page-bg) 78%, transparent) 18%, transparent 46%),
329
+ linear-gradient(to top, var(--page-bg) 0%, transparent 22%);
330
+ }
331
  .hero-banner :global(.html-embed) {
332
  height: 100%;
333
  }
 
335
  height: 100%;
336
  }
337
  .hero-desc {
338
+ position: relative;
339
+ z-index: 1;
340
  color: var(--muted-color);
341
  font-style: italic;
342
+ margin: auto auto 0;
343
+ max-width: min(680px, 90%);
344
  }
345
 
346
  @media (max-width: 768px) {
347
+ .hero {
348
+ min-height: 100svh;
349
+ padding-top: clamp(48px, 9vh, 72px);
350
+ }
351
  }
352
 
353
  /* Meta bar */
app/src/content/article.mdx CHANGED
@@ -31,7 +31,6 @@ tags:
31
 
32
  import SlopfarmerContent from "./chapters/slopfarmer/content.mdx";
33
  import Image from '../components/Image.astro';
34
- import Stack from '../components/Stack.astro';
35
  import honestWork from './assets/image/honest-work-meme.jpg';
36
  import codeAgentSlop from './assets/image/code-agent-slop.png';
37
 
@@ -41,10 +40,9 @@ This problem is not unique to Transformers. Every large open source project on G
41
 
42
  The volume is unprecedented and unfortunately the quality, on average, is low. And the maintainers reviewing these contributions are the same teams they have always been. Honest folk.
43
 
44
- <Stack>
45
- <Image src={honestWork} alt="Meme: I have 2 PhDs in computer science and now I read through 500 AI generated PRs an hour. It ain't much, but it's honest work." />
46
- <Image src={codeAgentSlop} alt="Screenshot of the huggingface/transformers pull request list showing dozens of PRs labeled 'Code agent slop', most closed within minutes of each other." />
47
- </Stack>
48
 
49
  To understand this, we started a project at Hugging Face to study this problem on Transformers. We didn't set out to solve it, but we wanted to understand what was coming, whether any of it was useful, and whether there was a way to extract signal from the noise.
50
 
 
31
 
32
  import SlopfarmerContent from "./chapters/slopfarmer/content.mdx";
33
  import Image from '../components/Image.astro';
 
34
  import honestWork from './assets/image/honest-work-meme.jpg';
35
  import codeAgentSlop from './assets/image/code-agent-slop.png';
36
 
 
40
 
41
  The volume is unprecedented and unfortunately the quality, on average, is low. And the maintainers reviewing these contributions are the same teams they have always been. Honest folk.
42
 
43
+ <Image src={honestWork} alt="Meme: I have 2 PhDs in computer science and now I read through 500 AI generated PRs an hour. It ain't much, but it's honest work." />
44
+
45
+ <Image src={codeAgentSlop} alt="Screenshot of the huggingface/transformers pull request list showing dozens of PRs labeled 'Code agent slop', most closed within minutes of each other." />
 
46
 
47
  To understand this, we started a project at Hugging Face to study this problem on Transformers. We didn't set out to solve it, but we wanted to understand what was coming, whether any of it was useful, and whether there was a way to extract signal from the noise.
48