This repository was archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathResumeSegmentEntry.vue
149 lines (147 loc) · 3.15 KB
/
ResumeSegmentEntry.vue
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<template>
<li class="resume-segment-entry">
<div
v-if="from || to || location"
class="resume-segment-entry-information"
>
<div
v-if="from || to"
class="resume-segment-entry-information-date"
>
<span
v-if="from"
class="resume-segment-entry-information-from"
v-text="from"
/>
<span
v-if="to"
class="resume-segment-entry-information-to"
v-text="to"
/>
</div>
<div
v-if="location"
class="resume-segment-entry-information-location"
v-text="location"
/>
</div>
<h3 class="resume-segment-entry-title">
<span
v-if="title"
v-text="title"
/>
<span
v-if="position"
v-text="positionInBrackets"
/>
</h3>
<p
v-if="description"
class="resume-segment-entry-description"
v-html="description"
/>
</li>
</template>
<script>
export default {
name: 'ResumeSegmentEntry',
props: {
title: {
required: true,
type: String
},
description: {
default: '',
type: String
},
position: {
default: '',
type: String
},
location: {
default: '',
type: String
},
from: {
default: '',
type: String
},
to: {
default: '',
type: String
}
},
computed: {
positionInBrackets () {
return ` (${this.position})`
}
}
}
</script>
<style lang="sass">
.resume-segment-entry
position: relative
display: flex
flex-flow: column wrap
justify-content: flex-start
align-items: flex-start
margin: 0 0 0 1rem
padding: 0 0 1rem 0
width: 100%
&:before
content: ''
position: absolute
left: -13px
background: var(--color-accent)
width: 3px
height: 100%
&:after
content: ''
position: absolute
left: -17px
top: 18px
width: .75rem
height: .75rem
background: var(--color-accent)
border: 2px solid var(--color-background)
border-radius: 50%
&:first-of-type
&:before
border-radius: var(--border-radius) var(--border-radius) 0 0
&:last-of-type
padding: 0
&:before
border-radius: 0 0 var(--border-radius) var(--border-radius)
>.resume-segment-entry-information
display: flex
flex-direction: row
flex-wrap: nowrap
font-size: .8rem
font-style: italic
@media screen and (max-width: 240mm)
flex-direction: column
margin: 0 0 .25rem 0
.resume-segment-entry-information-date
display: flex
flex-direction: row
flex-wrap: nowrap
.resume-segment-entry-information-from
margin: 0 .15rem 0 0
&::after
content: '-'
margin: 0 0 0 .15rem
.resume-segment-entry-information-to
margin: 0 .15rem 0 0
&::after
content: '•'
margin: 0 0 0 .25rem
@media screen and (max-width: 240mm)
content: ''
margin: 0
>.resume-segment-entry-title
line-height: 1.5
margin: 0 0 .25rem 0
>.resume-segment-entry-description
width: 100%
font-size: .9rem
</style>