Spaces:
Running
Running
Mhamdans17 commited on
Commit ·
3bf23ca
1
Parent(s): 7ba45dc
feat: add optional NPWP field during registration and fix landing page tablet layout
Browse files- src/index.css +13 -0
- src/pages/Register.jsx +6 -1
src/index.css
CHANGED
|
@@ -147,6 +147,19 @@ h1, h2, h3, .font-headline { font-family: var(--font-headline); }
|
|
| 147 |
}
|
| 148 |
|
| 149 |
/* ============ LANDING PAGE RESPONSIVE ============ */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 150 |
@media (max-width: 768px) {
|
| 151 |
.landing-header {
|
| 152 |
padding: 16px 5% !important;
|
|
|
|
| 147 |
}
|
| 148 |
|
| 149 |
/* ============ LANDING PAGE RESPONSIVE ============ */
|
| 150 |
+
@media (max-width: 1024px) {
|
| 151 |
+
.landing-hero {
|
| 152 |
+
gap: 30px !important;
|
| 153 |
+
padding: 60px 5% 80px 5% !important;
|
| 154 |
+
}
|
| 155 |
+
.landing-hero h2 {
|
| 156 |
+
font-size: 38px !important;
|
| 157 |
+
}
|
| 158 |
+
.landing-features-grid {
|
| 159 |
+
grid-template-columns: repeat(2, 1fr) !important;
|
| 160 |
+
}
|
| 161 |
+
}
|
| 162 |
+
|
| 163 |
@media (max-width: 768px) {
|
| 164 |
.landing-header {
|
| 165 |
padding: 16px 5% !important;
|
src/pages/Register.jsx
CHANGED
|
@@ -11,7 +11,7 @@ const INPUT_STYLE = {
|
|
| 11 |
|
| 12 |
export default function Register() {
|
| 13 |
const [step, setStep] = useState(1);
|
| 14 |
-
const [form, setForm] = useState({ company_name: '', company_address: '', bank_account_number: '', bank_name: '', owner_name: '', owner_email: '', owner_phone: '', owner_password: '' });
|
| 15 |
const [otp, setOtp] = useState(['', '', '', '', '', '']);
|
| 16 |
const [isLoading, setIsLoading] = useState(false);
|
| 17 |
const [showPassword, setShowPassword] = useState(false);
|
|
@@ -185,6 +185,11 @@ export default function Register() {
|
|
| 185 |
<input type="text" value={form.company_address} onChange={e => setForm({ ...form, company_address: e.target.value })} placeholder="Jl. Raya No. 123, Kota" required style={INPUT_STYLE} onFocus={onFocus} onBlur={onBlur} />
|
| 186 |
</div>
|
| 187 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
{/* Nama Bank + No Rekening — side by side */}
|
| 189 |
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '12px' }}>
|
| 190 |
<div>
|
|
|
|
| 11 |
|
| 12 |
export default function Register() {
|
| 13 |
const [step, setStep] = useState(1);
|
| 14 |
+
const [form, setForm] = useState({ company_name: '', company_address: '', npwp: '', bank_account_number: '', bank_name: '', owner_name: '', owner_email: '', owner_phone: '', owner_password: '' });
|
| 15 |
const [otp, setOtp] = useState(['', '', '', '', '', '']);
|
| 16 |
const [isLoading, setIsLoading] = useState(false);
|
| 17 |
const [showPassword, setShowPassword] = useState(false);
|
|
|
|
| 185 |
<input type="text" value={form.company_address} onChange={e => setForm({ ...form, company_address: e.target.value })} placeholder="Jl. Raya No. 123, Kota" required style={INPUT_STYLE} onFocus={onFocus} onBlur={onBlur} />
|
| 186 |
</div>
|
| 187 |
|
| 188 |
+
<div>
|
| 189 |
+
<label style={{ display: 'block', fontSize: '11px', fontWeight: 700, letterSpacing: '0.1em', textTransform: 'uppercase', color: '#4a6d80', marginBottom: '8px', paddingLeft: '4px' }}>NPWP (Opsional)</label>
|
| 190 |
+
<input type="text" value={form.npwp} onChange={e => setForm({ ...form, npwp: e.target.value })} placeholder="Masukkan Nomor NPWP" style={INPUT_STYLE} onFocus={onFocus} onBlur={onBlur} />
|
| 191 |
+
</div>
|
| 192 |
+
|
| 193 |
{/* Nama Bank + No Rekening — side by side */}
|
| 194 |
<div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '12px' }}>
|
| 195 |
<div>
|