Skip to content

Commit

Permalink
fix: improve accessibility and mobile screen display
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoEscaleira committed Jun 17, 2024
1 parent 6483b9b commit 7fb70fd
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
/** @type {import('next').NextConfig} */
module.exports = {
reactStrictMode: true,
i18n: {
locales: ['en-US'],
defaultLocale: 'en-US',
domains: [
{
domain: 'escaleira.dev',
defaultLocale: 'en-US',
},
],
}
}
2 changes: 1 addition & 1 deletion public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
{"name":"Escaleira Portfolio","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1 change: 1 addition & 0 deletions src/components/ThemeSwitcher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const ThemeSwitcher = () => {
<button
className="rounded-md p-1 duration-200 hover:scale-110 active:scale-100 dark:bg-[#212933]"
onClick={() => setTheme(theme === "dark" ? "light" : "dark")}
aria-label="Color mode switch"
>
{theme === "light" ? <Moon className="w-4" /> : <Sun className="w-4" />}
</button>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Link from "next/link";
export const Footer: FC = () => {
return (
<footer className={`bg-transparent dark:bg-gray-900`}>
<div className="container mx-auto flex flex-col items-center justify-between space-y-4 p-6 sm:flex-row sm:space-y-0">
<div className="container mx-auto flex items-center justify-between p-4 sm:flex-row sm:p-6">
<Link href="/">
<Image src="/logo-white.svg" alt="logo-marco" height={60} width={60} className="text-black" />
</Link>
Expand Down
2 changes: 1 addition & 1 deletion src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export const Header: FC = () => {

return (
<header className={`h-16 w-full`}>
<div className="container mx-auto flex flex-col items-center justify-between space-y-4 p-6 sm:flex-row sm:space-y-0">
<div className="container mx-auto flex items-center justify-between p-4 sm:flex-row sm:p-6">
<section className="flex items-center">
<Image src="/logo-white.svg" alt="logo-marco" height={60} width={60} loading="lazy" />
{/*<nav className="ml-8 flex gap-4">*/}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import Link from "next/link";

export default function Home() {
return (
<div className="container flex items-center justify-center">
<div className="container flex flex-col items-center justify-center md:flex-row">
<Image src="/marco.jpg" alt="Marco's face" width={250} height={250} className="rounded-[50%] shadow" />
<div className="ml-10">
<Typography variant="h1" className="mb-2">
Expand Down

0 comments on commit 7fb70fd

Please sign in to comment.