Skip to content

Commit

Permalink
fix workspace mobile view
Browse files Browse the repository at this point in the history
  • Loading branch information
sandygudie committed Jan 11, 2024
1 parent 9c91afe commit 3e81a09
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/page/workspace/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ export default function Index() {


return (
<div className="w-full h-screen">
<header className="bg-white h-[65px] dark:bg-secondary flex items-center w-full border-b-[1px] border-gray/20">
<div className="w-full h-full">
<header className="bg-white h-[65px] dark:bg-secondary flex items-center w-full border-b-[1px] border-gray/20">
<div
className={`border-r-[1px] border-gray/20 py-6 px-4 min-w-[14rem] cursor-pointer hidden md:block`}
>
Expand All @@ -65,7 +65,7 @@ export default function Index() {
</div>
</header>
{!isCreateWorkspace && profile.id.length > 0 ? (
<div className="h-full">
<div className="h-full mt-12">
<div className="w-4/6 mx-auto h-full flex flex-col items-center justify-center ">
<div>
<h1 className="text-xl md:text-2xl text-center ">Workspace(s)</h1>
Expand Down Expand Up @@ -94,16 +94,17 @@ export default function Index() {
</div>
) : null}
{isCreateWorkspace ? (
<div className="flex-wrap flex items-center relative h-full justify-center">
<div className="h-full">
{profile.id.length > 0 ? (
<button onClick={()=> setCreateWorkspace(false)} className="text-lg hover:text-primary absolute top-10 left-20 flex items-center gap-x-4">
<button onClick={()=> setCreateWorkspace(false)} className="text-lg hover:text-primary p-8 flex items-center gap-x-4">
{" "}
<span>
<IoArrowBack />
</span>
Available workspace
</button>
) : null}
<div className="flex-wrap flex items-start md:items-center relative h-full justify-center md:mt-12">
<div className="hidden md:block lg:w-[30rem] h-auto">
<img
src="/start-project.png"
Expand All @@ -112,7 +113,7 @@ export default function Index() {
className="w-72 lg:w-[30rem] h-auto"
/>
</div>
<div className="w-96 mx-6 md:mx-0 lg:mt-6 md:mt-0">
<div className="w-96 mx-6 md:mx-0 mt-6">
<div>
<h1 className="text-primary text-xl sm:text-2xl md:text-3xl font-bold ">
Welcome to Kanban!
Expand Down Expand Up @@ -158,6 +159,7 @@ export default function Index() {
</Form>
</Formik>
</div>
</div>
</div>
) : null}
</div>
Expand Down

0 comments on commit 3e81a09

Please sign in to comment.