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: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,7 @@ chromatic.log
# playwright
/test-results/
/playwright-report/

# local performance measurement output
scripts/perf/lh/
scripts/perf/reports/
8 changes: 4 additions & 4 deletions .storybook/preview.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*
* Snapshot stability for Chromatic.
*
* src/app/globals.css applies a 200ms transition to *every* element
* (`*, *::before, *::after`) and several components animate on mount. A visual
* regression service screenshots at an arbitrary moment, so those in-flight
* transitions produce diffs that have nothing to do with a real change.
* Components use short, targeted transitions (globals.css no longer transitions
* every element) and a few animate on mount. A visual regression service
* screenshots at an arbitrary moment, so any in-flight transition produces a
* diff that has nothing to do with a real change.
*
* Freezing them here makes every story render at its settled end state. This
* only affects the Storybook preview iframe — the app itself still animates.
Expand Down
2 changes: 1 addition & 1 deletion docs/ARCHITECTURE.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Reframe uses FFmpeg.wasm to process videos entirely in the browser. The processi
- **Fill mode**: Video is scaled to fill the target dimensions and cropped
5. **Speed Adjustment** — Playback speed is adjusted using `setpts` (video) and `atempo` (audio) filters
6. **Audio Processing** — Audio is either kept (with speed adjustment) or removed based on user preference
7. **Encoding** — Final video is encoded to MP4 (H.264) or WebM (VP9) format
7. **Encoding** — Final video is encoded to MP4 (H.264) or WebM (VP8 + Vorbis) format
8. **Download** — Processed video is made available as a Blob URL for download

---
Expand Down
Binary file added docs/assets/ui-redesign/after-editor-desktop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/ui-redesign/before-editor-desktop.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/ui-redesign/before-editor-mobile.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 47 additions & 0 deletions scripts/fonts/build-cormorant.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#!/usr/bin/env bash
# Rebuilds the self-hosted Cormorant Garamond files in src/app/fonts/.
#
# The UI sets the serif at three styles only (upright 400 for .display,
# upright 500 for .serif, italic 400 for .marker) and only for its own English
# copy, so the full Google Fonts variable files (300-700, Latin-1 and more,
# ~75 KB for the two Latin slices) are cut down to:
# - upright: variable, wght limited to 400-500
# - italic: static 400
# each subset to printable ASCII plus the typographic punctuation the copy may
# use. Characters outside the subset fall back per glyph to the size-adjusted
# fallback serif, so nothing renders as a missing-glyph box.
#
# Needs fonttools and brotli (dev only, not a project dependency):
# python3 -m venv /tmp/fontenv && /tmp/fontenv/bin/pip install fonttools brotli
# PYTHON=/tmp/fontenv/bin/python scripts/fonts/build-cormorant.sh
set -euo pipefail

PYTHON="${PYTHON:-python3}"
# google/fonts commit that last touched ofl/cormorantgaramond (pinned so the
# output is reproducible).
REV=3dd78844021e948ceb633d1dcee3f7885561b5d9
BASE="https://raw.githubusercontent.com/google/fonts/$REV/ofl/cormorantgaramond"
OUT="$(cd "$(dirname "$0")/../.." && pwd)/src/app/fonts"
WORK="$(mktemp -d)"
trap 'rm -rf "$WORK"' EXIT

curl -fsSL -o "$WORK/upright.ttf" "$BASE/CormorantGaramond%5Bwght%5D.ttf"
curl -fsSL -o "$WORK/italic.ttf" "$BASE/CormorantGaramond-Italic%5Bwght%5D.ttf"
curl -fsSL -o "$OUT/OFL.txt" "$BASE/OFL.txt"

# ASCII, nbsp, middle dot, multiplication sign, en/em dash, curly quotes, ellipsis.
UNICODES="U+0020-007E,U+00A0,U+00B7,U+00D7,U+2013-2014,U+2018-2019,U+201C-201D,U+2026"
# kern/liga for text, lnum/tnum/pnum for the figures (Cormorant defaults to
# old-style numerals; .display and .marker switch to lining).
FEATURES="kern,liga,calt,lnum,tnum,pnum"

"$PYTHON" -m fontTools.varLib.instancer "$WORK/upright.ttf" wght=400:500 -o "$WORK/upright-400-500.ttf"
"$PYTHON" -m fontTools.varLib.instancer "$WORK/italic.ttf" wght=400 -o "$WORK/italic-400.ttf"

for name in upright-400-500 italic-400; do
"$PYTHON" -m fontTools.subset "$WORK/$name.ttf" \
--unicodes="$UNICODES" --layout-features="$FEATURES" \
--flavor=woff2 --output-file="$OUT/cormorant-garamond-$name.woff2"
done

ls -l "$OUT"
14 changes: 7 additions & 7 deletions src/app/contact/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function ContactClient() {
};

return (
<main className="min-h-screen bg-[var(--bg)] text-[var(--text)] px-6 py-10">
<div className="min-h-screen bg-[var(--bg)] text-[var(--text)] px-6 py-10">
<div className="mx-auto max-w-3xl">
<div className="mb-10">
<Link
Expand All @@ -106,7 +106,7 @@ export default function ContactClient() {
placeholder="Name"
className="w-full p-3 border rounded"
/>
{errors.name && <p className="text-red-400">{errors.name}</p>}
{errors.name && <p className="text-[var(--error)]">{errors.name}</p>}

<input
name="email"
Expand All @@ -115,7 +115,7 @@ export default function ContactClient() {
placeholder="Email"
className="w-full p-3 border rounded"
/>
{errors.email && <p className="text-red-400">{errors.email}</p>}
{errors.email && <p className="text-[var(--error)]">{errors.email}</p>}

<textarea
name="message"
Expand All @@ -125,11 +125,11 @@ export default function ContactClient() {
className="w-full p-3 border rounded"
/>
{errors.message && (
<p className="text-red-400">{errors.message}</p>
<p className="text-[var(--error)]">{errors.message}</p>
)}

{errors.submit && (
<p className="text-red-400">{errors.submit}</p>
<p className="text-[var(--error)]">{errors.submit}</p>
)}

{success && (
Expand All @@ -138,12 +138,12 @@ export default function ContactClient() {

<button
disabled={loading}
className="w-full p-3 bg-[var(--accent)] text-white rounded"
className="w-full p-3 bg-[var(--accent)] text-[var(--on-accent)] rounded"
>
{loading ? "Sending..." : "Send Message"}
</button>
</form>
</div>
</main>
</div>
);
}
93 changes: 93 additions & 0 deletions src/app/fonts/OFL.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
Copyright 2015 the Cormorant Project Authors (github.com/CatharsisFonts/Cormorant)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
https://scripts.sil.org/OFL


-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file added src/app/fonts/cormorant-garamond-italic-400.woff2
Binary file not shown.
Binary file not shown.
Loading
Loading