Skip to content

Commit

Permalink
style: memperbaiki tampilan berhasil absen
Browse files Browse the repository at this point in the history
  • Loading branch information
reacto11mecha committed Jul 6, 2024
1 parent 8979a80 commit 44460c1
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions apps/clients/attendance/src/components/scanner/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export function ScannerComponent() {

if (participantAttend.isSuccess)
return (
<div className="flex h-screen w-screen flex-col items-center justify-center gap-3 bg-green-600 p-6">
<div className="flex h-screen w-screen flex-col items-center justify-center gap-6 bg-green-600 p-6">
<div className="w-[80%] text-center">
<motion.h1
initial={{ opacity: 0, y: -25 }}
Expand All @@ -78,7 +78,6 @@ export function ScannerComponent() {
Silahkan menuju ke komputer pemilihan dan gunakan hak suara anda.
</motion.p>
</div>
<Separator className="w-[60%]" />
<motion.div
initial={{ opacity: 0, y: -25 }}
animate={{ opacity: 1, y: 0 }}
Expand All @@ -87,7 +86,7 @@ export function ScannerComponent() {
duration: 0.3,
delay: 0.4,
}}
className="flex gap-3"
className="flex gap-3 rounded-lg border border-green-400 bg-green-400 p-4"
>
<div className="select-none">
<pre className="mb-[-10px] font-mono">
Expand All @@ -100,10 +99,14 @@ export function ScannerComponent() {
{participantAttend.data.qrId.slice(10, 15)}
</pre>
</div>
<Separator orientation="vertical" />
<div>
<p className="text-lg">{participantAttend.data.name}</p>
<span className="font-mono">{participantAttend.data.subpart}</span>
<Separator orientation="vertical" className="bg-teal-600" />
<div className="flex flex-col justify-center gap-2">
<p className="text-2xl font-semibold leading-none">
{participantAttend.data.name}
</p>
<span className="font-mono text-lg font-medium leading-none">
{participantAttend.data.subpart}
</span>
</div>
</motion.div>
</div>
Expand Down

0 comments on commit 44460c1

Please sign in to comment.