Skip to content

Commit 68da4cd

Browse files
committed
Fix few responsiveness aspects
- Fixed projects page overflowing in unexpected way on smaller screens - Made section windows smaller to make clicking off them easier on mobile
1 parent 3469d54 commit 68da4cd

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/menu/body/aboutme.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ const calculateAge = (birthDate: Date): number => {
1212
const age = calculateAge(new Date(2005, 4, 27))
1313

1414
export default function AboutMe() {
15-
return <ModalBody className="grid max-lg:w-5/6 max-md:grid-rows-[0.5fr_2fr] md:grid-cols-[1fr_2fr] gap-5">
16-
<Image priority className="justify-self-center" width={300} height={300} src="https://github.com/kvba5.png?size=300" alt="Avatar" />
15+
return <ModalBody className="grid max-lg:w-4/5 max-md:grid-rows-[0.5fr_2fr] md:grid-cols-[1fr_2fr] gap-5">
16+
<Image priority className="justify-self-center" width={400} height={400} src="https://github.com/kvba5.png?size=400" alt="Avatar" />
1717
<div className="overflow-y-auto">
1818
<h2 className="mb-5">About me</h2>
1919
<span>Hi! I'm Kuba! I'm a {age}-year-old software developer. I am passionate in AI, analytics and automation of various kinds of things. I like to create things that can make other people's life easier or that can make me happy. In spare time, I like to experiment with other hobbies like video editing or making music. I'd be more than happy if you could show me some support by checking out my projects on GitHub! (and maybe even contribute to them! :D)</span>

src/components/menu/body/projects.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ function Project({ repo: { name, description, stars, language } }: { repo: RepoD
5151
}
5252

5353
function ProjectsList() {
54-
return <div className="lg:grid lg:grid-cols-2 max-lg:flex max-lg:flex-col gap-5 overflow-y-auto">
54+
return <div className="grid lg:grid-cols-2 max-lg:grid-cols-1 gap-5 max-lg:overflow-y-auto p-3">
5555
{FEATURED_REPOS.map((r, i) => <Project repo={r} key={`featuredrepo-${i}`} />)}
5656
</div>
5757
}
5858

5959
export default function Projects() {
60-
return <ModalBody className="flex flex-col gap-3">
60+
return <ModalBody className="flex flex-col gap-3 max-sm:w-4/5">
6161
<h2 className="text-center">My featured projects!</h2>
6262
<ProjectsList />
6363
</ModalBody>

src/components/menu/body/social.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function SocialLink({ data: [type, data] }: { data: [string, string | string[]]
6161
}
6262

6363
export default function Social() {
64-
return <ModalBody className="grid max-lg:grid-rows-2 lg:grid-cols-2 max-sm:w-5/6 lg:justify-between gap-10 *:[&>h2]:text-center *:[&>h2]:mb-5 *:*:*:grid *:*:*:grid-cols-2 *:*:*:content-between">
64+
return <ModalBody className="grid max-lg:grid-rows-2 lg:grid-cols-2 max-sm:w-4/5 lg:justify-between gap-10 *:[&>h2]:text-center *:[&>h2]:mb-5 *:*:*:grid *:*:*:grid-cols-2 *:*:*:content-between">
6565
<div>
6666
<h2>Socials</h2>
6767
<div>{Object.entries(SOCIALS).map((s, i) => <SocialLink data={s} key={`social-entry-${i}`} />)}</div>

0 commit comments

Comments
 (0)