aboutsummaryrefslogtreecommitdiff
path: root/packages/client/src/components/RepositoryHeader.vue
blob: 6b494d6bcd9ceaaf922a061d3f82fd78b764f4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<template>
	<div id="header">
		<BaseBackButton to="/" />
		<div id="header-content">
			<span id="title" class="fs-1">{{ name }}</span>
			<p id="about" class="fs-4">
				{{ description }}
			</p>
		</div>
	</div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

import BaseBackButton from "../components/BaseBackButton.vue";

export default defineComponent({
	name: "RepositoryHeader",
	props: {
		name: {
			type: String,
			required: true
		},
		description: {
			type: String,
			required: false,
			default: null
		}
	},
	components: {
		BaseBackButton
	}
});
</script>

<style lang="scss" scoped>
@use "../scss/colors";
@use "../scss/mixins";
@use "../scss/fonts";

#header {
	@include mixins.header;
	flex-direction: row;
	div {
		display: inline;
	}
}

#header-content {
	margin-left: 1rem;
}

#title {
	font-family: fonts.$title;
	font-weight: 300;
	line-height: 0.6;
}

#about {
	font-weight: 300;
	padding-left: 1px;
	margin: 0px;
	margin-top: 10px;
}
</style>