Skip to content

Commit

Permalink
feat(volunteerprofile): fixed prorblems with grid and responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
moalsaleh95 committed Aug 10, 2022
1 parent 19c1b5d commit 96f093d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 29 deletions.
15 changes: 4 additions & 11 deletions data/db.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
{
"volunteer": [
{
"0": {
"name": "fffff",
"description": "fffffffffffff",
"email": "fff",
"phone": "ffffffffffffff",
"id": 1
},
"name": "Mohammad",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque quisquam odit neque enim consectetur dolore dolores impedit, incidunt quas non",
"email": "[email protected]",
"phone": "545 444 4444",
"description": "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque quisquam odit neque enim consectetur dolore dolores impedit, incidunt quas non Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque quisquam odit neque enim consectetur dolore dolores impedit, incidunt quas non Lorem ipsum dolor sit amet, consectetur adipisicing elit. Cumque quisquam odit neque enim consectetur dolore dolores impedit, incidunt quas non",
"email": "jhhg",
"phone": "hgjghjhg",
"name": "fghfg",
"id": 1
}
]
Expand Down
12 changes: 6 additions & 6 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
plugins: {
"postcss-import": {},
"tailwindcss/nesting": {},
tailwindcss: {},
autoprefixer: {},
},
};
'postcss-import': {},
'tailwindcss/nesting': {},
tailwindcss: {},
autoprefixer: {},
}
}
15 changes: 14 additions & 1 deletion src/components/VolunteerProfile/VolunteerProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function VolunteerProfile () {
</div>
<div className="sm:basis-2/6"></div>
</div>

{/* copy starting from here */}
<div className="sm:grid grid-cols-4 grid-rows-8 gap-y-3 ">
<h1 className="pt-7 col-start-2 row-start-3 sm:justify-self-start font-quicksand text-4xl font-semibold text-customGreen">Profile</h1>
<p className="text-sm font-SourceSansPro sm:col-start-2 sm:col-end-4 sm:row-start-4 sm:justify-self-start "><span className="font-bold">Email: </span>{info.email}</p>
Expand All @@ -73,6 +73,19 @@ function VolunteerProfile () {
<input className='flex-none text-xs py-1 mx-2 my-3 px-10 border-2 border-customGreen bg-customGreen text-white rounded-md shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150' type="submit" />
</form>
</div>
{/* down to here */}
{/* <div className="sm:grid border-2 border-red-500 grid-cols-4 grid-rows-8 gap-y-3 ">
<h1 className="pt-7 col-start-1 row-start-3 sm:justify-self-start font-quicksand text-4xl font-semibold text-customGreen">Profile</h1>
<p className="text-sm font-SourceSansPro sm:col-start-2 sm:col-end-4 sm:row-start-4 sm:justify-self-start "><span className="font-bold">Email: </span>{info.email}</p>
<p className="text-sm font-SourceSansPro sm:col-start-2 sm:col-end-4 sm:row-start-5 sm:justify-self-start pb-3"><span className="font-bold">Phone Number: </span>{info.phone}</p>
</div>
<div className="flex justify-center pb-10">
<form className=" ">
<input className="flex-none text-sm bg-gray" type="file" name="upload" accept="application/pdf,application/vnd.ms-excel" />
<input className='flex-none text-xs py-1 mx-2 my-3 px-10 border-2 border-customGreen bg-customGreen text-white rounded-md shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150' type="submit" />
</form>
</div> */}

{/* add the diagonal line at the bottom of the component */}
<Events />
Expand Down
35 changes: 24 additions & 11 deletions src/containers/VolunteerProfile/VolunteerProfile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,27 +53,40 @@ function VolunteerProfile () {

<div className="flex flex-wrap space-x-4 sm:justify-start justify-center">
<div className="sm:basis-1/6 "></div>
<img className='sm:basis-1/6 rounded-full my-3 border-2 border-white w-1/6 h-1/6' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAhFBMVEX///8wMDAbGxvCwsIeHh4tLS0iIiKxsbGZmZknJycqKiolJSX6+vr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Nfwx153fx3kPaay8dX0X6xlbnOQK+EtIkk3EtINlhc/lz3xsyxsaIvi2Ndh7P5yNs7KQZy/mUn7a/nF5OI3a4G0U5HtpkuAL8jmrhCC7dyrvle8u4k5zP38zvMUC/ECuWugNY7K275utZq0hewGDPd9F7G6eVtseJ4vv3YM8ODTkBF62IHnyN+EfOQI1FBewiVjL2N4W4gF0tSjgYT8l9l4kfqPDLjai650L/P+IJnm38jdiAXSnuxe5RJ6zXu8MhqchSZL+iH47Ym2KOZxbDsQV2osv8uyxDIpW4SlzyvawcilmK6sQZw931PdBQ1MF/LX4ifaOLmms4f0xgOMIeg3P8eNCwaCUoId+vlgxJF5RQzkzaW4spRM7vDIYk6JuFku9rmCE5hZCEUzGnM6fYuZCEO5H/3H9HYyEJJe1oXhO2QhJKWw77fZuQhJNnXZZnMTPNU2TIshz7Sw0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf4C+ppIAaVeUbkAAAAASUVORK5CYII=' alt='ProfilePic' />
<img className='sm:basis-1/6 rounded-full my-3 border-2 border-white sm:w-1/5 sm:h-1/5 h-1/3 w-1/3' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAhFBMVEX///8wMDAbGxvCwsIeHh4tLS0iIiKxsbGZmZknJycqKiolJSX6+vrp6ekhISFERETx8fHd3d1WVlbU1NRoaGgzMzOkpKT29vbj4+N1dXWBgYHIyMioqKhJSUliYmLq6uoTExOLi4tZWVl8fHw9PT2QkJAAAAAPDw9ubm7Nzc24uLhHR0fWtxrEAAAEMUlEQVR4nO3c23aiMBgF4HIIShA5gyCIoLbqvP/7DfQ47XhILCbEtb+b3mav5E/SJPj0BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAC3mnWyLOv/yG7KPWRutMsrb/3y4lX75uD6shs0sIXRVKZlE6JpGiG2Y3rFMZDdqAH5Rjx3+nBfiGO2R1d2w4ayLBJb+x+lufEQBTkrK5ucCNixt9MHKEe/0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5RQzkzaW4spRM7vDIYk6JuFku9rmCE5hZCEUzGnM6fYuZCEO5H/3H9HYyEJJe1oXhO2QhJKWw77fZuQhJNnXZZnMTPNU2TIshz7Sw0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf4C+ppIAaVeUbkAAAAASUVORK5CYII=' alt='ProfilePic' />
<div className='sm:basis-2/6 flex flex-col justify-start'>
<h2 className='font-quicksand ml-5 text-4xl font-semibold'>{info.name}</h2>
<p className="text-xs pt-5 ml-5 mt-5 font-SourceSansPro">{info.description}</p>
<p className="text-xs pt-5 mx-5 mt-5 font-SourceSansPro">{info.description}</p>
</div>
<div className="sm:basis-2/6"></div>
</div>

<div className="sm:grid grid-cols-4 grid-rows-8 gap-y-3 ">
{/* copy from here */}
<div className="pb-5 mx-5">
<div className="sm:grid pl-4 grid-cols-6 grid-rows-10 gap-y-3 ">
<h1 className="pt-7 col-start-2 row-start-3 sm:justify-self-start font-quicksand text-4xl font-semibold text-customGreen">Profile</h1>
<p className="text-sm font-SourceSansPro sm:col-start-2 sm:col-end-4 sm:row-start-4 sm:justify-self-start ">Email: {info.email}</p>
<p className="text-sm font-SourceSansPro sm:col-start-2 sm:col-end-4 sm:row-start-5 sm:justify-self-start pb-3">Phone: {info.phone}</p>
</div>

<div className="flex justify-center pb-10">
<form className=" ">
<input className="flex-none text-sm bg-gray" type="file" name="upload" accept="application/pdf,application/vnd.ms-excel" />
{/* <input className='flex-none text-xs py-1 mx-2 my-3 px-10 border-2 border-customGreen bg-customGreen text-white rounded-md shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150' type="submit" /> */}
<button className='flex-none text-xs py-1 mx-2 my-3 px-10 border-2 border-customGreen bg-customGreen text-white rounded-md shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150'>Upload CV</button>
</form>
<form className="sm:col-start-2 sm:col-end-6 sm:row-start-6 sm:justify-self-start ">
<label className="sm:relative block mb-2 sm:col-start-2 sm:col-end-3 sm:row-start-6 sm:justify-self-start text-sm font-medium text-gray-900 dark:text-gray-300" htmlFor="default_size">Upload Your CV</label>
<input className="mb-5 sm:col-start-2 sm:col-end-3 sm:justify-self-start w-full text-sm text-gray-900 bg-[#F5F6F6] border border-gray-300 cursor-pointer dark:text-gray-400 focus:outline-none dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400" id="default_size" type="file" />
<button type="submit" value="Submit" className='sm:absolute rounded-none flex-none sm:col-start-4 sm:col-end-5 sm:row-start-5 sm:justify-self-start text-xs py-1 px-1 border-2 border-customGreen bg-customGreen text-white shadow hover:shadow-lg outline-none focus:outline-none mr-1 mb-1 ease-linear transition-all duration-150'>Upload CV</button>

</form>

<div>

</div>


</div>


</div>
{/* down to here */}



<Events />
<Footer />
{/* add the diagonal line at the bottom of the component */}
Expand Down

0 comments on commit 96f093d

Please sign in to comment.