Skip to content

Traveler Profile with Visited Countries

Traveler profile screen with trip stats, a visited countries list with CSS flags and region filter, a trip timeline and an edit profile bottom sheet.

Also known as: travel app profile ui, visited countries tracker, travel journal app screen, user profile with stats, trip history timeline

Traveler Profile with Visited Countries live demo

Open in new tab

Pure CSS code (HTML, CSS, JS)

A traveler profile screen in plain CSS and vanilla JavaScript, with trip stats, a visited countries list with flags drawn as CSS colour blocks, a trip timeline and an edit profile button. Sand tones, a terracotta accent and Work Sans make this travel app profile UI feel warm and personal. It is an HTML mobile template for mobile sites and PWAs, and it can be packaged as a native app with Capacitor.

How it works

The root .tvp-app is a 430 px app column on a neutral page. Under the sticky .tvp-top bar, .tvp-hero shows the avatar, name, home base and bio. The .tvp-stats card uses a <dl> for countries, trips and photos, followed by a role="progressbar" showing the share of the world visited.

The .tvp-list holds one .tvp-country per country. Each row is a button with aria-expanded that reveals the last visit date and a favourite memory. Flags are .tvp-flag elements with modifiers such as .tvp-flag--it or .tvp-flag--gh, built from gradients (Ghana's star uses clip-path). The .tvp-chips buttons filter rows by their data-region value and update [data-tvp-count].

The .tvp-trips timeline lists trips with data-start (days from today) and data-nights. The script turns them into date ranges without a year and adds an "In N days" pill to the upcoming trip, so the dates never go stale. Edit opens the .tvp-sheet bottom sheet with name, home base and bio fields, validates them, simulates a save and updates the profile.

The portrait comes from Unsplash; replace it with the user's own photo.

Customization

  • --tvp-accent on .tvp-app: terracotta colour of chips, buttons, the timeline dot and the active tab.
  • --tvp-sand and --tvp-card: page and card backgrounds.
  • --tvp-radius: the 14 px radius of cards, chips and buttons.
  • Add a flag with a new .tvp-flag--xx rule using a linear-gradient of the flag colours.
  • data-region on .tvp-country and a matching data-tvp-region chip: add regions such as Oceania.
  • data-days-ago on each country and data-start / data-nights on each trip: control the computed dates.
  • Replace the setTimeout in the form submit handler with fetch() to save to your API.

Use cases

  • Travel journal and trip planner apps: a personal profile with country count and history.
  • Travel communities and social apps: public traveler profiles with stats and recent trips.
  • Booking and tour operator PWAs: a member area showing past and upcoming trips.
  • Photo sharing apps: link trips and photo counts to a profile.

Accessibility

Region chips use aria-pressed, country rows use aria-expanded with aria-controls, and the tab bar marks the current page with aria-current. The edit sheet is a role="dialog" with aria-modal, keeps Tab focus inside, closes with Escape, the close button or a backdrop tap, and returns focus. Fields use real autocomplete values; errors set aria-invalid and are linked with aria-describedby. A polite role="status" region announces filters and saves. Touch targets are at least 44 px, and the sheet animation stops for prefers-reduced-motion.

Traveler Profile with Visited Countries at a glance

Framework
Pure CSS
Code
HTML, CSS, JavaScript
JavaScript
Vanilla JavaScript, no jQuery
Dependencies
fonts.googleapis.com, Bootstrap Icons
Layout
Mobile-first app screen, centred on wider screens
Category
Mobile Profile Screens
License
Free for personal and commercial use

Questions about this template

Can I use the Traveler Profile with Visited Countries code for free?

Yes. You can copy or download the code and use it in personal and commercial projects, including client work. No sign-up is needed. Reselling it as part of a component library or template collection is not allowed; see the license.

How do I add it to my website?

Load fonts.googleapis.com and Bootstrap Icons from a CDN (the links are under Requirements). Paste the HTML where the component should appear, add the CSS to your stylesheet and load the JavaScript before the closing </body> tag. Download HTML gives you a complete page with everything already linked.

Does it need jQuery or a JavaScript framework?

No. The script is plain vanilla JavaScript, so it works without jQuery, React or Vue. You can still use the markup inside those frameworks.

Can I turn this screen into an iOS or Android app?

Yes. It is plain HTML, CSS and JavaScript, so it works in a mobile website or progressive web app as it is. To ship it as a store app, put it in the web folder of a Capacitor or Cordova project and build it for iOS and Android; replace the sample data with calls to your own API.

How does it look on a desktop screen?

The screen is designed for phones. On wider screens it stays at phone width in the middle of the page, so it still looks like an app. The live demo opens at mobile width; use the Tablet and Desktop buttons to check other sizes.

Requirements

Add these to your page (already included in the download):

  • <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap">
  • <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css">
Traveler Profile with Visited Countries – free Pure CSS mobile profile screen template
Traveler Profile with Visited Countries · free Pure CSS mobile profile screen template

More Mobile Profile Screens

Musician Profile with Tracks and Follow – free Bootstrap 6 mobile profile screen template

Musician Profile with Tracks and Follow

Musician profile screen for music apps with a cover photo, follow button and live follower count, tracks, albums and tour tabs, and a mini player.

Fitness Profile with Achievements – free Pure CSS mobile profile screen template

Fitness Profile with Achievements

Fitness app profile screen with avatar and level progress ring, weekly activity bars, an achievements badge grid with a details bottom sheet and personal records list.

Social Profile Screen with Photo Grid – free Tailwind CSS mobile profile screen template

Social Profile Screen with Photo Grid

Social media profile screen with avatar, bio, follower stats, Follow and Message buttons, posts, reels and tagged tabs and a three-column photo grid.

Freelancer Profile with Reviews – free Bootstrap 5 mobile profile screen template

Freelancer Profile with Reviews

Freelancer profile screen with cover photo, rating, skills chips, portfolio thumbnails, reviews with rating breakdown and a sticky Hire button that opens a hire request form.

Doctor Profile with Booking Slots – free Bootstrap 6 mobile profile screen template

Doctor Profile with Booking Slots

Doctor profile screen for healthcare apps with rating, experience stats, today and tomorrow time slots and a doctor appointment booking sheet.

Edit Profile Screen with Avatar Picker – free Bootstrap 6 mobile profile screen template

Edit Profile Screen with Avatar Picker

Edit profile screen for mobile apps with an avatar picker bottom sheet, username availability check, bio character counter, validation and a sticky save button.