Skip to content

Commit 04fa9d2

Browse files
committed
UI finished
1 parent 3d4ea04 commit 04fa9d2

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed

components/svg.js

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,27 @@ const ChevronRight = (props) => (
7272
</svg>
7373
);
7474

75-
export { LocationMarker, OfficeBuilding, DotsVertical, ChevronRight };
75+
const ChevronDown = (props) => (
76+
<svg
77+
className={props.className}
78+
xmlns="http://www.w3.org/2000/svg"
79+
fill="none"
80+
viewBox="0 0 24 24"
81+
stroke="currentColor"
82+
>
83+
<path
84+
strokeLinecap="round"
85+
strokeLinejoin="round"
86+
strokeWidth={2}
87+
d="M19 9l-7 7-7-7"
88+
/>
89+
</svg>
90+
);
91+
92+
export {
93+
LocationMarker,
94+
OfficeBuilding,
95+
DotsVertical,
96+
ChevronRight,
97+
ChevronDown,
98+
};

pages/index.js

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
OfficeBuilding,
99
DotsVertical,
1010
ChevronRight,
11+
ChevronDown,
1112
} from "../components/svg";
1213

1314
const Accordion = (props) => {
@@ -368,7 +369,59 @@ const InfoPane = (props) => {
368369
<span className="text-gray-300 text-sm">11/12 Complete</span>
369370
<ChevronRight className="h-4 w-4" />
370371
</div>
371-
<div className="flex-grow">Test</div>
372+
<div className="flex flex-row justify-between items-center p-4 border-b border-gray-300">
373+
<span className="font-bold text-sm">Last Viewed</span>
374+
<span className="text-gray-300 text-sm">../components/card</span>
375+
<ChevronRight className="h-4 w-4" />
376+
</div>
377+
<div className="flex flex-col p-4 border-b space-y-4 border-gray-300">
378+
<div className="flex flex-row justify-between items-center">
379+
<span className="font-bold text-sm">Details</span>
380+
<ChevronDown className="h-4 w-4" />
381+
</div>
382+
<p className="flex space-x-4 text-sm">
383+
<span className="text-gray-400">Email:</span>
384+
<span>jeff@aptech.com</span>
385+
</p>
386+
<p className="flex space-x-4 text-sm">
387+
<span className="text-gray-400">Swap ID:</span>
388+
<span>102401</span>
389+
</p>
390+
<p className="flex space-x-4 text-sm">
391+
<span className="text-gray-400">Product:</span>
392+
<span>All</span>
393+
</p>
394+
<p className="flex space-x-4 text-sm">
395+
<span className="text-gray-400">Lead Score:</span>
396+
<span>30</span>
397+
</p>
398+
<p className="flex space-x-4 text-sm">
399+
<span className="text-gray-400">Last Contacted:</span>
400+
<span>7d ago</span>
401+
</p>
402+
</div>
403+
<div className="flex flex-col p-4 border-b space-y-4 border-gray-300 overflow-y-auto">
404+
<div className="flex flex-row justify-between items-center">
405+
<span className="font-bold text-sm">Latest Conversations</span>
406+
<ChevronDown className="h-4 w-4" />
407+
</div>
408+
{[...Array(10)].map(() => {
409+
return (
410+
<div className="flex flex-col pb-4">
411+
<p className="flex flex-row space-x-2 text-sm">
412+
<Bubble text="text-xs" size="h-6 w-6 flex-none">
413+
MS
414+
</Bubble>
415+
<span className="flex-grow">Open with Micheal</span>
416+
<span className="flex-none">10m ago</span>
417+
</p>
418+
<div className="mt-2 pl-2 truncate border-l-4 border-blue-500">
419+
Hey Elizabeth it was nice seeing you the other day.
420+
</div>
421+
</div>
422+
);
423+
})}
424+
</div>
372425
</div>
373426
</>
374427
);

0 commit comments

Comments
 (0)