Skip to content

Commit cd1650f

Browse files
Merge pull request #2 from justforworkandstuff/fix/bug_mobile_view_issue
fix: mobile view content cropped off issue
2 parents 2c11665 + 0fb1658 commit cd1650f

16 files changed

Lines changed: 253 additions & 141 deletions

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7+
8+
## [1.0.1] - 2025-03-19
9+
10+
### Fixed
11+
12+
- Fix mobile view content cropped off [#1](https://github.com/justforworkandstuff/justforworkandstuff.github.io/issues/1)
13+
14+
## [1.0.0] - 2025-03-18
15+
16+
### Added
17+
18+
- Setup project portfolio website to be host on Github Pages.

my-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "my-app",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"private": true,
55
"dependencies": {
66
"@emotion/react": "^11.14.0",

my-app/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
work correctly both with client-side routing and a non-root public URL.
2828
Learn how to configure a non-root public URL by running `npm run build`.
2929
-->
30-
<title>justforworkandstuff - Personal Portfolio</title>
30+
<title>Vitti Ng - Personal Portfolio</title>
3131
</head>
3232
<body>
3333
<noscript>You need to enable JavaScript to run this app.</noscript>

my-app/public/manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "justforworkandstuff - Personal Portfolio",
3-
"short_name": "justforworkandstuff - Personal Portfolio",
2+
"name": "Vitti Ng - Personal Portfolio",
3+
"short_name": "Vitti Ng - Personal Portfolio",
44
"icons": [
55
{
66
"src": "android-chrome-192.png",

my-app/src/modules/contact/components/contactDescription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const ContactDescription = (props: ContactDescriptionProps) => {
3838
initial={{ opacity: 0, y: -20 }}
3939
animate={{ opacity: 1, y: 0 }}
4040
transition={{ duration: 0.5, delay: 0.2, ease: "easeIn" }}
41-
className={`w-full h-full ml-auto flex flex-col items-end justify-end max-w-sm text-right text-lg md:text-base leading-6 md:leading-4 ${
41+
className={`w-full h-full ml-auto flex flex-col items-end justify-end max-w-sm text-right text-base leading-5 md:leading-4 ${
4242
isThemeLight ? "text-black" : "text-gray-300"
4343
}`}
4444
>

my-app/src/modules/contact/contactPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const ContactPage = () => {
2121

2222
return (
2323
<div
24-
className={`min-h-screen w-full flex flex-col items-center justify-center ${
24+
className={`min-h-screen w-full flex flex-col flex-1 items-center md:justify-center pt-4 md:pt-0 ${
2525
isThemeLight ? "bg-white text-black" : "bg-black text-white"
2626
}`}
2727
>
@@ -42,7 +42,7 @@ const ContactPage = () => {
4242
)}
4343

4444
<div
45-
className={`w-[95%] h-[90vh] border relative xl:p-8 p-10 flex md:flex-row flex-col ${
45+
className={`w-[95%] md:min-h-[90vh] border relative p-8 flex md:flex-row flex-col ${
4646
isThemeLight ? "border-black" : "border-gray-500"
4747
}`}
4848
>
@@ -53,7 +53,7 @@ const ContactPage = () => {
5353
/>
5454
</div>
5555

56-
<div className="md:flex-[4] mt-auto">
56+
<div className="md:flex-[4] mt-12 md:mt-0">
5757
<ContactDescription
5858
isThemeLight={isThemeLight}
5959
/>

my-app/src/modules/home/components/aboutDescription.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const AboutDescription = (props: AboutDescriptionProps) => {
1313
initial={{ opacity: 0, y: -20 }}
1414
animate={{ opacity: 1, y: 0 }}
1515
transition={{ duration: 0.5, delay: 0.2, ease: "easeIn" }}
16-
className={`w-full h-full ml-auto flex flex-col items-end justify-end max-w-sm text-right text-lg md:text-base leading-6 md:leading-4 ${
16+
className={`w-full h-full ml-auto flex flex-col items-end justify-end max-w-sm text-right text-base leading-5 md:leading-4 ${
1717
isThemeLight ? "text-black" : "text-gray-300"
1818
}`}
1919
>

my-app/src/modules/home/homePage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const HomePage = () => {
3333

3434
return (
3535
<div
36-
className={`min-h-screen w-full flex flex-col items-center justify-center ${
36+
className={`min-h-screen w-full flex flex-col flex-1 items-center md:justify-center pt-4 md:pt-0 ${
3737
isThemeLight ? "bg-white text-black" : "bg-black text-white"
3838
}`}
3939
>
@@ -54,7 +54,7 @@ const HomePage = () => {
5454
)}
5555

5656
<div
57-
className={`w-[95%] h-[90vh] border relative xl:p-8 p-10 flex md:flex-row flex-col ${
57+
className={`w-[95%] md:min-h-[90vh] border relative p-8 flex md:flex-row flex-col ${
5858
isThemeLight ? "border-black" : "border-gray-500"
5959
}`}
6060
>
@@ -65,7 +65,7 @@ const HomePage = () => {
6565
/>
6666
</div>
6767

68-
<div className="md:flex-[4] mt-auto">
68+
<div className="md:flex-[4] mt-32 md:mt-0">
6969
<AboutDescription
7070
isThemeLight={isThemeLight}
7171
aboutDescription={userData?.aboutDescription ?? []}

my-app/src/modules/journey/components/experienceCardMobile.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const ExperienceCardMobile = (props: ExperienceCardMobileProps) => {
2929
initial={{ opacity: 0, y: -20 }}
3030
animate={{ opacity: 1, y: 0 }}
3131
transition={{ duration: 0.5, delay: 0.2, ease: "easeIn" }}
32-
className={`w-full h-full flex items-start justify-start text-lg leading-6 overflow-y-auto scrollbar-hide flex-nowrap ${
32+
className={`w-full h-full flex items-start justify-start text-base leading-5 overflow-y-auto scrollbar-hide flex-nowrap ${
3333
isThemeLight ? "text-black" : "text-gray-300"
3434
}`}
3535
>

my-app/src/modules/journey/journeyPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ const JourneyPage = () => {
3434

3535
return (
3636
<div
37-
className={`min-h-screen w-screen flex flex-col items-center justify-center ${
37+
className={`min-h-screen w-full flex flex-col flex-1 items-center md:justify-center pt-4 md:pt-0 mb-6 md:mb-0 ${
3838
isThemeLight ? "bg-white text-black" : "bg-black text-white"
3939
}`}
4040
>
@@ -60,7 +60,7 @@ const JourneyPage = () => {
6060
)}
6161

6262
<div
63-
className={`w-[95%] h-[90vh] border relative xl:p-8 p-10 flex md:flex-row flex-col overflow-y-auto scrollbar-hide ${
63+
className={`w-[95%] h-[90vh] border relative p-8 flex md:flex-row flex-col overflow-y-auto scrollbar-hide ${
6464
isThemeLight ? "border-black" : "border-gray-500"
6565
}`}
6666
>
@@ -78,7 +78,7 @@ const JourneyPage = () => {
7878
/>
7979
</div>
8080

81-
<div className="block md:hidden">
81+
<div className="block md:hidden flex-1">
8282
<ExperienceCardMobile
8383
isThemeLight={isThemeLight}
8484
experienceList={userData?.experienceList ?? []}

0 commit comments

Comments
 (0)