Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions src/site/landing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export const landing = {
secondary: 'How it works',
cta: 'Open the editor — no sign-up',
promise: 'No uploads. It runs in this tab.',
heroCaption: 'twelve-apostles.jpg after exposure, colour and clarity. The before is with the examples below.',
heroAlt: 'Twelve Apostles sea stacks after exposure and colour adjustments in Lightframes',
results: {
h2: 'Before and after, from the sample photos',
lead: 'These are the sample photos shipped with the editor, processed with the same code. Nothing here is a mockup.',
Expand Down Expand Up @@ -78,8 +76,6 @@ export const landing = {
secondary: 'Cómo funciona',
cta: 'Abrir el editor — sin registro',
promise: 'Sin subir archivos. Se ejecuta en esta pestaña.',
heroCaption: 'twelve-apostles.jpg tras exposición, color y claridad. El antes está con los ejemplos de abajo.',
heroAlt: 'Los stacks de los Twelve Apostles tras ajustar exposición y color en Lightframes',
results: {
h2: 'Antes y después, con las fotos de ejemplo',
lead: 'Son las fotos de ejemplo que trae el editor, procesadas con el mismo código. No hay maquetas.',
Expand Down
7 changes: 0 additions & 7 deletions src/site/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,3 @@ export function resultExamples(lang: Lang): ResultExample[] {
export function exampleForTool(toolKey: string, lang: Lang): ResultExample | undefined {
return resultExamples(lang).find((example) => example.toolKey === toolKey)
}

/** The adjusted sample used as the hero result. Same file as the develop “after”. */
export function heroResult(lang: Lang): Still {
const example = exampleForTool('raw-to-jpg', lang)!
const after = example.shots[1]!
return { ...after, label: lang === 'es' ? 'Resultado' : 'Result', priority: true }
}
10 changes: 1 addition & 9 deletions src/site/styles/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ a {
margin-top: 0;
}

.hero__result {
.hero__video {
order: 4;
}

Expand All @@ -528,14 +528,6 @@ a {
gap: 56px;
padding-block: 64px 48px;
}

.hero__result .ba__shot {
flex-basis: 100%;
}
}

.promo-band {
padding-bottom: clamp(8px, 2vw, 24px);
}

/* Before / after stills. Same idea as the free-presets pack: labeled frames in a row. */
Expand Down
13 changes: 3 additions & 10 deletions src/site/views/LandingView.astro
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { SITE, absoluteUrl } from '../config'
import { entryPath, getFaq, getPosts, getTools } from '../content'
import { editorPath, formatDate, href, sectionAlternates, ui, type Lang } from '../i18n'
import { landing } from '../landing'
import { heroResult, resultExamples } from '../results'
import { resultExamples } from '../results'
import { xmpLandingPath } from '../xmpLanding'
import Base from '../layouts/Base.astro'
import { faqPage, publishingOrganization, videoObject, webApplication, webPage } from '../schema'
Expand All @@ -24,7 +24,6 @@ const allTools = await getTools(lang)
const tools = allTools.filter((tool) => tool.data.featured)
const faq = (await getFaq(lang)).slice(0, 6)
const posts = (await getPosts(lang)).slice(0, 3)
const hero = heroResult(lang)
const examples = resultExamples(lang)
---

Expand Down Expand Up @@ -56,7 +55,7 @@ const examples = resultExamples(lang)
if (matchMedia('(display-mode: standalone)').matches) location.replace(editorHref)
</script>

<link slot="head" rel="preload" as="image" href={hero.avif} type="image/avif" fetchpriority="high" />
<link slot="head" rel="preload" as="image" href="/video/promo-poster.jpg" type="image/jpeg" fetchpriority="high" />

<section class="hero wrap">
<div class="hero__text">
Expand All @@ -75,13 +74,7 @@ const examples = resultExamples(lang)
</p>
</div>

<div class="hero__result">
<BeforeAfter shots={[{ ...hero, alt: c.heroAlt }]} caption={c.heroCaption} />
</div>
</section>

<section class="wrap promo-band" aria-label={c.video.label}>
<figure class="promo">
<figure class="promo hero__video">
<video
class="promo__video"
src="/video/promo.mp4"
Expand Down
Loading