Skip to content
This repository has been archived by the owner on Sep 29, 2024. It is now read-only.

Commit

Permalink
feat: styled the userSettings page
Browse files Browse the repository at this point in the history
  • Loading branch information
KenNoYu committed Jul 31, 2024
1 parent bd037ee commit 3d14f99
Showing 1 changed file with 18 additions and 16 deletions.
34 changes: 18 additions & 16 deletions client/src/pages/userAccount/userSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,50 +34,52 @@ const SettingPage: PageComponent = (props) => {

return (
<div {...props} className="mx-auto mb-7 mt-3 w-full">
<div className="flex-col">
<h1 className=" text-center text-2xl font-bold">My Account</h1>
<div className="mx-auto my-7 block size-full rounded-md bg-primary-dark p-10 text-lg dark:text-text-light">
<div className="box-content flex grid-cols-1 justify-between md:grid-cols-2">
<div className="flex flex-col items-center">
<h1 className="text-center text-2xl font-bold">My Account</h1>
<div className="mx-auto my-7 block w-3/5 md:w-4/5 rounded-md bg-primary-dark p-10 text-lg dark:text-text-light">

Check warning on line 39 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order
<div className="grid grid-cols-1 md:grid-cols-2 gap-4">

Check warning on line 40 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order
<div className="text-left">
<h4 className="mb-3 font-semibold underline">
Personal Particulars
</h4>
<div className="grid-cols-2">
<p className="mb-3 text-right">
<h4 className="mb-3 font-semibold underline">Personal Particulars</h4>
<div className="mb-3">
<p className="text-left">
Username:{' '}
<span className="inline-block w-1/2 rounded-md bg-gray-50 px-2 py-1 text-left text-sm">
<span className="inline-block w-3/5 md:w-1/2 rounded-md bg-gray-50 px-5 py-1 text-left text-md">

Check warning on line 46 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order

Check warning on line 46 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Classname 'text-md' is not a Tailwind CSS class!
{user?.username}
</span>
</p>
</div>
<div className="grid-cols-2">
<p className="text-right">
<div className="mb-3">
<p className="text-left">
Email:{' '}
<span className="inline-block w-1/2 rounded-md bg-gray-50 px-5 py-1 text-left text-sm">
<span className="inline-block w-4/5 md:w-1/2 rounded-md bg-gray-50 px-5 py-1 text-left text-md">

Check warning on line 54 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order

Check warning on line 54 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Classname 'text-md' is not a Tailwind CSS class!
{user?.email}
</span>
</p>
</div>
</div>
<div className="text-left">
<div className="text-left text-md md:ml-14">

Check warning on line 60 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order

Check warning on line 60 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Classname 'text-md' is not a Tailwind CSS class!
<h4 className="font-semibold underline">Security</h4>
<p>
Password:{' '}
<span className="inline-block w-1/2 rounded-md bg-gray-50 px-5 py-1 text-left">
*********
</span>
</p>
</div>
</div>
<div className='grid grid-cols-subgrid gap-4 col-span-3'>

Check warning on line 70 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order
<div className='col-end-3 md:col-end-7'>
<Button
variant="secondary"
size="default"
className="mt-5 px-2 py-1 text-right"
className="mt-5 px-5 py-1"
>
Edit
</Button>
</div>
</div>
</div>
<div className="mx-auto my-7 block w-4/5 rounded-md bg-primary-dark p-4">
<div className="mx-auto my-7 block w-3/5 md:w-4/5 rounded-md bg-primary-dark p-4">

Check warning on line 82 in client/src/pages/userAccount/userSettings.tsx

View workflow job for this annotation

GitHub Actions / Linting

Invalid Tailwind CSS classnames order
<a href="/" className="flex justify-center">
<Button
type="submit"
Expand Down

0 comments on commit 3d14f99

Please sign in to comment.