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

Basic Login Page #12

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
9 changes: 0 additions & 9 deletions public/assets/loginBackground.svg

This file was deleted.

13 changes: 0 additions & 13 deletions public/assets/loginImg.svg

This file was deleted.

Binary file added public/assets/octopos.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 5 additions & 38 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -40,39 +40,6 @@
--card-border-rgb: 131, 134, 135;
}

@media (prefers-color-scheme: dark) {
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;

--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)
);

--tile-start-rgb: 2, 13, 46;
--tile-end-rgb: 2, 5, 19;
--tile-border: conic-gradient(
#ffffff80,
#ffffff40,
#ffffff30,
#ffffff20,
#ffffff10,
#ffffff10,
#ffffff80
);

--callout-rgb: 20, 20, 20;
--callout-border-rgb: 108, 108, 108;
--card-rgb: 100, 100, 100;
--card-border-rgb: 200, 200, 200;
}
}

* {
box-sizing: border-box;
padding: 0;
Expand All @@ -88,11 +55,11 @@ body {
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
90deg,
rgba(2, 0, 36, 1) 0%,
rgba(20, 101, 107, 1) 37%,
rgba(0, 212, 255, 1) 100%
);
}

a {
Expand Down
10 changes: 7 additions & 3 deletions src/app/page.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,20 @@
height: 100vh;
}


.loginImg {
margin-right: 60px;
width: 320px;
height: 400px;
background: #dae1e85e;
border-radius: 20px;
}

.loginBackground {
position: relative; /* Pozisyon referansı */
}

.loginForm {
position: absolute; /* Absolut pozisyonlama */
position: fixed; /* Absolut pozisyonlama */
top: 50%; /* Üstten yarı yarıya */
left: 27%; /* Soldan yarı yarıya */
transform: translate(-50%, -50%); /* Tam ortasına getir */
Expand All @@ -41,7 +45,7 @@

.loginForm button {
padding: 10px;
background-color: orange;
background-color: #14656b;
color: white;
border: none;
cursor: pointer;
Expand Down
12 changes: 6 additions & 6 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,8 @@ export default function Home() {
return (
<div className={styles.container}>
<div className={styles.loginImg}>
<Image src="/assets/loginImg.svg" width={341} height={535} alt="image"/>
</div>
<div className={styles.loginBackground}>
<Image src="/assets/loginBackground.svg" width={649} height={534} alt="background" />
</div>
<div className={styles.loginForm}>
{/* Form alanınızı burada oluşturabilirsiniz */}
<h3>Web Application</h3>
<form>
<label htmlFor="email">Email</label>
<input type="email" id="email" name="email" required />
Expand All @@ -22,6 +17,11 @@ export default function Home() {
<button type="submit">Sign in</button>
</form>
</div>
</div>
<div className={styles.loginBackground}>
<Image src="/assets/octopos.png" width={700} height={400} alt="background" />
</div>

</div>
);
}