12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <template>
- <div class="instructor-page">
- <instructor-header
- title="Choose your admin page"
- exitLink="/"/>
- <div class="centered">
- <div class="columns">
- <!-- Go to /instructor/courses -->
- <div class="box" @click="() => $router.push('/instructor/courses')">
- <div>
- Courses
- </div>
- </div>
- <!-- Go to /instructor/blogs -->
- <div class="box" @click="() => $router.push('/instructor/blogs')">
- <div>
- Blogs
- </div>
- </div>
- <!-- Go to /instructor/heroes -->
- <div class="box" @click="() => {}">
- <div>
- Heroes
- </div>
- </div>
- </div>
- </div>-
- </div>
- </template>
- <script>
- import InstructorHeader from '~/components/shared/Header'
- export default {
- layout: 'instructor',
- components: {
- InstructorHeader
- }
- }
- </script>
- <style scoped lang="scss">
- .instructor-page {
- .centered {
- margin-top: 100px;
- display: flex;
- flex-direction: row; /* make main axis horizontal (default setting) */
- justify-content: center; /* center items horizontally, in this case */
- align-items: center; /* center items vertically, in this case */
- }
- }
- .box {
- height: 300px;
- width: 300px;
- display: flex;
- margin: 5px;
- justify-content: center;
- &:hover {
- cursor: pointer;
- background-color: #58529f;
- color: white;
- transition: background-color 0.3s ease-out;
- }
- > div {
- align-self: center;
- font-size: 50px;
- font-weight: bold;
- }
- }
- </style>
|