Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #28 from arduR-O/master
Browse files Browse the repository at this point in the history
fix: starting page for mobile, margins for mobile, countdown issue, cursor issue, mobile height issue
  • Loading branch information
aditansh authored Aug 30, 2023
2 parents 06ba833 + 18ed263 commit 4cb9f7f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cookoff24-landing/src/components/Countdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@ const Countdown = () => {
const interval = setInterval(calculateCountdown, 1000);

return () => clearInterval(interval);
});
},[]);

return (
<div className="min-h-[90vh] md:h-[70vh] w-[80vw] relative xs:my-10 flex flex-col gap-[10vh]">
<div className="min-h-[90vh] md:h-[70vh] w-[80vw] relative xs:-my-10 flex flex-col gap-[10vh] xs:gap-[2vh]">
<div
id="proxima"
className="uppercase text-[16px] md:text-[10px] mx-[17%] md:mx-[10%] text-[#B7AB98] mt-28 mb-10 tracking-[7px]"
className="uppercase text-[16px] md:text-[10px] mx-[17%] md:mx-[10%] text-[#B7AB98] mt-28 mb-10 xs:mb-6 tracking-[7px]"
>
Countdown
</div>
Expand Down
2 changes: 1 addition & 1 deletion cookoff24-landing/src/components/Prizes.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const Prizes = () => {
setIsHovered(hoverState);
};
return (
<div className="min-h-[100vh] sm:h-[67vh] w-[100vw] text-grey flex flex-col items-start justify-between gap-[3.1rem] py-16" id="prizes">
<div className="min-h-[100vh] w-[100vw] text-grey flex flex-col items-start justify-between gap-[3.1rem] py-16 sm:min-h-[80vh]" id="prizes">
<div
id="proxima"
className="text-[16px] md:text-[12px] font-normal tracking-[7px] mx-[13%] md:mx-[10%] text-grey pt-2"
Expand Down
2 changes: 1 addition & 1 deletion cookoff24-landing/src/components/Welcome.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Welcome = () => {
console.log("isMid" + isMid);

return (
<div className="h-[100vh] w-[100vw] cursor-default flex flex-col justify-center" id="welcome">
<div className="h-[100vh] w-[100vw] cursor-default flex flex-col justify-center sm:-mt-16" id="welcome">
{isMid && <TitleSVGMobile />}
{!isMid && <TitleSVG />}
<div className="flex justify-center z-10">
Expand Down
2 changes: 1 addition & 1 deletion cookoff24-landing/src/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const Index = () => {
)}
{/* main flex */}
<div className="flex flex-col justify-center justify-items-center gap-36 ">
<div className={`-mt-24 relative text-4xl font-semibold hover:opacity-0 text-black h-[15vh] flex justify-items-center ${currentVaraint=="notDefault"? "opacity-0" : "opacity-100"}`}>Please turn off dark mode</div>
<div className={`-mt-24 relative text-4xl font-semibold hover:opacity-0 text-black h-[15vh] flex justify-items-center xs:-mt-64 ${currentVaraint=="notDefault"? "opacity-0" : "opacity-100"}`}>Please turn off dark mode</div>
{/* icon */}
<div
className=" flex justify-center relative before:absolute before:bg-dark-grey before:h-56 before:w-56 before:-z-10 before:-bottom-16 before:rounded-full"
Expand Down
6 changes: 5 additions & 1 deletion cookoff24-landing/src/pages/landing.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function Home() {
<link rel="icon" href="/Favicon.png" />
</Head>
<FixedNav />
<main className="h-[1090vh] sm:h-[950vh] w-[100vw] relative cursor-default overflow-x-hidden">
<main className="h-[1090vh] sm:h-[810vh] w-[100vw] relative cursor-default overflow-x-hidden">
<div className="absolute w-[100vw]">
<Welcome />
<About />
Expand Down Expand Up @@ -85,6 +85,10 @@ export default function Home() {
<FillerMask2 />
<FillerMask2 />
<FillerMask2 />
<FillerMask2 />
<FillerMask2 />
<FillerMask2 />
<FillerMask2 />
</motion.div>
)}
</main>
Expand Down
4 changes: 4 additions & 0 deletions cookoff24-landing/src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,8 @@ body {

#proximaBold {
font-family: Proxima;
}

*{
user-select: none;
}

0 comments on commit 4cb9f7f

Please sign in to comment.