Skip to content

Commit

Permalink
style: 💄 full responsive
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoalvescode committed Apr 9, 2024
1 parent ddac836 commit 0a30474
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
41 changes: 25 additions & 16 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Home() {
<h1 className="text-3xl font-medium text-zinc-900">Settings</h1>
<SettingsTabs />
<div className="mt-6 flex flex-col ">
<div className="flex items-center justify-between pb-5 border-b border-zinc-200">
<div className="flex flex-col justify-between gap-4 border-b border-zinc-200 pb-5 lg:flex-row lg:items-center">
<div className="space-y-1">
<h2 className="text-lg font-medium text-zinc-900">Personal info</h2>
<span className="text-sm text-zinc-500">
Expand All @@ -33,25 +33,34 @@ export default function Home() {
id="settings"
className="mt-6 flex w-full flex-col gap-5 divide-y divide-zinc-200"
>
<div className="grid grid-cols-form gap-3">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form">
<label
htmlFor="firstName"
className="text-sm font-medium text-zinc-700"
>
Name
</label>
<div className="grid grid-cols-2 gap-6">
<div className="flex flex-col gap-6 lg:grid lg:grid-cols-2">
<Input.Root>
<Input.Control id="firstName" defaultValue="Juliano" />
<Input.Control id="firstName" defaultValue="Diego" />
</Input.Root>

<Input.Root>
<Input.Control defaultValue="Alves" />
</Input.Root>
<div className="flex flex-col gap-3 lg:block">
<label
htmlFor="lastName"
className="text-sm font-medium text-zinc-700 lg:sr-only"
>
Last name
</label>

<Input.Root>
<Input.Control id="lastName" defaultValue="Alves" />
</Input.Root>
</div>
</div>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label
htmlFor="email"
className="text-sm font-medium text-zinc-700"
Expand All @@ -70,7 +79,7 @@ export default function Home() {
</Input.Root>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label
htmlFor="photo"
className="text-sm font-medium text-zinc-700"
Expand All @@ -81,14 +90,14 @@ export default function Home() {
</span>
</label>

<FileInput.Root className="flex items-start gap-5">
<FileInput.Root className="flex flex-col lg:flex-row lg:items-start gap-5">
<FileInput.ImagePreview />
<FileInput.Trigger />
<FileInput.Control />
</FileInput.Root>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label htmlFor="role" className="text-sm font-medium text-zinc-700">
Role
</label>
Expand All @@ -97,7 +106,7 @@ export default function Home() {
</Input.Root>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label
htmlFor="country"
className="text-sm font-medium text-zinc-700"
Expand All @@ -110,7 +119,7 @@ export default function Home() {
</Select>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label
htmlFor="timezone"
className="text-sm font-medium text-zinc-700"
Expand All @@ -126,15 +135,15 @@ export default function Home() {
</Select>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label htmlFor="bio" className="text-sm font-medium text-zinc-700">
Bio
<span className="mt-0.5 block text-sm font-normal text-zinc-500">
Write a short introduction.
</span>
</label>
<div className="space-y-3">
<div className="grid gap-3 grid-cols-2">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-2">
<Select placeholder="" defaultValue="normal">
<SelectItem value="normal" text="Normal text" />
<SelectItem value="md" text="Markdown" />
Expand Down Expand Up @@ -169,7 +178,7 @@ export default function Home() {
</div>
</div>

<div className="grid grid-cols-form gap-3 pt-5">
<div className="flex flex-col gap-3 lg:grid lg:grid-cols-form pt-5">
<label
htmlFor="projects"
className="text-sm font-medium text-zinc-700"
Expand Down
4 changes: 0 additions & 4 deletions src/components/Sidebar/UserSpaceWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ export function UserSpaceWidget() {
return (
<>
<div className="mt-auto flex flex-col gap-6">
<nav className="space-y-0.5">
<NavItem title="Support" icon={LifeBuoy} />
<NavItem title="Settings" icon={Cog} />
</nav>
<div className="flex flex-col gap-4 rounded-lg bg-violet-50 px-4 py-5">
<div className="space-y-1">
<span className="text-sm/5 font-medium leading-5 text-violet-700">
Expand Down

0 comments on commit 0a30474

Please sign in to comment.