import ProjectRoadmap from '@/views/main/ProjectRoadmap.vue'
import { createRouter, createWebHistory } from 'vue-router'
import LoginView from '../views/LoginView.vue'
import SignupView from '../views/SignupView.vue'
import ContactView from '../views/main/ContactView.vue'
import CreatorFolio from '../views/main/CreatorFolio.vue'
import HomeView from '../views/main/HomeView.vue'
import YourProfile from '../views/main/YourProfile.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'main',
      component: HomeView
    },
    {
      path: '/creatorfolio',
      name: 'creatorfolio',
      component: CreatorFolio
    },
    {
      path: '/yourprofile',
      name: 'yourprofile',
      component: YourProfile
    },
    {
      path: '/contact',
      name: 'contact',
      component: ContactView
    },
    {
      path: '/signup',
      name: 'signup',
      component: SignupView
    },
    {
      path: '/login',
      name: 'login',
      component: LoginView
    },
    {
      path: '/roadmap',
      name: 'roadmap',
      component: ProjectRoadmap
    },
    {
      path: '/home',
      name: 'home',
      component: HomeView
    },
  ],
  scrollBehavior(to, from, savedPosition) {
    return { top: 0 };
  }
})

export default router
