index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <div class="instructor-page">
  3. <instructor-header
  4. title="Choose your admin page"
  5. exitLink="/"/>
  6. <div class="centered">
  7. <div class="columns">
  8. <!-- Go to /instructor/courses -->
  9. <div class="box" @click="() => $router.push('/instructor/courses')">
  10. <div>
  11. Courses
  12. </div>
  13. </div>
  14. <!-- Go to /instructor/blogs -->
  15. <div class="box" @click="() => $router.push('/instructor/blogs')">
  16. <div>
  17. Blogs
  18. </div>
  19. </div>
  20. <!-- Go to /instructor/heroes -->
  21. <div class="box" @click="() => {}">
  22. <div>
  23. Heroes
  24. </div>
  25. </div>
  26. </div>
  27. </div>-
  28. </div>
  29. </template>
  30. <script>
  31. import InstructorHeader from '~/components/shared/Header'
  32. export default {
  33. layout: 'instructor',
  34. components: {
  35. InstructorHeader
  36. }
  37. }
  38. </script>
  39. <style scoped lang="scss">
  40. .instructor-page {
  41. .centered {
  42. margin-top: 100px;
  43. display: flex;
  44. flex-direction: row; /* make main axis horizontal (default setting) */
  45. justify-content: center; /* center items horizontally, in this case */
  46. align-items: center; /* center items vertically, in this case */
  47. }
  48. }
  49. .box {
  50. height: 300px;
  51. width: 300px;
  52. display: flex;
  53. margin: 5px;
  54. justify-content: center;
  55. &:hover {
  56. cursor: pointer;
  57. background-color: #58529f;
  58. color: white;
  59. transition: background-color 0.3s ease-out;
  60. }
  61. > div {
  62. align-self: center;
  63. font-size: 50px;
  64. font-weight: bold;
  65. }
  66. }
  67. </style>