-
Couldn't load subscription status.
- Fork 1.6k
Add cosmic login page #958
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
Open
spy-in-shadows
wants to merge
7
commits into
Ayushparikh-code:main
from
spy-in-shadows:add-cosmic-login-page
+147
β0
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
9c7d2e8
Add Cosmic Login Page mini project
spy-in-shadows b3e37dd
Updated README.md
spy-in-shadows 58d5036
Update Index.md
spy-in-shadows 34d0133
Update Index.md
spy-in-shadows 3b04365
Update Index.md
spy-in-shadows 1ac7a99
Update Index.md
spy-in-shadows 5d5123f
Update Index.md
spy-in-shadows File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
Cosmic-Login-Page/README.md
This file contains hidden or 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,22 @@ | ||
| # π Cosmic Login Page | ||
|
|
||
| A modern, responsive login page with a glowing cosmic gradient background and floating label inputs. | ||
|
|
||
| ## β¨ Features | ||
| - Responsive design | ||
| - Smooth input animations | ||
| - Glassmorphism effect | ||
| - Gradient background | ||
| - Hover transitions on the login button | ||
|
|
||
| ## π§ Tech Used | ||
| - HTML5 | ||
| - CSS3 (Flexbox, gradients, transitions) | ||
|
|
||
| ## πΈ Preview | ||
|  | ||
|  | ||
|
|
||
| --- | ||
|
|
||
| β **Contributed by:** [spy-in-shadows](https://github.com/spy-in-shadows) |
28 changes: 28 additions & 0 deletions
Cosmic-Login-Page/index.html
This file contains hidden or 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,28 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <title>Cosmic Login Page</title> | ||
| <link rel="stylesheet" href="style.css"> | ||
| </head> | ||
| <body> | ||
| <div class="container"> | ||
| <div class="login-box"> | ||
| <h2>Welcome Back</h2> | ||
| <form> | ||
| <div class="input-box"> | ||
| <input type="text" required> | ||
| <label>Username</label> | ||
| </div> | ||
| <div class="input-box"> | ||
| <input type="password" required> | ||
| <label>Password</label> | ||
| </div> | ||
| <button type="submit" class="btn">Login</button> | ||
| <p class="signup">Don't have an account? <a href="#">Sign up</a></p> | ||
| </form> | ||
| </div> | ||
| </div> | ||
| </body> | ||
| </html> |
Binary file added
Cosmic-Login-Page/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[γγ¬γΌγ ]
Binary file added
Cosmic-Login-Page/screenshot1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[γγ¬γΌγ ]
96 changes: 96 additions & 0 deletions
Cosmic-Login-Page/style.css
This file contains hidden or 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,96 @@ | ||
| @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap'); | ||
|
|
||
| * { | ||
| margin: 0; | ||
| padding: 0; | ||
| box-sizing: border-box; | ||
| font-family: 'Poppins', sans-serif; | ||
| } | ||
|
|
||
| body { | ||
| height: 100vh; | ||
| background: radial-gradient(circle at top right, #2b1055, #7597de); | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| overflow: hidden; | ||
| } | ||
|
|
||
| .container { | ||
| position: relative; | ||
| width: 100%; | ||
| max-width: 400px; | ||
| padding: 2rem; | ||
| background: rgba(255, 255, 255, 0.1); | ||
| border-radius: 1rem; | ||
| box-shadow: 0 0 30px rgba(0, 0, 0, 0.3); | ||
| backdrop-filter: blur(15px); | ||
| } | ||
|
|
||
| .login-box h2 { | ||
| color: #fff; | ||
| text-align: center; | ||
| margin-bottom: 2rem; | ||
| font-weight: 600; | ||
| } | ||
|
|
||
| .input-box { | ||
| position: relative; | ||
| margin: 20px 0; | ||
| } | ||
|
|
||
| .input-box input { | ||
| width: 100%; | ||
| padding: 12px 10px; | ||
| background: transparent; | ||
| border: none; | ||
| border-bottom: 2px solid #fff; | ||
| color: #fff; | ||
| outline: none; | ||
| font-size: 1rem; | ||
| } | ||
|
|
||
| .input-box label { | ||
| position: absolute; | ||
| top: 12px; | ||
| left: 10px; | ||
| color: #ccc; | ||
| pointer-events: none; | ||
| transition: 0.3s; | ||
| } | ||
|
|
||
| .input-box input:focus ~ label, | ||
| .input-box input:valid ~ label { | ||
| top: -10px; | ||
| color: #fff; | ||
| font-size: 0.85rem; | ||
| } | ||
|
|
||
| .btn { | ||
| width: 100%; | ||
| background: linear-gradient(90deg, #667eea, #764ba2); | ||
| border: none; | ||
| padding: 10px; | ||
| color: #fff; | ||
| font-size: 1rem; | ||
| border-radius: 30px; | ||
| cursor: pointer; | ||
| transition: 0.3s; | ||
| } | ||
|
|
||
| .btn:hover { | ||
| background: linear-gradient(90deg, #764ba2, #667eea); | ||
| transform: scale(1.03); | ||
| } | ||
|
|
||
| .signup { | ||
| text-align: center; | ||
| color: #eee; | ||
| margin-top: 15px; | ||
| } | ||
|
|
||
| .signup a { | ||
| color: #fff; | ||
| font-weight: 600; | ||
| text-decoration: none; | ||
| } |
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.