|
5 | 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
6 | 6 | <title>Feedback Form</title> |
7 | 7 | <style> |
8 | | - body { |
9 | | - font-family: Arial, sans-serif; |
| 8 | + /* General Styles */ |
| 9 | + * { |
10 | 10 | margin: 0; |
11 | 11 | padding: 0; |
| 12 | + box-sizing: border-box; |
| 13 | + font-family: 'Poppins', sans-serif; |
| 14 | + } |
| 15 | + |
| 16 | + body { |
12 | 17 | display: flex; |
13 | 18 | justify-content: center; |
14 | 19 | align-items: center; |
15 | 20 | height: 100vh; |
16 | | - background-color: #f0f0f0; |
| 21 | + background: linear-gradient(135deg, #667eea, #764ba2); |
| 22 | + padding: 20px; |
17 | 23 | } |
18 | 24 |
|
19 | 25 | .feedback-form { |
20 | | - background-color: white; |
21 | | - padding: 20px; |
22 | | - border-radius: 8px; |
23 | | - box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); |
| 26 | + background: rgba(255, 255, 255, 0.2); |
| 27 | + padding: 25px; |
| 28 | + border-radius: 12px; |
| 29 | + backdrop-filter: blur(10px); |
| 30 | + box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); |
24 | 31 | max-width: 400px; |
25 | 32 | width: 100%; |
| 33 | + text-align: center; |
| 34 | + color: white; |
26 | 35 | } |
27 | 36 |
|
28 | 37 | .feedback-form h2 { |
| 38 | + font-size: 26px; |
29 | 39 | margin-bottom: 15px; |
30 | | - font-size: 24px; |
| 40 | + font-weight: 600; |
| 41 | + letter-spacing: 1px; |
31 | 42 | } |
32 | 43 |
|
33 | 44 | .feedback-form label { |
34 | 45 | font-size: 16px; |
35 | | - margin-bottom: 5px; |
36 | 46 | display: block; |
| 47 | + text-align: left; |
| 48 | + margin: 10px 0 5px; |
| 49 | + font-weight: 500; |
37 | 50 | } |
38 | 51 |
|
39 | 52 | .feedback-form input, |
40 | 53 | .feedback-form textarea { |
41 | 54 | width: 100%; |
42 | | - padding: 10px; |
43 | | - margin-bottom: 10px; |
44 | | - border: 1px solid #ccc; |
45 | | - border-radius: 4px; |
| 55 | + padding: 12px; |
| 56 | + border: none; |
| 57 | + border-radius: 6px; |
| 58 | + background: rgba(255, 255, 255, 0.3); |
| 59 | + color: white; |
| 60 | + font-size: 16px; |
| 61 | + outline: none; |
| 62 | + transition: all 0.3s ease; |
| 63 | + } |
| 64 | + |
| 65 | + .feedback-form input::placeholder, |
| 66 | + .feedback-form textarea::placeholder { |
| 67 | + color: rgba(255, 255, 255, 0.7); |
| 68 | + } |
| 69 | + |
| 70 | + .feedback-form input:focus, |
| 71 | + .feedback-form textarea:focus { |
| 72 | + background: rgba(255, 255, 255, 0.5); |
| 73 | + transform: scale(1.02); |
46 | 74 | } |
47 | 75 |
|
48 | 76 | .feedback-form textarea { |
49 | 77 | resize: vertical; |
| 78 | + min-height: 80px; |
| 79 | + } |
| 80 | + |
| 81 | + .button-container { |
| 82 | + display: flex; |
| 83 | + justify-content: space-between; |
| 84 | + margin-top: 15px; |
50 | 85 | } |
51 | 86 |
|
52 | 87 | .feedback-form button { |
53 | | - padding: 10px 15px; |
| 88 | + flex: 1; |
| 89 | + padding: 12px; |
54 | 90 | border: none; |
55 | | - border-radius: 4px; |
| 91 | + border-radius: 6px; |
| 92 | + font-size: 16px; |
56 | 93 | cursor: pointer; |
| 94 | + font-weight: 600; |
| 95 | + transition: all 0.3s ease; |
57 | 96 | } |
58 | 97 |
|
59 | 98 | .submit-btn { |
60 | | - background-color: #4CAF50; |
| 99 | + background-color: #28a745; |
61 | 100 | color: white; |
62 | 101 | margin-right: 10px; |
63 | 102 | } |
64 | 103 |
|
65 | 104 | .cancel-btn { |
66 | | - background-color: #f44336; |
| 105 | + background-color: #dc3545; |
67 | 106 | color: white; |
68 | 107 | } |
69 | 108 |
|
70 | 109 | .feedback-form button:hover { |
71 | | - opacity: 0.9; |
| 110 | + opacity: 0.85; |
| 111 | + transform: translateY(-2px); |
| 112 | + } |
| 113 | + |
| 114 | + /* Responsive */ |
| 115 | + @media (max-width: 480px) { |
| 116 | + .feedback-form { |
| 117 | + padding: 20px; |
| 118 | + } |
| 119 | + .feedback-form h2 { |
| 120 | + font-size: 22px; |
| 121 | + } |
72 | 122 | } |
73 | 123 | </style> |
74 | 124 | </head> |
75 | 125 | <body> |
76 | 126 |
|
77 | 127 | <form class="feedback-form" id="feedback-form"> |
78 | | - <h2>Feedback Form</h2> |
79 | | - <label for="name">Name:</label> |
| 128 | + <h2>💬 Feedback Form</h2> |
| 129 | + <label for="name">👤 Name:</label> |
80 | 130 | <input type="text" id="name" name="name" placeholder="Your name..." required> |
81 | 131 |
|
82 | | - <label for="email">Email:</label> |
| 132 | + <label for="email">📧 Email:</label> |
83 | 133 | <input type="email" id="email" name="email" placeholder="Your email..." required> |
84 | 134 |
|
85 | | - <label for="message">Message:</label> |
| 135 | + <label for="message">✍️ Message:</label> |
86 | 136 | <textarea id="message" name="message" rows="4" placeholder="Your message..." required></textarea> |
87 | 137 |
|
88 | | - <button type="submit" class="submit-btn">Submit</button> |
89 | | - <button type="button" class="cancel-btn" id="cancel-btn">Cancel</button> |
| 138 | + <div class="button-container"> |
| 139 | + <button type="submit" class="submit-btn">✅ Submit</button> |
| 140 | + <button type="button" class="cancel-btn" id="cancel-btn">❌ Cancel</button> |
| 141 | + </div> |
90 | 142 | </form> |
91 | 143 |
|
92 | 144 | <script> |
|
0 commit comments