Skip to content
Türkçe
All snippets

A hotel room pass that puts the door and checkout time in reach

Give checked-in guests a room pass they can read at a glance: floor, tap-to-open access and the exact key expiry. A paper stub with overflow-hidden keeps the perforation and oversized room number unmistakable.

preview
a_hotel_room_pass_that_puts_the_door_and_sxfnyn.dart
WDiv(
  className: '''
    flex flex-col w-full
    px-4 py-12
    bg-zinc-800 dark:bg-zinc-900
  ''',
  children: [
    WDiv(
      className: '''
        flex flex-col w-full
        rounded-xl overflow-hidden
        bg-zinc-100 dark:bg-zinc-100
      ''',
      children: [
        WDiv(
          className: 'flex flex-col gap-4 px-5 pt-5 pb-4',
          children: [
            WText('Alder House', className: '''
              text-4xl font-black
              text-zinc-900 dark:text-zinc-900
            '''),
            WBadge('Key ready', className: '''
              px-3 py-1
              bg-red-600 dark:bg-red-600
              text-white dark:text-white
            '''),
            WDiv(className: 'flex flex-row gap-4', children: [
              WDiv(className: 'flex flex-col flex-1', children: [
                WText('Key expires', className: 'text-xs text-zinc-600 dark:text-zinc-600'),
                WText('27 Nov, 11:00', className: '''
                  text-xl font-bold
                  text-zinc-900 dark:text-zinc-900
                '''),
              ]),
              WDiv(className: 'flex flex-col flex-1', children: [
                WText('Door access', className: 'text-xs text-zinc-600 dark:text-zinc-600'),
                WText('Tap phone', className: '''
                  text-xl font-bold
                  text-zinc-900 dark:text-zinc-900
                '''),
              ]),
            ]),
            WDiv(className: 'flex flex-row gap-4', children: [
              WDiv(className: 'flex flex-col flex-1', children: [
                WText('Guest', className: 'text-xs text-zinc-600 dark:text-zinc-600'),
                WText('Deniz Kaya', className: '''
                  text-base font-semibold
                  text-zinc-900 dark:text-zinc-900
                '''),
              ]),
              WDiv(className: 'flex flex-col flex-1', children: [
                WText('Your room', className: 'text-xs text-zinc-600 dark:text-zinc-600'),
                WText('Floor 4', className: '''
                  text-base font-semibold
                  text-zinc-900 dark:text-zinc-900
                '''),
              ]),
            ]),
          ],
        ),
        WDiv(className: 'relative flex flex-row items-center h-6', children: [
          WDiv(className: '''
            absolute -left-3
            size-6 rounded-full
            bg-zinc-800 dark:bg-zinc-900
          '''),
          WText('• • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • •', className: '''
            flex-1 text-center
            text-base
            text-zinc-400 dark:text-zinc-400
          '''),
          WDiv(className: '''
            absolute -right-3
            size-6 rounded-full
            bg-zinc-800 dark:bg-zinc-900
          '''),
        ]),
        WDiv(className: 'flex flex-row justify-center py-5', children: [
          WText('418', className: '''
            text-5xl font-black tracking-widest
            text-zinc-900 dark:text-zinc-900
          '''),
        ]),
      ],
    ),
  ],
)
  • A refund choice that keeps your money yours

    Compare store credit with money back to the original card, without hiding either option. Equal WCard panels show the bonus, timing and spending limits before the shopper confirms.

    • WDiv
    • WText
    • WCard
    • WBadge
    • WButton
  • An age-proof panel that keeps your identity out of the exchange

    Let people share an over-18 result without handing over their birthday or address. A clear disclosure panel uses WSwitch controls to separate the proof from personal details before approval.

    • WDiv
    • WText
    • WSwitch
    • WButton
    • WIcon
  • An eSIM top-up comparison that avoids buying another full plan

    Help travelers cover the last three days of a trip without paying for a fresh week. Equal WCard panels compare a new plan with a smaller top-up, with the saving and expiry visible before purchase.

    • WDiv
    • WText
    • WCard
    • WBadge
    • WButton