Skip to content

Week2-Homework#4

Open
Bozha25 wants to merge 2 commits intodistinctioncoding:mainfrom
Bozha25:week2
Open

Week2-Homework#4
Bozha25 wants to merge 2 commits intodistinctioncoding:mainfrom
Bozha25:week2

Conversation

@Bozha25
Copy link

@Bozha25 Bozha25 commented Jul 6, 2025

No description provided.

<div className="form-field">
<button type="submit"
className="submit-btn"
disabled={typeof btnDisabled === 'function' ? btnDisabled() : btnDisabled}

Choose a reason for hiding this comment

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

a little bit complicated and not rigorous, can directly pass passwordMatch as a boolean instead of a function

console.log('Signin success:', result);

if (isRemember) {
localStorage.setItem("rememberLogin", "true");

Choose a reason for hiding this comment

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

unnecessary to store rememberLogin, can directly get savedEmail and savedPassword if they are stored, if not set to remember, just clear the savedEmail and savedPassword from localstorage

Comment on lines +13 to +15
theme === 'dark'
? root.classList.add('dark')
: root.classList.remove('dark');

Choose a reason for hiding this comment

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

good logic

@Gary-Distinctioncoding
Copy link

image Overall is excellent work, responsive and toggle theme works perfect. there is a little issue that the background image does not fully display in mobile screen

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