mirror of
https://github.com/KevinMidboe/seasoned.git
synced 2026-03-11 03:49:07 +00:00
* On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Feat: vite & upgraded dependencies (#100) * On every route change, update local variables from query params * ResultSection is keyed to query to force re-render * Resolved lint warnings * replace webpack w/ vite * update all imports with alias @ and scss * vite environment variables, also typed * upgraded eslint, defined new rules & added ignore comments * resolved linting issues * moved index.html to project root * updated dockerfile w/ build stage before runtime image definition * sign drone config * dynamic colors from poster for popup bg & text colors * more torrents nav button now link elem & better for darker bg * make list item title clickable * removed extra no-shadow eslint rule definitions * fixed movie import * adhere to eslint rules & package.json clean command * remove debounce autocomplete search, track & hault on failure
53 lines
881 B
Vue
53 lines
881 B
Vue
<template>
|
|
<div class="movie-detail">
|
|
<h2 class="title">{{ title }}</h2>
|
|
<span v-if="detail" class="info">{{ detail }}</span>
|
|
|
|
<slot></slot>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
interface Props {
|
|
title: string;
|
|
detail?: string | number;
|
|
}
|
|
|
|
defineProps<Props>();
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
@import "scss/media-queries";
|
|
|
|
.movie-detail {
|
|
margin-bottom: 20px;
|
|
|
|
&:last-of-type {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
@include tablet-min {
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
h2.title {
|
|
margin: 0;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
font-size: 1.2rem;
|
|
color: var(--highlight-color);
|
|
|
|
@include mobile {
|
|
font-size: 1.1rem;
|
|
}
|
|
}
|
|
|
|
span.info {
|
|
font-weight: 300;
|
|
font-size: 1rem;
|
|
letter-spacing: 0.8px;
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
</style>
|