diff --git a/app/[lang]/galeri/GaleriClient.tsx b/app/[lang]/galeri/GaleriClient.tsx index 2ab2058..53cb986 100644 --- a/app/[lang]/galeri/GaleriClient.tsx +++ b/app/[lang]/galeri/GaleriClient.tsx @@ -13,15 +13,24 @@ export default function GaleriClient({ lang, dict }: { lang: string; dict: any } type Category = string; const IMAGES = [ - { src: "https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&q=80&w=800", cat: t.venues, title: "Akşam Servisi" }, - { src: "https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&q=80&w=800", cat: "Beach", title: "Moy Beach Alaçatı" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592478/moygrup/kitebeach/moyheader-scaled.jpg", cat: t.venues, title: "Kite Beach Genel Görünüm" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592469/moygrup/kitebeach/A1_0177-scaled.jpg", cat: "Beach", title: "Sahil Manzarası" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592471/moygrup/kitebeach/A1_7609-scaled.jpg", cat: "Beach", title: "Kum ve Deniz" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592472/moygrup/kitebeach/A1_7612-scaled.jpg", cat: "Beach", title: "Kite Sahili" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592473/moygrup/kitebeach/A1_7630-scaled.jpg", cat: "Beach", title: "Rüzgar ve Deniz" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592475/moygrup/kitebeach/A1_7684-scaled.jpg", cat: "Beach", title: "Kite Beach Dinlenme" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592477/moygrup/kitebeach/images.jpg", cat: "Beach", title: "Sahil Keyfi" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592539/moygrup/kitehotel/kite3.png", cat: "Hotel", title: "Kite Beach Hotel" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592542/moygrup/kitehotel/kite4.png", cat: "Hotel", title: "Hotel Odalar" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592543/moygrup/kitehotel/kite5.png", cat: "Hotel", title: "Oda İçi Tasarım" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592546/moygrup/kitehotel/kite6.png", cat: "Hotel", title: "Oda Detayları" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592548/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee-1.jpg", cat: "Kite Surf", title: "Kitesurf Heyecanı" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592549/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee-2.jpg", cat: "Kite Surf", title: "Dalgalarla Dans" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592549/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee-3.jpg", cat: "Kite Surf", title: "Profesyonel Kitesurf" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592550/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee-4.jpg", cat: "Kite Surf", title: "Rüzgarla Sörf" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592552/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee-5.jpg", cat: "Kite Surf", title: "Deniz ve Özgürlük" }, + { src: "https://res.cloudinary.com/du7xohbct/image/upload/v1780592553/moygrup/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-_mustfreeee.jpg", cat: "Kite Surf", title: "Kitesurf Eğitimi" }, { src: "https://images.unsplash.com/photo-1449844908441-8829872d2607?auto=format&fit=crop&q=80&w=800", cat: "Bungalov", title: "Doğada Konaklama" }, - { src: "https://images.unsplash.com/photo-1526685514088-290076a0d426?auto=format&fit=crop&q=80&w=800", cat: "Kite Surf", title: "Gökova Körfezi" }, - { src: "https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&q=80&w=800", cat: "Hotel", title: "Kite Beach Hotel" }, - { src: "https://images.unsplash.com/photo-1519046904884-53103b34b206?auto=format&fit=crop&q=80&w=800", cat: "Beach", title: "Gün Batımı" }, - { src: "https://images.unsplash.com/photo-1571003123894-1f0594d2b5d9?auto=format&fit=crop&q=80&w=800", cat: "Hotel", title: "Oda Manzarası" }, - { src: "https://images.unsplash.com/photo-1614214227038-f9d9cf98b1ec?auto=format&fit=crop&q=80&w=800", cat: "Kite Surf", title: "Sabah Seansı" }, - { src: "https://images.unsplash.com/photo-1490197415175-074fd86b1fcc?auto=format&fit=crop&q=80&w=800", cat: t.venues, title: "Taze Deniz Ürünleri" }, ]; const [active, setActive] = useState(t.all); diff --git a/public/kitehotel/kite3.png b/public/kitehotel/kite3.png new file mode 100644 index 0000000..3866ea0 Binary files /dev/null and b/public/kitehotel/kite3.png differ diff --git a/public/kitehotel/kite4.png b/public/kitehotel/kite4.png new file mode 100644 index 0000000..2d17261 Binary files /dev/null and b/public/kitehotel/kite4.png differ diff --git a/public/kitehotel/kite5.png b/public/kitehotel/kite5.png new file mode 100644 index 0000000..419b21f Binary files /dev/null and b/public/kitehotel/kite5.png differ diff --git a/public/kitehotel/kite6.png b/public/kitehotel/kite6.png new file mode 100644 index 0000000..0c94dd0 Binary files /dev/null and b/public/kitehotel/kite6.png differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-1.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-1.jpg new file mode 100644 index 0000000..2b303c5 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-1.jpg differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-2.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-2.jpg new file mode 100644 index 0000000..51a1f56 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-2.jpg differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-3.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-3.jpg new file mode 100644 index 0000000..6781620 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-3.jpg differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-4.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-4.jpg new file mode 100644 index 0000000..34b2800 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-4.jpg differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-5.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-5.jpg new file mode 100644 index 0000000..b4a1b97 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee-5.jpg differ diff --git a/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee.jpg b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee.jpg new file mode 100644 index 0000000..e6c2775 Binary files /dev/null and b/public/kitesurf/Timeless-moments-at-Kite-Beach.-Where-every-wave-tells-a-story.-@mustfreeee.jpg differ diff --git a/scripts/upload-to-cloudinary.js b/scripts/upload-to-cloudinary.js index 75a95e9..c38da7e 100644 --- a/scripts/upload-to-cloudinary.js +++ b/scripts/upload-to-cloudinary.js @@ -9,26 +9,34 @@ cloudinary.config({ }); const uploadImages = async () => { - const publicDir = path.join(__dirname, '..', 'public'); - const files = fs.readdirSync(publicDir); - - const images = files.filter(file => file.endsWith('.jpg') || file.endsWith('.png')); - + const foldersToUpload = ['kitehotel', 'kitesurf']; const results = {}; - - for (const file of images) { - console.log(`Uploading ${file}...`); - try { - const filePath = path.join(publicDir, file); - const result = await cloudinary.uploader.upload(filePath, { - folder: 'moygrup', - use_filename: true, - unique_filename: false - }); - console.log(`Uploaded ${file} -> ${result.secure_url}`); - results[file] = result.secure_url; - } catch (error) { - console.error(`Error uploading ${file}:`, error); + + for (const folderName of foldersToUpload) { + const publicDir = path.join(__dirname, '..', 'public', folderName); + + if (!fs.existsSync(publicDir)) { + console.log(`Directory does not exist: ${publicDir}`); + continue; + } + + const files = fs.readdirSync(publicDir); + const images = files.filter(file => file.endsWith('.jpg') || file.endsWith('.jpeg') || file.endsWith('.png') || file.endsWith('.webp')); + + for (const file of images) { + console.log(`Uploading ${folderName}/${file}...`); + try { + const filePath = path.join(publicDir, file); + const result = await cloudinary.uploader.upload(filePath, { + folder: `moygrup/${folderName}`, + use_filename: true, + unique_filename: false + }); + console.log(`Uploaded ${file} -> ${result.secure_url}`); + results[`${folderName}/${file}`] = result.secure_url; + } catch (error) { + console.error(`Error uploading ${folderName}/${file}:`, error); + } } }