Skip to content

Design update - #1

Open
Leannapelham wants to merge 10 commits into
mainfrom
design-update
Open

Design update#1
Leannapelham wants to merge 10 commits into
mainfrom
design-update

Conversation

@Leannapelham

Copy link
Copy Markdown

Full design update for course project

Leannapelham and others added 10 commits July 24, 2026 17:06
The file is a machine-specific yarn artifact (it stores systemParams like
darwin-arm64-141), so it produced a spurious diff on every machine. There is
no package.json and yarn.lock is empty, so it recorded nothing. Also adds
/node_modules/ to .gitignore, which had no entry for it.
base.html.twig loaded https://cdn.tailwindcss.com plus an inline v3-format
tailwind.config, bypassing symfonycasts/tailwind-bundle entirely. The theme
now lives in assets/styles/app.css as a v4 @theme block, and the custom
component rules moved there too, inside @layer components so utilities can
override them.

{% block javascripts %} is back to holding only importmap('app'), matching
the Symfony recipe. Also adds the missing viewport meta, lang="en", and a
{% block title %} the child templates can override.

Dropped three theme entries with no uses anywhere: accent.light,
boxShadow.glow and fontFamily.body, along with the .item-card rules.
The six items were hardcoded six times over in index.html.twig and show.html.twig
rendered a single unrelated item. They now live in a private const ITEMS keyed
by id, standing in for the Item entity until Doctrine takes over. show() looks
one up and 404s on a miss instead of ignoring its {id}.

Template fixes: three cards linked to the wrong item; index.html.twig emitted a
nested <body> and a trailing </html>; a dead <script src="data.js"> populated an
empty #item-grid via an undefined LOST_ITEMS; show.html.twig had a literal
${item.colorClass}, no image at all, and two href="index.html" links. The card
grid is now a list with per-item aria-labels and an empty state.
@MolloKhan

Copy link
Copy Markdown
Contributor

@kbond I added data fixtures to the project, but I got a bit confused about the difference between "factories" and "stories". I chose stories, but I'd like your opinion on which one fits better in this case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants