feat: update admin page to use banner image upload and modify button styles for better UI
This commit is contained in:
@@ -499,16 +499,10 @@ export default function AdminPage() {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
<label style={{ fontSize: '13px', fontWeight: 500, marginBottom: '4px', display: 'block' }}>Banner / Logo URL</label>
|
<label style={{ fontSize: '13px', fontWeight: 500, marginBottom: '4px', display: 'block' }}>Banner image</label>
|
||||||
<input
|
<div style={{ display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap' }}>
|
||||||
className="input"
|
|
||||||
value={nodeSettings.bannerUrl}
|
|
||||||
onChange={e => setNodeSettings({ ...nodeSettings, bannerUrl: e.target.value })}
|
|
||||||
placeholder="https://"
|
|
||||||
/>
|
|
||||||
<div style={{ marginTop: '8px', display: 'flex', gap: '8px', alignItems: 'center', flexWrap: 'wrap' }}>
|
|
||||||
<label className="btn btn-ghost btn-sm">
|
<label className="btn btn-ghost btn-sm">
|
||||||
{isUploadingBanner ? 'Uploading...' : 'Upload image'}
|
{isUploadingBanner ? 'Uploading...' : 'Upload banner'}
|
||||||
<input
|
<input
|
||||||
type="file"
|
type="file"
|
||||||
accept="image/*"
|
accept="image/*"
|
||||||
|
|||||||
+2
-3
@@ -118,8 +118,8 @@ a.btn-primary:visited {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-ghost {
|
.btn-ghost {
|
||||||
background: transparent;
|
background: var(--background-tertiary);
|
||||||
border-color: transparent;
|
border-color: var(--border);
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn-ghost:hover {
|
.btn-ghost:hover {
|
||||||
@@ -1308,4 +1308,3 @@ a.btn-primary:visited {
|
|||||||
-webkit-line-clamp: 2;
|
-webkit-line-clamp: 2;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user