|
| 1 | +<?php |
| 2 | +/** |
| 3 | + * Prabhdeep Mega Mart – Home (Blinkit Style) |
| 4 | + */ |
| 5 | +?> |
| 6 | +<!DOCTYPE html> |
| 7 | +<html lang="en"> |
| 8 | +<head> |
| 9 | + <meta charset="UTF-8"> |
| 10 | + <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 11 | + <title>Prabhdeep Mega Mart - Home</title> |
| 12 | + <link rel="preconnect" href="https://fonts.googleapis.com"> |
| 13 | + <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> |
| 14 | + <link href="https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap" rel="stylesheet"> |
| 15 | + <style> |
| 16 | + :root { |
| 17 | + --brand-green: #0c831f; |
| 18 | + --brand-green-dark: #096b19; |
| 19 | + --brand-yellow: #fec500; |
| 20 | + --bg-page: #f4f6fb; |
| 21 | + --bg-card: #ffffff; |
| 22 | + --text-main: #1c1c1c; |
| 23 | + --text-muted: #666666; |
| 24 | + --border-light: #e0e0e0; |
| 25 | + --shadow-card: 0 1px 4px rgba(0,0,0,0.04); |
| 26 | + --radius-card: 16px; |
| 27 | + --radius-btn: 8px; |
| 28 | + --font-main: 'DM Sans', sans-serif; |
| 29 | + } |
| 30 | + |
| 31 | + * { box-sizing: border-box; margin: 0; padding: 0; } |
| 32 | + body { |
| 33 | + font-family: var(--font-main); |
| 34 | + background: var(--bg-page); |
| 35 | + color: var(--text-main); |
| 36 | + min-height: 100vh; |
| 37 | + display: flex; |
| 38 | + flex-direction: column; |
| 39 | + } |
| 40 | + |
| 41 | + .container { |
| 42 | + max-width: 1200px; |
| 43 | + margin: 0 auto; |
| 44 | + padding: 0 16px; |
| 45 | + width: 100%; |
| 46 | + } |
| 47 | + |
| 48 | + /* Header */ |
| 49 | + .page-header { |
| 50 | + background: #fff; |
| 51 | + position: sticky; |
| 52 | + top: 0; |
| 53 | + z-index: 100; |
| 54 | + padding: 12px 0; |
| 55 | + box-shadow: 0 2px 8px rgba(0,0,0,0.06); |
| 56 | + } |
| 57 | + .header-content { |
| 58 | + display: flex; |
| 59 | + align-items: center; |
| 60 | + justify-content: space-between; |
| 61 | + } |
| 62 | + .brand { |
| 63 | + font-size: 1.5rem; |
| 64 | + font-weight: 800; |
| 65 | + color: var(--brand-green); |
| 66 | + text-decoration: none; |
| 67 | + letter-spacing: -0.03em; |
| 68 | + } |
| 69 | + .brand span { color: var(--brand-yellow); } |
| 70 | + .nav-link { |
| 71 | + text-decoration: none; |
| 72 | + color: var(--text-main); |
| 73 | + font-weight: 500; |
| 74 | + font-size: 0.9rem; |
| 75 | + } |
| 76 | + |
| 77 | + /* Hero Section */ |
| 78 | + .main { |
| 79 | + flex: 1; |
| 80 | + display: flex; |
| 81 | + align-items: center; |
| 82 | + justify-content: center; |
| 83 | + padding: 40px 16px; |
| 84 | + } |
| 85 | + .hero-card { |
| 86 | + background: var(--bg-card); |
| 87 | + border-radius: var(--radius-card); |
| 88 | + padding: 48px 32px; |
| 89 | + box-shadow: 0 8px 24px rgba(0,0,0,0.06); |
| 90 | + text-align: center; |
| 91 | + max-width: 500px; |
| 92 | + width: 100%; |
| 93 | + border: 1px solid var(--border-light); |
| 94 | + } |
| 95 | + |
| 96 | + .hero-title { |
| 97 | + font-size: 2rem; |
| 98 | + font-weight: 800; |
| 99 | + margin-bottom: 12px; |
| 100 | + line-height: 1.2; |
| 101 | + color: var(--text-main); |
| 102 | + } |
| 103 | + .hero-title span { color: var(--brand-green); } |
| 104 | + |
| 105 | + .hero-subtitle { |
| 106 | + font-size: 1rem; |
| 107 | + color: var(--text-muted); |
| 108 | + margin-bottom: 32px; |
| 109 | + line-height: 1.5; |
| 110 | + } |
| 111 | + |
| 112 | + .cta-group { |
| 113 | + display: flex; |
| 114 | + flex-direction: column; |
| 115 | + gap: 16px; |
| 116 | + } |
| 117 | + |
| 118 | + .btn { |
| 119 | + display: flex; |
| 120 | + align-items: center; |
| 121 | + justify-content: center; |
| 122 | + padding: 16px; |
| 123 | + border-radius: var(--radius-btn); |
| 124 | + font-weight: 700; |
| 125 | + font-size: 1rem; |
| 126 | + text-decoration: none; |
| 127 | + transition: transform 0.2s, box-shadow 0.2s; |
| 128 | + } |
| 129 | + .btn:active { transform: scale(0.98); } |
| 130 | + |
| 131 | + .btn-primary { |
| 132 | + background: var(--brand-green); |
| 133 | + color: white; |
| 134 | + box-shadow: 0 4px 12px rgba(12, 131, 31, 0.2); |
| 135 | + } |
| 136 | + .btn-primary:hover { background: var(--brand-green-dark); } |
| 137 | + |
| 138 | + .btn-secondary { |
| 139 | + background: #fff; |
| 140 | + color: var(--text-main); |
| 141 | + border: 1px solid var(--border-light); |
| 142 | + } |
| 143 | + .btn-secondary:hover { |
| 144 | + border-color: var(--brand-green); |
| 145 | + color: var(--brand-green); |
| 146 | + background: #fcfcfc; |
| 147 | + } |
| 148 | + |
| 149 | + .features { |
| 150 | + display: flex; |
| 151 | + justify-content: center; |
| 152 | + gap: 24px; |
| 153 | + margin-top: 32px; |
| 154 | + padding-top: 32px; |
| 155 | + border-top: 1px dashed var(--border-light); |
| 156 | + } |
| 157 | + .feature-item { |
| 158 | + display: flex; |
| 159 | + flex-direction: column; |
| 160 | + gap: 8px; |
| 161 | + align-items: center; |
| 162 | + font-size: 0.8rem; |
| 163 | + color: var(--text-muted); |
| 164 | + font-weight: 500; |
| 165 | + } |
| 166 | + .feature-icon { |
| 167 | + width: 40px; height: 40px; |
| 168 | + background: #f0fdf4; |
| 169 | + color: var(--brand-green); |
| 170 | + border-radius: 50%; |
| 171 | + display: flex; |
| 172 | + align-items: center; |
| 173 | + justify-content: center; |
| 174 | + font-size: 1.2rem; |
| 175 | + } |
| 176 | + |
| 177 | + footer { |
| 178 | + text-align: center; |
| 179 | + padding: 24px; |
| 180 | + color: var(--text-muted); |
| 181 | + font-size: 0.85rem; |
| 182 | + } |
| 183 | + </style> |
| 184 | +</head> |
| 185 | +<body> |
| 186 | + <header class="page-header"> |
| 187 | + <div class="container header-content"> |
| 188 | + <a href="Assignment.php" class="brand">Prabhdeep <span>Mega Mart</span></a> |
| 189 | + <nav> |
| 190 | + <a href="orders.php" class="nav-link">My Orders</a> |
| 191 | + </nav> |
| 192 | + </div> |
| 193 | + </header> |
| 194 | + |
| 195 | + <main class="main"> |
| 196 | + <div class="hero-card"> |
| 197 | + <div style="font-size: 3rem; margin-bottom: 24px;">⚡️</div> |
| 198 | + <h1 class="hero-title">Everything delivered in <span>10 minutes</span></h1> |
| 199 | + <p class="hero-subtitle"> |
| 200 | + Groceries, fresh produce, and daily essentials delivered right to your doorstep. |
| 201 | + </p> |
| 202 | + |
| 203 | + <div class="cta-group"> |
| 204 | + <a href="Assignment2.php" class="btn btn-primary">Start Shopping</a> |
| 205 | + <a href="orders.php" class="btn btn-secondary">View Past Orders</a> |
| 206 | + </div> |
| 207 | + |
| 208 | + <div class="features"> |
| 209 | + <div class="feature-item"> |
| 210 | + <div class="feature-icon">🚀</div> |
| 211 | + <span>Super Fast</span> |
| 212 | + </div> |
| 213 | + <div class="feature-item"> |
| 214 | + <div class="feature-icon">🛡️</div> |
| 215 | + <span>Secure</span> |
| 216 | + </div> |
| 217 | + <div class="feature-item"> |
| 218 | + <div class="feature-icon">🥗</div> |
| 219 | + <span>Fresh</span> |
| 220 | + </div> |
| 221 | + </div> |
| 222 | + </div> |
| 223 | + </main> |
| 224 | + |
| 225 | + <footer> |
| 226 | + © <?php echo date('Y'); ?> Prabhdeep Mega Mart • Order Processing System |
| 227 | + </footer> |
| 228 | +</body> |
| 229 | +</html> |
0 commit comments