Calculator Tools Calculator Tools
Create

Travel Buddy - Your Travel Partner

Nov 13, 2023

About this app

An interactive travel agency website. Plan your trips, get destination ideas, and more!

Travel Buddy - Your Travel Partner Travel Buddy 🌍

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Travel Buddy - Your Travel Partner</title>
<meta name="description" content="An interactive travel agency website. Plan your trips, get destination ideas, and more!">
<meta name="keywords" content="Travel, Agency, Trip, Planner, Destination, Ideas">

<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Pacifico&display=swap" rel="stylesheet">

<style>
body {
background: linear-gradient(to right, #ff9966, #ff5e62);
font-family: 'Montserrat', sans-serif;
}
.logo {
font-family: 'Pacifico', cursive;
color: white;
font-size: 2.5em;
}
.destination-card {
margin: 1em;
background: white;
border-radius: 20px;
overflow: hidden;
transition: transform .2s ease-in-out;
}
.destination-card:hover {
transform: scale(1.05);
}
.destination-card img {
width: 100%;
height: 200px;
object-fit: cover;
}
.destination-card h5, .destination-card p {
margin: 0 1em;
}
.destination-card p {
color: #888;
margin: 1em 0;
}
</style>

<script type="text/javascript">
try {
document.addEventListener("DOMContentLoaded", function() {
var destinations = [
{name: "Paris", desc: "The City of Love 💖", img: "https://source.unsplash.com/1600x900/?paris"},
{name: "New York", desc: "The Big Apple 🍎", img: "https://source.unsplash.com/1600x900/?newyork"},
{name: "Tokyo", desc: "Land of the Rising Sun 🌅", img: "https://source.unsplash.com/1600x900/?tokyo"},
{name: "Sydney", desc: "The Harbour City 🌉", img: "https://source.unsplash.com/1600x900/?sydney"},
{name: "Cairo", desc: "The City of a Thousand Minarets 🕌", img: "https://source.unsplash.com/1600x900/?cairo"}
];

var container = document.getElementById("main-container");
destinations.forEach(function(dest) {
var card = document.createElement("div");
card.className = "destination-card";
card.innerHTML = `
<img src="${dest.img}" alt="${dest.name}">
<h5>${dest.name}</h5>
<p>${dest.desc}</p>
`;
container.appendChild(card);
});
});
} catch (error) {
throw error;
}
</script>
</head>
<body>
<div class="container">
<h1 class="logo text-center my-5">Travel Buddy 🌍</h1>
<div id="main-container" class="d-flex flex-wrap justify-content-center">
<!-- Destination cards will go here -->
</div>
</div>
</body>
</html>