const express = require('express')
const app = express()
const PORT = 3000

app.set('view engine', 'ejs')
app.use(express.static('public'))

app.get('/', (req, res) => {
  res.render('index', {
    name: "AP apdet",
    bio: "hanya contoh | web dev kw ",
    avatar: "/avatar.jpg", // ganti sesuai path avatar kamu di /public/
    links: [
      { title: "WhatsApp", url: "https://wa.me/628123456789", icon: "fab fa-whatsapp" },
      { title: "Instagram", url: "https://instagram.com/yourusername", icon: "fab fa-instagram" },
      { title: "TikTok", url: "https://tiktok.com/@yourusername", icon: "fab fa-tiktok" },
      { title: "YouTube", url: "https://youtube.com/@yourusername", icon: "fab fa-youtube" },
      { title: "GitHub", url: "https://github.com/yourusername", icon: "fab fa-github" }
    ]
  })
})

app.listen(PORT, () => {
  console.log(`Server running at http://localhost:${PORT}`)
})