Skip to content

Commit

Permalink
Fixed text overlap issue on small screens
Browse files Browse the repository at this point in the history
  • Loading branch information
Shahharshii committed Oct 19, 2024
1 parent b6ed0f5 commit 64b407a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
5 changes: 2 additions & 3 deletions frontend/src/components/Pages/About.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

import bgpic from "../../assets/img/abt1.jpg";
'use client';
import bgpic from '../../assets/img/abt1.jpg';
import React, { useEffect } from 'react';


export default function About() {
useEffect(() => {
window.scrollTo(0, 0);
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/Shared/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Navbar = () => {
{ name: 'BOARDGAMES', path: '/boardgame' },
{ name: 'MEMBERSHIP', path: '/membership' }, // Add Membership here
];

useEffect(() => {
setToken(Cookies.get('authToken'));
});
Expand Down Expand Up @@ -107,7 +107,7 @@ const Navbar = () => {
</ul>
</div>

<div className="hidden md:flex font-semibold Poppins text-lg">
<div className="hidden md:flex font-semibold Poppins text-lg hover:bg-lime-200">
{token ? (
<button
className={`${baseTextColorClass} ${hoverTextColorClass} px-4 py-1 rounded-md border-2 border-black bg-beige shadow-[4px_4px_0px_0px_black] font-semibold text-[#323232]`}
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/ui/Landing.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Landing() {
<div className="flex-col md:flex pt-20 z-1">
{/* Text Content */}
<div className="p-4 md:w-1/2 mb-6 md:mb-0 text-center md:text-left z-10 pt-14">
<h1 className="text-6xl md:text-9xl font-bold ml-4" ref={textRef}>
<h1 className="text-5xl md:text-9xl font-bold ml-4" ref={textRef}>
A unique café experience awaits you
</h1>
</div>
Expand Down
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 64b407a

Please sign in to comment.