Skip to content

Commit

Permalink
fix pagespeed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vladkens committed Feb 9, 2024
1 parent c983c35 commit e5f40fe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion public/robots.txt
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
Allow: *
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
4 changes: 2 additions & 2 deletions src/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const ChangeTheme: FC = () => {
const Icon = isDark ? IconSunFilled : IconMoon

return (
<button onClick={() => setTheme(isDark ? "light" : "dark")}>
<button onClick={() => setTheme(isDark ? "light" : "dark")} aria-label="switch theme">
<Icon className="h-5 w-5 hover:text-blue-500 dark:hover:text-yellow-500" />
</button>
)
Expand Down Expand Up @@ -57,7 +57,7 @@ export const Header: FC = () => {
<header className="flex h-[64px] items-center justify-between">
<div className="flex items-center gap-5 pl-1.5">
<a href="/" className="flex items-center gap-2 text-xl font-bold text-primary">
<img src="logo.svg" className="h-[24px] w-[24px] rounded" />
<img src="logo.svg" alt="logo" className="h-[24px] w-[24px] rounded" />
TimeWiz.cc
</a>

Expand Down
1 change: 1 addition & 0 deletions src/components/Tabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export const Tabs: FC = () => {

<button
key="add"
aria-label="add tab"
onClick={addTab}
className={clsx(
"mx-1 flex h-6 w-6 items-center justify-center rounded-full hover:bg-gray-200",
Expand Down
1 change: 1 addition & 0 deletions src/components/ui/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export const Button: FC<ButtonProps> = (props) => {

return (
<button
aria-label="select date"
className={clsx(
"flex items-center gap-1 text-nowrap rounded border",
sizes[size],
Expand Down

0 comments on commit e5f40fe

Please sign in to comment.