summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:45:13 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:45:13 -0700
commitbc0df9c764f27118d9d6b475e85f38b7e235db35 (patch)
treeae4fc720bc440baffb913ec2c55c479527158a77 /static
parent2f3a891d0944a3b200d3dda949475bf9e1742f56 (diff)
Show ratings inline with year/director using brand logos
IMDb, Rotten Tomatoes, and Metacritic scores now appear on the same row as the subtitle with SVG brand logos instead of plain text chips. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'static')
-rw-r--r--static/logos/imdb.svg4
-rw-r--r--static/logos/metacritic.svg4
-rw-r--r--static/logos/rt.svg6
-rw-r--r--static/styles.css36
4 files changed, 30 insertions, 20 deletions
diff --git a/static/logos/imdb.svg b/static/logos/imdb.svg
new file mode 100644
index 0000000..e57848d
--- /dev/null
+++ b/static/logos/imdb.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="38" height="20" viewBox="0 0 38 20">
+ <rect width="38" height="20" rx="3" fill="#F5C518"/>
+ <text x="19" y="15" text-anchor="middle" font-family="Arial Black, Impact, sans-serif" font-size="11" font-weight="900" fill="#000000">IMDb</text>
+</svg>
diff --git a/static/logos/metacritic.svg b/static/logos/metacritic.svg
new file mode 100644
index 0000000..28d759f
--- /dev/null
+++ b/static/logos/metacritic.svg
@@ -0,0 +1,4 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
+ <rect width="20" height="20" rx="4" fill="#1C1C1C"/>
+ <text x="10" y="15" text-anchor="middle" font-family="Arial Black, Impact, sans-serif" font-size="13" font-weight="900" fill="#FFCC34">M</text>
+</svg>
diff --git a/static/logos/rt.svg b/static/logos/rt.svg
new file mode 100644
index 0000000..c028e86
--- /dev/null
+++ b/static/logos/rt.svg
@@ -0,0 +1,6 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20">
+ <path d="M10 5 C10 5 12.5 3 14 5 C15.5 7 13 8 11 7 C13 9 15 8 16 10 C17.5 13 15 17 10 17 C5 17 2.5 13 4 10 C5 8 7 9 9 7 C7 8 4.5 7 6 5 C7.5 3 10 5 10 5 Z" fill="#FA320A"/>
+ <path d="M10 2 C10 2 11 4 13 3 C14.5 2 15 4.5 13 5" fill="#4CAF50" stroke="none"/>
+ <path d="M10 2 C10 2 9 4 7 3 C5.5 2 5 4.5 7 5" fill="#4CAF50" stroke="none"/>
+ <circle cx="8" cy="12" r="1.5" fill="#fff" opacity="0.4"/>
+</svg>
diff --git a/static/styles.css b/static/styles.css
index c7be672..9f8619b 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -548,36 +548,32 @@ h2 {
color: var(--accent);
}
-.ratings-row {
+.detail-subtitle {
display: flex;
+ align-items: center;
+ gap: 16px;
flex-wrap: wrap;
- gap: 10px;
- margin: 16px 0 20px;
+ margin-bottom: 20px;
}
-.rating-chip {
+.ratings-inline {
display: flex;
- flex-direction: column;
- gap: 3px;
- border: 1px solid var(--line);
- border-radius: 8px;
- background: var(--panel);
- padding: 10px 14px;
- min-width: 90px;
+ align-items: center;
+ gap: 14px;
}
-.rating-chip-label {
+.rating-badge {
+ display: inline-flex;
+ align-items: center;
+ gap: 6px;
color: var(--muted);
- font-size: 0.72rem;
- font-weight: 700;
- text-transform: uppercase;
- letter-spacing: 0.06em;
+ font-size: 0.88rem;
+ font-weight: 600;
}
-.rating-chip-value {
- color: var(--text);
- font-size: 1.05rem;
- font-weight: 600;
+.rating-badge img {
+ display: block;
+ flex-shrink: 0;
}
.detail-tagline {