Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added padding & disabled save button #27

Merged
merged 1 commit into from
Apr 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/app/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,22 +70,22 @@ const ProfilePage: React.FC = () => {
<label className="flex flex-col">
<span className='mb-2'>Name:</span>
<Skeleton isLoaded={isLoaded} className="rounded-lg">
<input className='h-8 rounded-lg w-full bg-gray-400 dark:bg-zinc-700/30 border' type="text" value={name} onChange={handleNameChange} />
<input className='h-8 rounded-lg w-full bg-gray-300 dark:bg-zinc-700/65 border px-2' type="text" value={name} onChange={handleNameChange} />
</Skeleton>
</label>
<label className="flex flex-col">
<span className='mb-2'>Email:</span>
<Skeleton isLoaded={isLoaded} className="rounded-lg">
<input className='h-8 rounded-lg w-full bg-gray-400 dark:bg-zinc-700/30 border' type="email" value={email} onChange={handleEmailChange} />
<input className='h-8 rounded-lg w-full bg-gray-300 dark:bg-zinc-700/65 border px-2' type="email" value={email} onChange={handleEmailChange} />
</Skeleton>
</label>
<label className="flex flex-col">
<span className='mb-2'>Image URL:</span>
<Skeleton isLoaded={isLoaded} className="rounded-lg">
<textarea className='rounded-lg w-full bg-gray-400 dark:bg-zinc-700/30 border' value={imageURL} onChange={handleImageURLChange} />
<textarea className='rounded-lg w-full bg-gray-300 dark:bg-zinc-700/65 border px-2' value={imageURL} onChange={handleImageURLChange} />
</Skeleton>
</label>
<button type="submit" className="text-center items-center text-l disabled:bg-orange-400 bg-blue-500 text-white px-6 py-3 rounded-md font-bold transition duration-300 ease-in-out transform hover:scale-105">Save</button>
<button type="submit" disabled className="text-center items-center text-l disabled:bg-orange-400 bg-blue-500 text-white px-6 py-3 rounded-md font-bold transition duration-300 ease-in-out transform hover:scale-105 disabled:hover:scale-100">Save</button>
</form>
</div>
</div>
Expand Down
Loading