Skip to content

Jawad A. - #3

Open
jivvyjams wants to merge 12 commits into
HackYourAssignment:mainfrom
jivvyjams:main
Open

jivvyjams wants to merge 12 commits into
HackYourAssignment:mainfrom
jivvyjams:main

Conversation

@jivvyjams

Copy link
Copy Markdown

The previous pull request contained duplicate files from cloning week 1 assignment repo.
I have also refactored the code to be cleaner and more readable, while implementing some finishing touches. Screenshots have also been included in this PR as per the assignment requirements.

Comment thread task-1/styles.css
Comment on lines +23 to +47
:root {
--font-sans:
"Syne Variable", system-ui, -apple-system, "Segoe UI", "Open Sans",
"Helvetica Neue", Roboto, Arial, sans-serif;

--radius: 16px;
--bg: #f3e4c9;
--fg: #594439;
--alt: #bfa28c;
--accent: #babf94;
--shadow: 10px 10px rgba(125, 93, 77, 0.15);
--focus: 5px 5px rgba(125, 93, 77, 0.15);
}

/* Dark Mode Colors */
:root.dark-mode {
--bg: #1a1a1a;
--fg: #e8d4c4;
--alt: #bfa28c;
--accent: #262726;
--shadow: 10px 10px rgba(232, 212, 196, 0.25);
--focus: 5px 5px rgba(232, 212, 196, 0.25);
}

body {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Very good use of the custom properties!

@rafasilpereira rafasilpereira left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Great cover of the accessibility with 0 issues! This is a differencial in market nowadays and a developer that thinks about it different is a differencial!

Comment thread task-1/styles.css Outdated
Comment on lines +352 to +355
transition-duration: 0.01ms !important;
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
scroll-behavior: auto !important;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why did you used !important here? I recomend the read of this article about the use of this

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That is a great article!

So is !important here not correct? Because in the article they mention that it can be used for prefers-reduced-motion media query

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

My question it was more to make you aware of this property. Many developers use it everywhere and do not consider when it's important to use like your case :D

Comment thread task-1/index.html
required
></textarea>
</div>
<button type="submit" class="submit-button" id="submit-button">

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

When I click submit, I'm not seeing the confirmation message. Do you know why?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I realized that <div id="form-message"></div> was missing from index.html
Fixed in the new commit!

Comment thread task-1/styles.css Outdated
}

/* Tablets/Medium Devices - 900px and below */
@media (max-width: 900px) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The assignment asks to be mobile-first, and you are covering first Desktop, then the others for mobile. How would you change this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

That was my mistake, I only saw it after the assignment. The new styles.css file is now mobile-first. The difference is in the adjusted media query:

...
/* Desktop - 600px and above */
@media (min-width: 600px) {
...

Comment thread task-1/styles.css

/* Contact Area */
.contact {
grid-area: contact;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The assignment asks for this: "The contact form fields should stack vertically using Flexbox, with consistent spacing using gap". And you are using grid

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Honestly I preferred the look of the grid layout for it 😅 It is changed in the new commit, now it is vertical flexbox

Comment thread task-1/styles.css Outdated
height: 6em;
}

textarea:focus {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You are not using focus-visible request from assignment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I changed it now, but I don't see any noticeable difference between focus and focus-visible?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Have you tried to navigate with TAB? The focus-visible is used when you navigate with TAB in the screen

Comment thread task-1/styles.css
height: 48px;
width: 48px;
color: var(--accent);
background-color: #e8d4c4;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this use a hard coded color?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Initially I wanted to color the svg icon for the theme-toggle button but it always stayed at #000000 no matter what I do.

If I kept background-color: var(--bg) the icon will then not be visible in dark mode. That is why I hardcoded the color so it always stays the same and does not changed based on the theme

@rafasilpereira rafasilpereira added the Reviewed This assignment has been reivewed by a mentor and a feedback has been provided label May 20, 2026
- refactored to mobile-first approach
- made contact form vertical flexbox
- added form submit message
- changed focus to focus-visible
- removed !important keyword
@jivvyjams

Copy link
Copy Markdown
Author

@rafasilpereira thank you for reviewing the assignment! I have made changes based on your feedback in a new commit. The fixes should be there now 👌

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

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants