This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/ocjojo/bildungsplattform_…
- Loading branch information
Showing
16 changed files
with
270 additions
and
79 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
<template> | ||
<div class="card card-md"> | ||
<div class="room-img"></div> | ||
<div class="room-info"> | ||
<h5>{{ room.Name }}</h5> | ||
<p>{{ room.Description }}</p> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: { | ||
room: Object | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
.card { | ||
height: 200px; | ||
display: flex; | ||
flex-direction: row; | ||
min-height: 200px; | ||
cursor: pointer; | ||
transition: 0.2s ease-in-out; | ||
&:hover { | ||
transform: scale(1.05); | ||
} | ||
.room-img { | ||
width: 200px; | ||
background: url("../assets/defaultRoom.jpg"); | ||
height: 200px; | ||
background-size: cover; | ||
background-position: center; | ||
border-radius: 15px 0 0 15px; | ||
} | ||
.room-info { | ||
width: 300px; | ||
padding-top: 0; | ||
padding: 20px; | ||
margin-bottom: 5px; | ||
overflow: hidden; | ||
padding-top: 0; | ||
text-overflow: ellipsis; | ||
h5 { | ||
font-weight: 900; | ||
font-size: 1.6rem; | ||
} | ||
} | ||
} | ||
</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 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,22 @@ | ||
export function slugify(name) { | ||
return name | ||
.toString() | ||
.toLowerCase() | ||
.trim() | ||
.replace(/&/g, "-and-") // Replace & with 'and' | ||
.replace(/[\s\W-]+/g, "-") | ||
.replace(/-$/, ""); // Remove last floating dash if exists | ||
} | ||
|
||
export function formatDate(date) { | ||
return new Date(Date.parse(date)).toLocaleDateString(); | ||
} | ||
|
||
export function formatTime(time) { | ||
return new Date(Date.parse(time)).toLocaleTimeString(); | ||
} | ||
|
||
export function formatDatetime(datetime) { | ||
const date = new Date(Date.parse(datetime)); | ||
return date.toLocaleDateString() + " " + date.toLocaleTimeString(); | ||
} |
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 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.