DevPlatform
Home
Components
Search
Submit
Earn
Login
Sign Up Free
form purple - Preview | DevPlatform
DevPlatform
Categories
Accordion
Animation
Box Shadow
Button
Card
Footer
Form
Gallery
Hero Section
Inputs
Loader
Marquee
Modal
Modules
Navbar
Progress Bar
Radio Buttons
Search-Bar
Sections
Slider
Tab
Timeline
Toggle
form purple
sachin007
Jan 17, 2026
3
0
Share
Live Preview
Refresh
Live Editor
HTML
CSS
JS
HTML
CSS
JavaScript
1
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Devbox</title> <link rel="stylesheet" href="style.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css"> <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet"> </head> <body> <div class="container"> <div class="logo"> <h1>Devbox</h1> </div> <div class="card"> <div class="header"> <h2>Ready to Build?</h2> <p>Sign up and start building today.</p> </div> <form id="signupForm"> <div class="form-group"> <label for="email">Email</label> <div class="input-with-icon"> <i class="fas fa-envelope"></i> <input type="email" id="email" placeholder="Enter your email" required> </div> </div> <div class="checkbox-group"> <input type="checkbox" id="terms" required> <label for="terms"> I agree to the <a href="#">Terms</a> and <a href="#">Privacy Policy</a> </label> </div> <button type="submit" class="btn-primary"> <i class="fas fa-envelope"></i> Continue with Email </button> <div class="divider"> <span>Or sign up with:</span> </div> <div class="social-buttons"> <button type="button" class="btn-social github-btn"> <i class="fab fa-github social-icon github"></i> GitHub </button> <button type="button" class="btn-social google-btn"> <i class="fab fa-google social-icon google"></i> Google </button> <button type="button" class="btn-social facebook-btn"> <i class="fab fa-facebook-f social-icon facebook"></i> Facebook </button> </div> <div class="footer"> Already have an account? <a href="#" id="loginLink">Login</a> </div> </form> </div> </div> <script src="script.js"></script> </body> </html>
1
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; } body { background-color: #fafafa; color: #1a1a1a; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; } .container { width: 100%; max-width: 440px; } .logo { text-align: center; margin-bottom: 40px; } .logo h1 { font-size: 36px; font-weight: 700; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.5px; } .card { background: white; border-radius: 20px; padding: 48px 40px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06); border: 1px solid #f0f0f0; } .header { text-align: center; margin-bottom: 36px; } .header h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: #1a1a1a; } .header p { color: #666; font-size: 16px; line-height: 1.5; } .form-group { margin-bottom: 24px; } label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: #333; } .input-with-icon { position: relative; } .input-with-icon i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: #999; font-size: 18px; } input { width: 100%; padding: 16px 16px 16px 50px; font-size: 16px; border: 1.5px solid #e5e5e5; border-radius: 12px; background: white; color: #1a1a1a; transition: all 0.2s; } input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1); } input::placeholder { color: #999; } .checkbox-group { display: flex; align-items: flex-start; margin: 24px 0 32px; } .checkbox-group input { width: 20px; height: 20px; margin-right: 12px; margin-top: 2px; accent-color: #6366f1; border-radius: 4px; } .checkbox-group label { font-size: 15px; font-weight: 400; line-height: 1.5; color: #333; margin-bottom: 0; } .checkbox-group a { color: #6366f1; text-decoration: none; font-weight: 500; } .checkbox-group a:hover { text-decoration: underline; } .btn-primary { width: 100%; padding: 18px; background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; margin-bottom: 32px; display: flex; align-items: center; justify-content: center; gap: 10px; } .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3); } .btn-primary:active { transform: translateY(0); } .divider { text-align: center; position: relative; margin-bottom: 32px; color: #999; font-size: 14px; font-weight: 500; } .divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #eee; z-index: 1; } .divider span { background: white; padding: 0 20px; position: relative; z-index: 2; } .social-buttons { display: flex; gap: 16px; margin-bottom: 36px; } .btn-social { flex: 1; padding: 16px; border: 1.5px solid #e5e5e5; border-radius: 12px; background: white; color: #333; font-size: 15px; font-weight: 500; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 10px; } .btn-social:hover { background: #f9f9f9; border-color: #ccc; transform: translateY(-2px); } .social-icon { font-size: 18px; } .github { color: #333; } .google { color: #DB4437; } .facebook { color: #4267B2; } .footer { text-align: center; padding-top: 24px; border-top: 1px solid #eee; color: #666; font-size: 15px; } .footer a { color: #6366f1; text-decoration: none; font-weight: 600; margin-left: 5px; } .footer a:hover { text-decoration: underline; } @media (max-width: 480px) { .card { padding: 36px 28px; } .social-buttons { flex-direction: column; } .header h2 { font-size: 24px; } .logo h1 { font-size: 32px; } }
1
Comments
0
Want to comment?
Please
login
or
sign up
to post comments.
No comments yet
Be the first to comment on this component!
Comments 0
Want to comment?
Please login or sign up to post comments.
No comments yet
Be the first to comment on this component!