Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update projects page #51

Merged
merged 13 commits into from
Jan 14, 2025
Merged

feat: update projects page #51

merged 13 commits into from
Jan 14, 2025

Conversation

chosww
Copy link
Contributor

@chosww chosww commented Jan 8, 2025

  • Update projects page
  • Implement project panel component for each project
  • Create singular project page
  • Implement interaction styles for the card component

Copy link

cloudflare-workers-and-pages bot commented Jan 8, 2025

Deploying inclusive-standards with  Cloudflare Pages  Cloudflare Pages

Latest commit: 67f993a
Status: ✅  Deploy successful!
Preview URL: https://955795bc.inclusive-standards.pages.dev
Branch Preview URL: https://feat-projects.inclusive-standards.pages.dev

View logs

src/_includes/layouts/about.njk Outdated Show resolved Hide resolved
src/_includes/layouts/home.njk Outdated Show resolved Hide resolved
src/_includes/layouts/home.njk Outdated Show resolved Hide resolved
src/_includes/layouts/home.njk Outdated Show resolved Hide resolved
src/assets/styles/app.css Outdated Show resolved Hide resolved
src/assets/styles/base/_base.css Outdated Show resolved Hide resolved
src/_includes/partials/components/projectPanel.macro.njk Outdated Show resolved Hide resolved
src/collections/projects/en/project.md Outdated Show resolved Hide resolved
src/_transforms/parse.js Outdated Show resolved Hide resolved
src/_data/translations.json Outdated Show resolved Hide resolved
src/_data/translations.json Outdated Show resolved Hide resolved
src/_transforms/parse.js Outdated Show resolved Hide resolved
@chosww chosww marked this pull request as ready for review January 9, 2025 20:24
@chosww chosww requested a review from greatislander January 9, 2025 20:25
Copy link
Member

@greatislander greatislander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few more changes. I also note you haven't added interactive styles for links. The issue which you've indicated that this PR closes lists buttons, selects, and accordions but I don't see those here… perhaps better to remove that from the scope of this PR as we don't have all those elements yet?

src/collections/projects/en/en.json Outdated Show resolved Hide resolved
src/collections/projects/fr/fr.json Outdated Show resolved Hide resolved
src/collections/projects/projects.11tydata.js Outdated Show resolved Hide resolved
src/assets/styles/base/_base.css Outdated Show resolved Hide resolved
src/_data/translations.json Outdated Show resolved Hide resolved
src/_data/translations.json Outdated Show resolved Hide resolved
src/_includes/layouts/project.njk Outdated Show resolved Hide resolved
src/assets/styles/components/project-panel.css Outdated Show resolved Hide resolved
Copy link
Member

@greatislander greatislander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only once change left here— replace all hex colours within the style declarations with variables so if we need to change them we can do it in one place!

@@ -2,34 +2,34 @@
color: black;
min-width: 20.5rem;
margin-bottom: 1rem;
box-shadow: 0 0.625rem 1.25rem 0 #0B046C26;
box-shadow:
0 0.625rem 1.25rem 0 #0B046C26,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should always use a colour variable.

.card:has(a:focus) {
border: 0.1875rem solid transparent;
box-shadow: 0 0.625rem 1.25rem 0 #0B046C26;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a colour variable here.

.card:hover {
box-shadow:
inset 0 0 0 0.1875rem var(--fl-fgColor, transparent),
0 0.625rem 1.25rem 0 var(--fl-fgColor, #0B046C73);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a colour variable here.

min-height: 2.5rem;
.card:hover.card:has(a:focus) {
box-shadow:
0 0.625rem 1.25rem 0 var(--fl-fgColor, #0B046C73);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a colour variable here.

position: relative;
}

.project-panel:has(a:focus) {
border: 0.1875rem solid transparent;
box-shadow: 0 0.625rem 1.25rem 0 #0B046C26;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Colour variable here.

box-shadow: 0 0.625rem 1.25rem 0 var(--fl-fgColor, #0B046C73);
box-shadow:
inset 0 0 0 0.1875rem var(--fl-fgColor, transparent),
0 0.625rem 1.25rem 0 var(--fl-fgColor, #0B046C73);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a colour variable here.

box-sizing: content-box;
.project-panel:hover.project-panel:has(a:focus) {
box-shadow:
0 0.625rem 1.25rem 0 var(--fl-fgColor, #0B046C73);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use a colour variable here.

@greatislander
Copy link
Member

A few more changes. I also note you haven't added interactive styles for links. The issue which you've indicated that this PR closes lists buttons, selects, and accordions but I don't see those here… perhaps better to remove that from the scope of this PR as we don't have all those elements yet?

Also @chosww can you clarify this about the interactive styles?

@greatislander greatislander merged commit 27ba5fb into main Jan 14, 2025
3 checks passed
@greatislander greatislander deleted the feat/projects branch January 14, 2025 12:22
@github-actions github-actions bot mentioned this pull request Jan 9, 2025
@greatislander greatislander mentioned this pull request Jan 14, 2025
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.

Projects page and cards
2 participants