Skip to content

Commit

Permalink
fix(projectNotFound): update project-not-found component UI
Browse files Browse the repository at this point in the history
  • Loading branch information
NSUWAL123 committed Sep 3, 2024
1 parent b45ff7a commit c8e9272
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/frontend/src/views/ProjectNotFound.tsx
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
import React from 'react';
import NoFileImage from '@/assets/images/no-file.png';
import NoFileImage from '@/assets/images/project-not-found.png';
import Button from '@/components/common/Button';
import { useNavigate } from 'react-router-dom';

const ProjectNotFound = () => {
const navigate = useNavigate();
return (
<div className="md:fmtm-px-[2rem] lg:fmtm-px-[4.5rem] fmtm-h-full">
<div className="fmtm-flex fmtm-flex-col fmtm-items-center fmtm-h-[90%] fmtm-justify-center">
<div className="fmtm-mb-[5rem]">
<img src={NoFileImage} alt="Project Not Found Photo" className="fmtm-w-[12rem] lg:fmtm-w-[15.625rem]" />
<div className="fmtm-flex fmtm-flex-col fmtm-items-center fmtm-h-[90%] fmtm-justify-center fmtm-gap-[3rem] sm:fmtm-gap-[5rem]">
<div>
<img src={NoFileImage} alt="Project Not Found Photo" className="lg:fmtm-w-[7.688rem]" />
</div>
<div className="fmtm-flex fmtm-flex-col fmtm-gap-3">
<h2 className="fmtm-text-[1.5rem] md:fmtm-text-[2rem] lg:fmtm-text-[2.5rem] fmtm-text-primaryRed fmtm-font-barlow fmtm-font-bold fmtm-text-center">
<h2 className="fmtm-text-[1.5rem] md:fmtm-text-[2rem] lg:fmtm-text-[2.5rem] fmtm-text-[#4F4F4F] fmtm-font-barlow fmtm-font-bold fmtm-text-center">
PROJECT NOT FOUND
</h2>
<p className="fmtm-text-sm sm:fmtm-text-base fmtm-text-center fmtm-text-[#68707F]">
There is no project to show, please create a project by clicking the button below.{' '}
<p className="fmtm-text-sm sm:fmtm-text-base fmtm-text-center fmtm-text-[#4F4F4F] fmtm-uppercase fmtm-font-semibold">
There is no project to show
</p>
</div>
<Button
btnText="Create Project"
onClick={() => navigate('/create-project')}
btnType="primary"
className="fmtm-mx-auto fmtm-rounded-none fmtm-py-2 fmtm-mt-8"
btnType="other"
className="fmtm-mx-auto fmtm-rounded-none fmtm-py-2"
/>
</div>
</div>
Expand Down

0 comments on commit c8e9272

Please sign in to comment.