Skip to content

Commit

Permalink
overlapping text fixes for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
LevaniVashadze committed Mar 4, 2024
1 parent 521c6e8 commit 4de0ca5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ const About = () => {
const { t } = useTranslation();
return (
<Element name={"About"}>
<section id="About" className="flex h-screen items-center justify-center">
<section
id="About"
className="flex min-h-screen min-h-svh items-center justify-center"
>
<div className="mb-24 px-2 text-left lg:mb-0 lg:w-1/2 2xl:w-1/3">
<h2 className="mb-1 text-4xl font-bold">{t("aboutTitle")}</h2>
<p className="font-raleway text-2xl">{t("aboutText")}</p>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const Contact = () => {
<Element name={"Contact"}>
<section
id="Contact"
className="flex h-screen items-center justify-center"
className="flex min-h-screen min-h-svh items-center justify-center"
>
<div className="px-4 lg:w-1/2 2xl:w-1/3">
<h3 className="mb-4 text-3xl">{t("ContactText")}</h3>
Expand Down
9 changes: 7 additions & 2 deletions src/components/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,14 @@ const Home = () => {
const { t } = useTranslation();
return (
<Element name={"Home"}>
<section id="Home" className="flex h-screen items-center justify-center">
<section
id="Home"
className="flex min-h-screen min-h-svh items-center justify-center"
>
<div className="text-center">
<h1 className="font-sparta text-6xl font-bold">{t("hello")}</h1>
<h1 className="font-sparta text-5xl font-bold sm:text-6xl">
{t("hello")}
</h1>
<h3 className="text-3xl">{t("welcome")}</h3>
</div>

Expand Down
5 changes: 4 additions & 1 deletion src/components/Work.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import { Trans } from "react-i18next";
const Work = () => {
return (
<Element name={"Work"}>
<section id="Work" className="flex h-screen items-center justify-center">
<section
id="Work"
className="flex min-h-screen min-h-svh items-center justify-center"
>
<div className="container mx-auto px-4 lg:w-2/3">
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
<div className="">
Expand Down

0 comments on commit 4de0ca5

Please sign in to comment.