Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login-page-draft #11

Open
wants to merge 1 commit into
base: phase1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
191 changes: 100 additions & 91 deletions src/app/globals.css
Original file line number Diff line number Diff line change
@@ -1,107 +1,116 @@
:root {
--max-width: 1100px;
--border-radius: 12px;
--font-mono: ui-monospace, Menlo, Monaco, "Cascadia Mono", "Segoe UI Mono",
"Roboto Mono", "Oxygen Mono", "Ubuntu Monospace", "Source Code Pro",
"Fira Mono", "Droid Sans Mono", "Courier New", monospace;

--foreground-rgb: 0, 0, 0;
--background-start-rgb: 214, 219, 220;
--background-end-rgb: 255, 255, 255;

--primary-glow: conic-gradient(
from 180deg at 50% 50%,
#16abff33 0deg,
#0885ff33 55deg,
#54d6ff33 120deg,
#0071ff33 160deg,
transparent 360deg
);
--secondary-glow: radial-gradient(
rgba(255, 255, 255, 1),
rgba(255, 255, 255, 0)
);

--tile-start-rgb: 239, 245, 249;
--tile-end-rgb: 228, 232, 233;
--tile-border: conic-gradient(
#00000080,
#00000040,
#00000030,
#00000020,
#00000010,
#00000010,
#00000080
);

--callout-rgb: 238, 240, 241;
--callout-border-rgb: 172, 175, 176;
--card-rgb: 180, 185, 188;
--card-border-rgb: 131, 134, 135;
/* Assuming the base of your CSS is correctly setting the font 'Gilroy' and other resets */
body {
background-image: url('./loginBackground.svg'), url('./loginBackground.svg'); /* Two background images */
background-size: 700px auto, 200px 200px; /* First image fixed size, second image 200x200 pixels */
background-repeat: no-repeat, no-repeat; /* Prevent repeating */
background-position: right 50%, left bottom; /* First image right 50%, second image bottom left */
padding-right: 641px; /* Add space to the right equal to the width of the card */
background-color: #f5f5dc; /* Set general background color to cream */
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
/* This will be your main container */
.login-container {
display: flex;
justify-content: flex-start; /* Align content to the left */
align-items: center;
height: 100vh; /* Full viewport height */
position: relative; /* For child's absolute positioning */
}

--primary-glow: radial-gradient(rgba(1, 65, 255, 0.4), rgba(1, 65, 255, 0));
--secondary-glow: linear-gradient(
to bottom right,
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0),
rgba(1, 65, 255, 0.3)
);
/* This is your card container */
.rectangle-1379 {
position: absolute;
width: 641px;
height: 835px;
background-color: rgba(255, 255, 255, 0.3);
border-radius: 40px;
display: flex;
flex-direction: column;
align-items: center; /* Center content horizontally */
justify-content: center; /* Center content vertically */
left: 50px;
top: 50%;
transform: translateY(-50%);
padding: 20px;
z-index: 1;
border: 2px solid rgba(255, 255, 255, 0.3);
backdrop-filter: blur(3px);
}

--tile-start-rgb: 2, 13, 46;
--tile-end-rgb: 2, 5, 19;
--tile-border: conic-gradient(
#ffffff80,
#ffffff40,
#ffffff30,
#ffffff20,
#ffffff10,
#ffffff10,
#ffffff80
);
/* Aligning the logo */
.your-logo {
font-weight: 700;
font-size: 24px;
line-height: 29px;
color: #F25019;
margin-bottom: 20px;
text-align: center; /* Center text */
width: auto; /* Adjust width based on text */
}

--callout-rgb: 20, 20, 20;
--callout-border-rgb: 108, 108, 108;
--card-rgb: 100, 100, 100;
--card-border-rgb: 200, 200, 200;
}
/* Aligning the login title */
.login-title {
font-weight: 700;
font-size: 38px;
line-height: 46px;
color: #2A1E17;
margin-bottom: 40px;
text-align: center; /* Center text */
width: auto; /* Adjust width based on text */
}

* {
box-sizing: border-box;
padding: 0;
margin: 0;
/* Aligning the form fields */
.fields {
display: flex;
flex-direction: column;
width: 400px; /* Form width */
align-self: center; /* Self-center */
/* Other styles unchanged */
}

html,
body {
max-width: 100vw;
overflow-x: hidden;
/* Email input field */
.rectangle-1381 {
background: rgba(255, 255, 255, 0.5); /* Transparent white background */
border-radius: 5px;
border: none;
height: 50px;
margin-bottom: 20px; /* Adjust margin if needed */
backdrop-filter: blur(5px); /* Slight blur effect */
}

body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
/* Password input field */
.rectangle-1382 {
background: rgba(255, 255, 255, 0.5); /* Transparent white background */
border-radius: 5px;
border: none;
height: 50px;
margin-bottom: 20px; /* Adjust margin if needed */
backdrop-filter: blur(5px); /* Slight blur effect */
}

a {
color: inherit;
text-decoration: none;
/* Sign in button */
.rectangle-1383 {
background: #F25019;
border-radius: 5px;
color: #FFFFFF;
font-weight: 700;
font-size: 20px;
line-height: 24px;
height: 50px;
border: none;
}

@media (prefers-color-scheme: dark) {
html {
color-scheme: dark;
}
/* No need for the social buttons or other elements */

/* Transparent background image */
body::after {
content: '';
position: fixed;
top: 0;
left: 0;
bottom: 0;
width: 50%; /* Take up 50% of the space on the right */
background-image: url('./loginBackground.svg'); /* Transparent background image */
opacity: 0.5; /* Transparency level */
z-index: -1; /* Ensure it's below other content */
}
9 changes: 9 additions & 0 deletions src/app/loginBackground.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
115 changes: 27 additions & 88 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,95 +1,34 @@
import Image from "next/image";
import styles from "./page.module.css";
import React from 'react';
import '../app/globals.css'

export default function Home() {
return (
<main className={styles.main}>
<div className={styles.description}>
<p>
Get started by editing&nbsp;
<code className={styles.code}>src/app/page.tsx</code>
</p>
<div>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
By{" "}
<Image
src="/vercel.svg"
alt="Vercel Logo"
className={styles.vercelLogo}
width={100}
height={24}
priority
/>
</a>
<div className="login-container">
<div className="rectangle-1379">
{/* Assuming 'Your Logo' is text. If it's an image, use <img> tag instead */}
<div className="your-logo">
Your Logo
</div>
</div>

<div className={styles.center}>
<Image
className={styles.logo}
src="/next.svg"
alt="Next.js Logo"
width={180}
height={37}
priority
/>
</div>

<div className={styles.grid}>
<a
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Docs <span>-&gt;</span>
</h2>
<p>Find in-depth information about Next.js features and API.</p>
</a>

<a
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Learn <span>-&gt;</span>
</h2>
<p>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
</a>

<a
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Templates <span>-&gt;</span>
</h2>
<p>Explore starter templates for Next.js.</p>
</a>
<div className="login-title">
Login
</div>
<form className="fields">
<label htmlFor="email" className="email-label">
Email
</label>
<input type="email" id="email" className="rectangle-1381" placeholder="[email protected]" />

<label htmlFor="password" className="password-label" >

<a
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
className={styles.card}
target="_blank"
rel="noopener noreferrer"
>
<h2>
Deploy <span>-&gt;</span>
</h2>
<p>
Instantly deploy your Next.js site to a shareable URL with Vercel.
</p>
</a>
Password
</label>
<input type="password" id="password" className="rectangle-1382" placeholder='password' />

<button type="submit" className="rectangle-1383">
Login
</button>
</form>
</div>
</main>
);
</div>
)
}