Skip to content

Commit

Permalink
Add github repo link and adjust header searhc placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
MaoShizhong committed Jan 5, 2024
1 parent a855020 commit 088427f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ export function Header({
<input
type="search"
name="search"
aria-label="search peepl"
placeholder="Search for peepl"
aria-label="search peepl users"
placeholder="Find peepl"
defaultValue={query}
className={headerStyles.search}
ref={searchRef}
Expand Down
14 changes: 13 additions & 1 deletion src/components/settings/Settings.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ export function Settings() {
if (emailRes instanceof Error || !emailRes.ok) {
alert(SERVER_ERROR);
} else {
alert('An email containing a one-time use link has sent to the email associated with this account.');
alert(
'An email containing a one-time use link has sent to the email associated with this account.'
);
}
}

Expand Down Expand Up @@ -65,6 +67,16 @@ export function Settings() {
>
Request account deletion
</button>

<a
href="https://github.com/MaoShizhong/Peepl"
target="_blank"
rel="noreferrer"
className={settingsStyles.github}
>
<img src="/github.png" alt="github logo" />
MaoShizhong
</a>
</main>
);
}
16 changes: 16 additions & 0 deletions src/components/settings/css/settings.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,19 @@
.error {
composes: error from '../../login/css/login.module.css';
}

.github {
align-items: center;
display: flex;
gap: 6px;
margin-top: auto;
transition: var(--transition);

& > img {
width: 40px;
}

&:hover {
opacity: 0.7;
}
}

0 comments on commit 088427f

Please sign in to comment.