🎡 DateSpin Istanbul
DateSpin Istanbul
body {
font-family: ‘Poppins’, sans-serif;
background: linear-gradient(135deg, #ffecd2, #fcb69f);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 100vh;
margin: 0;
padding: 0 1rem;
}
h1 {
font-size: 2.5rem;
margin-bottom: 1rem;
text-align: center;
}
.category-select {
display: flex;
gap: 1rem;
flex-wrap: wrap;
justify-content: center;
}
.category-btn {
background: white;
border: none;
padding: 0.7rem 1.2rem;
border-radius: 25px;
cursor: pointer;
font-size: 1rem;
box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}
.category-btn.active {
background: #ff5c8d;
color: white;
}
.spin-btn {
margin-top: 1.5rem;
background: #5f72be;
color: white;
padding: 1rem 2rem;
border: none;
border-radius: 40px;
font-size: 1.1rem;
cursor: pointer;
}
.result {
margin-top: 2rem;
margin-bottom: 6rem;
background: white;
padding: 1.5rem;
border-radius: 15px;
box-shadow: 0 8px 25px rgba(0,0,0,0.1);
text-align: center;
opacity: 0;
transform: translateY(20px);
transition: all 0.5s ease;
max-width: 500px;
}
.result.show {
opacity: 1;
transform: translateY(0);
}
.links a {
display: inline-block;
margin: 0 10px;
text-decoration: none;
color: #3a47d5;
font-weight: 500;
}
let currentCategory = ‘couple’;
const data = {
couple: [
{ title: “Sunset ferry ride”, google: “https://www.google.com/maps/search/?api=1&query=Sunset%20ferry%20ride%20Istanbul”, yandex: “https://yandex.com/maps/?text=Sunset%20ferry%20ride%20Istanbul” },
{ title: “Dinner in Galata Tower”, google: “https://www.google.com/maps/search/?api=1&query=Dinner%20in%20Galata%20Tower%20Istanbul”, yandex: “https://yandex.com/maps/?text=Dinner%20in%20Galata%20Tower%20Istanbul” },
// …add 18 more here
],
friends: [
{ title: “Paintball in Beykoz”, google: “https://www.google.com/maps/search/?api=1&query=Paintball%20in%20Beykoz%20Istanbul”, yandex: “https://yandex.com/maps/?text=Paintball%20in%20Beykoz%20Istanbul” },
{ title: “Vintage crawl in Balat”, google: “https://www.google.com/maps/search/?api=1&query=Vintage%20crawl%20in%20Balat%20Istanbul”, yandex: “https://yandex.com/maps/?text=Vintage%20crawl%20in%20Balat%20Istanbul” },
// …add 18 more here
],
family: [
{ title: “Istanbul Aquarium”, google: “https://www.google.com/maps/search/?api=1&query=Istanbul%20Aquarium”, yandex: “https://yandex.com/maps/?text=Istanbul%20Aquarium” },
{ title: “Miniatürk miniature park”, google: “https://www.google.com/maps/search/?api=1&query=Miniat%C3%BCrk%20miniature%20park%20Istanbul”, yandex: “https://yandex.com/maps/?text=Miniat%C3%BCrk%20miniature%20park%20Istanbul” },
// …add 18 more here
]
};
function setCategory(cat) {
currentCategory = cat;
document.querySelectorAll(‘.category-btn’).forEach(btn => btn.classList.remove(‘active’));
document.querySelector(`.category-btn[onclick=”setCategory(‘${cat}’)”]`).classList.add(‘active’);
}
function spin() {
const ideas = data[currentCategory];
const choice = ideas[Math.floor(Math.random() * ideas.length)];
const resultBox = document.getElementById(‘result’);
resultBox.innerHTML = `
${choice.title}
`;
resultBox.classList.add(‘show’);
}