-
Notifications
You must be signed in to change notification settings - Fork 3
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 #303 from matematikk-mooc/stage
Stage
- Loading branch information
Showing
13 changed files
with
357 additions
and
184 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,48 @@ | ||
<template> | ||
<div :class="['box', `box--${type}`]"> | ||
<div class="box-content"> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'Box', | ||
props: { | ||
type: { | ||
type: String, | ||
default: 'grey', | ||
validator: (value) => ['grey', 'green', 'red'].includes(value), | ||
}, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style lang="scss"> | ||
.box { | ||
width: 100%; | ||
display: flex; | ||
justify-content: center; | ||
&--grey { | ||
background-color: #E3F2EB; | ||
border-top-left-radius: 0.5rem; | ||
border-top-right-radius: 0.5rem; | ||
} | ||
&--green { | ||
background-color: #E3F2EB; | ||
} | ||
&--red { | ||
background-color: #ffebee; | ||
} | ||
.box-content { | ||
width: 100%; | ||
max-width: 960px; // Adjust the maximum width according to your design | ||
padding: 1.25rem; // Adjust the padding according to your design | ||
} | ||
} | ||
</style> |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.