Spaces:
Running
Running
ui tweaks
Browse files- app/page.tsx +2 -2
- components/form.tsx +1 -1
- components/input.tsx +1 -1
- components/select.tsx +1 -1
app/page.tsx
CHANGED
@@ -33,9 +33,9 @@ export default function Home() {
|
|
33 |
};
|
34 |
|
35 |
return (
|
36 |
-
<section className="h-screen w-full flex items-center justify-center flex-col bg-zinc-100 gap-5">
|
37 |
<div className="max-w-2xl w-full border border-gray-200 bg-white rounded-3xl p-8 grid gap-8 shadow-xl shadow-black/5">
|
38 |
-
<header className="flex items-center justify-between border-b border-zinc-200 pb-5">
|
39 |
<Image
|
40 |
src={Logo}
|
41 |
alt="logo hugging face"
|
|
|
33 |
};
|
34 |
|
35 |
return (
|
36 |
+
<section className="min-h-screen h-full w-full flex items-center justify-center flex-col bg-zinc-100 gap-5 overflow-auto p-6">
|
37 |
<div className="max-w-2xl w-full border border-gray-200 bg-white rounded-3xl p-8 grid gap-8 shadow-xl shadow-black/5">
|
38 |
+
<header className="flex items-start max-lg:gap-1 lg:items-center justify-between max-lg:flex-col border-b border-zinc-200 pb-5">
|
39 |
<Image
|
40 |
src={Logo}
|
41 |
alt="logo hugging face"
|
components/form.tsx
CHANGED
@@ -46,7 +46,7 @@ export const Form: React.FC<Props> = ({ loading, onSubmit }) => {
|
|
46 |
<div className="flex justify-end">
|
47 |
<button
|
48 |
className={classNames(
|
49 |
-
"bg-black rounded-full px-5 py-2.5 text-base font-medium text-white hover:bg-zinc-800 disabled:bg-zinc-300 disabled:text-zinc-500 disabled:cursor-not-allowed",
|
50 |
{
|
51 |
"animate-pulse": loading,
|
52 |
}
|
|
|
46 |
<div className="flex justify-end">
|
47 |
<button
|
48 |
className={classNames(
|
49 |
+
"bg-black max-lg:w-full rounded-full px-5 py-2.5 text-base font-medium text-white hover:bg-zinc-800 disabled:bg-zinc-300 disabled:text-zinc-500 disabled:cursor-not-allowed",
|
50 |
{
|
51 |
"animate-pulse": loading,
|
52 |
}
|
components/input.tsx
CHANGED
@@ -41,7 +41,7 @@ export const Input: React.FC<Props> = ({ onChange, value }) => {
|
|
41 |
)}
|
42 |
>
|
43 |
<div className="bg-zinc-100 border-r border-zinc-200 text-zinc-500 text-sm px-3 h-[40px] flex items-center justify-center">
|
44 |
-
https
|
45 |
</div>
|
46 |
<input
|
47 |
value={username}
|
|
|
41 |
)}
|
42 |
>
|
43 |
<div className="bg-zinc-100 border-r border-zinc-200 text-zinc-500 text-sm px-3 h-[40px] flex items-center justify-center">
|
44 |
+
<span className="max-lg:hidden">https://</span>huggingface.co/
|
45 |
</div>
|
46 |
<input
|
47 |
value={username}
|
components/select.tsx
CHANGED
@@ -9,7 +9,7 @@ export const Select: React.FC<Props> = ({ onChange, value }) => {
|
|
9 |
<select
|
10 |
value={value}
|
11 |
onChange={(e) => onChange(e.target.value as Language)}
|
12 |
-
className="rounded-md mr-2 border border-gray-200 relative ring-transparent text-zinc-600 focus-within:ring-amber-500/20 ring-[3px] flex items-center justify-center overflow-hidden text-sm px-3 py-2.5 max-w-[150px] w-full outline-none"
|
13 |
>
|
14 |
<option value="en">English</option>
|
15 |
<option value="fr">French</option>
|
|
|
9 |
<select
|
10 |
value={value}
|
11 |
onChange={(e) => onChange(e.target.value as Language)}
|
12 |
+
className="max-lg:w-full rounded-md mr-2 border border-gray-200 relative ring-transparent text-zinc-600 focus-within:ring-amber-500/20 ring-[3px] flex items-center justify-center overflow-hidden text-sm px-3 py-2.5 lg:max-w-[150px] w-full outline-none"
|
13 |
>
|
14 |
<option value="en">English</option>
|
15 |
<option value="fr">French</option>
|