-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #330 from matematikk-mooc/KURSP-894-my-courses
KURSP-894: implement my courses page, fix props in header
- Loading branch information
Showing
10 changed files
with
120 additions
and
144 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.loading-gif-wrapper { | ||
span { | ||
display: block; | ||
margin: 2rem auto; | ||
justify-content: center; | ||
} | ||
} | ||
|
||
.loading-gif { | ||
width: 2.5rem; | ||
height: 2.5rem; | ||
background: url('https://kompetanseudirno.azureedge.net/bitmaps/loading.gif') no-repeat center center; | ||
background-size: 8rem; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div class="my-courses-page"> | ||
<div class="my-courses-page--content"> | ||
<h2>Mine kompetansepakker</h2> | ||
<div class="my-courses-page--layout"> | ||
<CardList :authorized="true" :courses="courses"></CardList> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
|
||
<script> | ||
import CardList from '../components/CardList.vue'; | ||
export default{ | ||
name: 'MyCoursesPage', | ||
components: { | ||
CardList | ||
}, | ||
props: { | ||
courses: Array, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.my-courses-page { | ||
height: 100%; | ||
width: 100%; | ||
max-width: 1600px; | ||
padding: 1.25rem; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: flex-start; | ||
align-items: center; | ||
min-height: 85vh; | ||
} | ||
.my-courses-page--content { | ||
width: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
margin-left: 1.5rem; | ||
h2 { | ||
font-size: 2rem; | ||
margin: 1.5rem 0 1.5rem 0; | ||
} | ||
} | ||
.my-courses-page--layout { | ||
display: flex; | ||
align-items: flex-start; | ||
justify-content: flex-start; | ||
} | ||
</style> |