-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added a new login screen (only design) - Fixed some styles
- Loading branch information
Alessandro Mazzon
authored
Sep 20, 2023
1 parent
aa5bf9f
commit 3c4566b
Showing
16 changed files
with
161 additions
and
20 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
"use client"; | ||
import React from "react"; | ||
import Image from "next/image"; | ||
import { StaticImport } from "next/dist/shared/lib/get-img-props"; | ||
|
||
interface Props { | ||
image: string | StaticImport; | ||
alt: string; | ||
} | ||
|
||
const BackgroundImage = ({ image, alt }: Props) => { | ||
return ( | ||
<Image | ||
priority | ||
alt={alt} | ||
src={image} | ||
sizes={"100vw"} | ||
quality={100} | ||
fill={true} | ||
className="transition-opacity opacity-[0] duration-[1s]" | ||
style={{ objectFit: "cover" }} | ||
onLoadingComplete={(image) => { | ||
image.classList.remove("opacity-[0]"); | ||
}} | ||
/> | ||
); | ||
}; | ||
|
||
export default BackgroundImage; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import React from "react"; | ||
import "../../globals.css"; | ||
import DefaultSEO from "@/seo"; | ||
|
||
export const metadata = { | ||
...DefaultSEO, | ||
title: "Login | Bondscape", | ||
}; | ||
|
||
export default function RootLayout({ | ||
children, | ||
}: { | ||
children: React.ReactNode; | ||
}) { | ||
return <div>{children}</div>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
"use client"; | ||
import React from "react"; | ||
import MainLayout from "@/layouts/MainLayout"; | ||
import Image from "next/image"; | ||
import heroImage from "../../../../public/bondscape-home-bg.png"; | ||
import overlay from "../../../../public/login-overlay-bg.png"; | ||
import useBreakpoints from "@/hooks/useBreakpoints"; | ||
|
||
export default function Login() { | ||
const [isMobile, isMd] = useBreakpoints(); | ||
|
||
if (isMobile || isMd) { | ||
return ( | ||
<div className="flex flex-1 h-screen justify-center items-center px-xMobile"> | ||
<div className="text-white"> | ||
This page is not supported on mobile devices. Please use a desktop | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
return ( | ||
<MainLayout | ||
backgroundImage={true} | ||
backgroundImageSrc={heroImage} | ||
backgroundOverlay={overlay} | ||
> | ||
<div className="relative w-full h-screen flex justify-center"> | ||
<div className="flex justify-center"> | ||
<div className="w-[27rem] flex flex-col items-center gap-8 mt-48"> | ||
<Image | ||
priority | ||
alt={"Bondscape Logo with text"} | ||
src={"/bondscapeLogoWithIcon.png"} | ||
width={160} | ||
height={146} | ||
/> | ||
<p className="text-white font-light text-[16px] leading-[24px] pb-[48px]"> | ||
Create real bonds with engaging event experiences | ||
</p> | ||
<div className="flex flex-col gap-[24px]"> | ||
<button | ||
className="flex flex-row flex-1 py-[6px] w-[420px] rounded-[100px] justify-center items-center bg-white hover:bg-[#EDEDED] transition-colors ease-in-out duration-300 cursor-pointer bondscape-box-shadow-medium" | ||
onClick={() => console.log("test")} | ||
> | ||
<Image | ||
alt={"Google login"} | ||
src={"/googleLoginIcon.png"} | ||
width={40} | ||
height={40} | ||
/> | ||
<p className="text-bondscape-text_neutral_800 font-semibold text-[16px] leading-[24px]"> | ||
Continue with Google | ||
</p> | ||
</button> | ||
<button | ||
className="flex flex-row flex-1 py-[6px] w-[420px] rounded-[100px] justify-center items-center bg-white hover:bg-[#EDEDED] transition-colors ease-in-out duration-300 cursor-pointer bondscape-box-shadow-medium" | ||
onClick={() => console.log("test")} | ||
> | ||
<Image | ||
alt={"Google login"} | ||
src={"/appleLoginIcon.png"} | ||
width={40} | ||
height={40} | ||
/> | ||
<p className="text-bondscape-text_neutral_800 font-semibold text-[16px] leading-[24px]"> | ||
Continue with Apple | ||
</p> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</MainLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters