Demos

Our own components, each with a JS and a CSS file of its own and an <x-assets.tvt-*> component that loads them once per page. Every demo shows the options, the events and the methods, with the code of each example.

  • tvt-calendar

    Inline date picker: one or two months, a date or a range, birth dates typed or picked with age limits, prices and special offers in the days.

    • public/js/tvt-calendar.js
    • public/css/tvt-calendar.css
    • resources/views/components/assets/tvt-calendar.blade.php
  • tvt-toast

    Toast notifications: types preset in config, the message in an attribute or a hidden block, add / remove toggles with aria-pressed, auto-close paused on hover, a JS API.

    • public/js/tvt-toast.js
    • public/css/tvt-toast.css
    • resources/views/components/assets/tvt-toast.blade.php
    • resources/views/components/tools/tvt-toast.blade.php
    • config/toasts.php
  • tvt-tooltip

    Tooltips on hover and focus, popovers on click, in the top layer: placed on the side with room, kept inside the window, click or hover per breakpoint, tap on touch.

    • public/js/tvt-tooltip.js
    • public/css/tvt-tooltip.css
    • resources/views/components/assets/tvt-tooltip.blade.php
  • tvt-alert

    Inline messages, such as the notices of the booking pages: types preset in config, a title, actions, a compact size, closed for the session, a countdown that turns a notice into a warning, then an expiry.

    • public/js/tvt-alert.js
    • public/css/tvt-alert.css
    • resources/views/components/assets/tvt-alert.blade.php
    • resources/views/components/tools/tvt-alert.blade.php
    • resources/views/components/tools/tvt-alert-countdown.blade.php
    • config/alerts.php
  • tvt-popup

    Promotional pop-ups shown after a few seconds, on scroll or on exit: ten templates (newsletters, sales, a scratch card, a quiz, a price alert, a call back, a corner announcement), campaigns with audience and period in config, one per visit, hidden for the browser session once closed, a bottom sheet on phones.

    • public/js/tvt-popup.js
    • public/css/tvt-popup.css
    • resources/views/components/assets/tvt-popup.blade.php
    • resources/views/components/popups/popup-shell.blade.php
    • resources/views/components/popups/popup-campaigns.blade.php
    • resources/views/components/popups/popup-*.blade.php
    • app/View/DemoPopups.php
    • config/demo-popups.php