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 #118 from kb-dk/DISC-800/refactor-of-searchvue
DISC-800/Refactoring of Search.vue.
- Loading branch information
Showing
8 changed files
with
403 additions
and
365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="intro"> | ||
<h2>Velkommen til DR's arkiv på Det Kgl. Bibliotek</h2> | ||
<p> | ||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore | ||
magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla | ||
pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id | ||
est laborum. | ||
</p> | ||
<router-link to="/about">read more</router-link> | ||
</div> | ||
</div> | ||
<div class="container"> | ||
<h3>Udpluk fra arkivet</h3> | ||
<GridDisplay | ||
:spot-nr="8" | ||
:row-nr="4" | ||
:draggable="true" | ||
:spots="mockdata1" | ||
></GridDisplay> | ||
</div> | ||
<div class="blue-background"> | ||
<div class="edge blue"></div> | ||
|
||
<div class="container"> | ||
<h3>Om DR Arkivet</h3> | ||
<GridDisplay | ||
:draggable="false" | ||
:spot-nr="3" | ||
:row-nr="3" | ||
:blue-background="true" | ||
:spots="mockdata2" | ||
></GridDisplay> | ||
</div> | ||
</div> | ||
</div> | ||
</template> | ||
<script lang="ts"> | ||
import { defineComponent } from 'vue'; | ||
import { useSearchResultStore } from '@/store/searchResultStore'; | ||
import GridDisplay from '@/components/common/GridDisplay.vue'; | ||
import { GenericSearchResultType } from '@/types/GenericSearchResultTypes'; | ||
export default defineComponent({ | ||
name: 'PortalContent', | ||
components: { | ||
GridDisplay, | ||
}, | ||
setup() { | ||
const mockdata1 = ['1', '2', '3', '4', '5', '6', '7', '8'] as unknown as GenericSearchResultType[]; | ||
const mockdata2 = ['1', '2', '3'] as unknown as GenericSearchResultType[]; | ||
const searchResultStore = useSearchResultStore(); | ||
return { searchResultStore, mockdata1, mockdata2 }; | ||
}, | ||
}); | ||
</script> | ||
|
||
<style></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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,6 +150,7 @@ h2 { | |
.category-tags { | ||
flex-wrap: wrap; | ||
margin-top: 20px; | ||
display: flex; | ||
} | ||
.category-tags .tag { | ||
|
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.