Skip to content
Open
Show file tree
Hide file tree
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
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ import ExpensesOverview from "./pages/dashboard/expenses/Expenses";
import NewExpense from "./pages/dashboard/expenses/New";
import LandingPage from "./pages/LandingPage";
import Overview from "./pages/dashboard/Overview";
import ModalViewExpense from "./components/ModalViewExpense";

function App() {
return (
<Routes>
<Route path="/" element={<LandingPage />} />
<Route path="/login" element={<Login />} />
<Route path="/signup" element={<SignUp />} />

<Route path="/modal" element={<ModalViewExpense />} />
{/* Dashboard routes */}
<Route path="/dashboard" element={<Dashboard />}>
<Route index element={<Overview />} />
Expand Down
50 changes: 50 additions & 0 deletions src/components/ModalViewExpense.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import { MdOutlineCancel } from "react-icons/md";
const ModalViewExpense = () => {
return (
<div className="border-1 border-[#ac4bdc] mx-[5px] w-[350px] lg:m-auto lg:w-[450px] mt-40 lg:mt-40 rounded-xl shadow-2xl px-5 pt-5 pb-[25px] ">
<div className="flexxo flex justify-between">
<div className="first">
<h2 className="text-[18px] font-semibold">Dinner at Olive Garden</h2>
<p className="text-[15px] text-gray-400">
Today at 8:30 PM • Food & Drink
</p>
</div>

<MdOutlineCancel className="text-[25px]" />
</div>

<div className="second-div mt-[40px] flex items-center justify-between">
<div className="user-detail flex items-center gap-3">
<div className="image bg-[#ac4bdc] w-[50px] h-[50px] rounded-full"></div>
<div className="name">
<h3 className="font-bold lg:text-[16px] text-[14px]">
Alexander johnson
</h3>
<p className="text-gray-400 lg:text-[14px] text-[13px]">
Paid $5000
</p>
</div>
</div>
<div className="group">
<h3>Group</h3>
<h2 className="font-bold text-[14px] lg:text-[16px]">Dinner Club</h2>
</div>
</div>
<div className=" border-1 border-gray-500 mt-[20px] rounded-lg p-4">
<h3 className="font-semibold text-[14px]">Split Details</h3>
<div className="split-details flex justify-between mt-3">
<h3 className="font-bold text-[14px]">You</h3>
<h2>amount</h2>
</div>
</div>
<div className="note mt-5">
<h2 className="font-bold">Notes</h2>
<p className="text-[15px]">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Saepe minus
</p>
</div>
</div>
);
};

export default ModalViewExpense;
2 changes: 1 addition & 1 deletion src/pages/LandingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function LandingPage() {

<Link to={"/signup"} className="mx-auto">
<Button
className="flex items-center bg-linear-to-r from-[#9b48df] to-[#d84cd4]
className="group flex items-center bg-linear-to-r from-[#9b48df] to-[#d84cd4]
text-white font-semibold rounded-lg cursor-pointer transition-all duration-300 drop-shadow-md hover:drop-shadow-2xl py-6"
>
Get Started
Expand Down