@@ -22,71 +22,73 @@ const themeStore = useThemeStore();
2222 </script >
2323
2424<template >
25- <div class =" experience-item-container " >
25+ <div : class =" $style.experienceItemContainer " >
2626 <div
2727 v-if =" index % 2 === 1"
28- class =" visible-on-big-screen "
28+ : class =" $style.visibleOnBigScreen "
2929 />
3030 <ExperienceTimeline
3131 v-if =" index % 2 === 1 "
32- class="visible-on-big-screen "
32+ : class =" $style . visibleOnBigScreen "
3333 />
3434 <a
3535 v-cursor-hover
36- class =" link"
36+ : class =" $style. link"
3737 target =" _blank"
3838 :href =" props.url"
3939 >
4040 <div
41- class =" experience-item"
42- :class =" { 'experience-item-dark-theme': themeStore.isDark,
43- 'experience-item-light-theme': themeStore.isLight }"
41+ :class =" [
42+ $style.experienceItem,
43+ { [$style.experienceItemDarkTheme]: themeStore.isDark,
44+ [$style.experienceItemLightTheme]: themeStore.isLight }
45+ ]"
4446 >
45- <h3 class =" companyName" >{{ props.companyName }}</h3 >
47+ <h3 : class =" $style. companyName" >{{ props.companyName }}</h3 >
4648
47- <p class =" content" >
49+ <p : class =" $style. content" >
4850 {{ props.content }}
4951 </p >
5052
51- <div class =" technologies" >
53+ <div : class =" $style. technologies" >
5254 <TechnologyElement
5355 v-for =" (technology , indexKey ) in props .technologies "
5456 :key =" indexKey "
5557 :element =" technology "
5658 />
5759 </div >
5860
59- <p class =" below" >
61+ <p : class =" $style. below" >
6062 <span >{{ props.profession }}</span >
61- <span class =" job-time " >
62- <span class =" date-range " >{{ dateRange }}</span >
63+ <span : class =" $style.jobTime " >
64+ <span : class =" $style.dateRange " >{{ dateRange }}</span >
6365 <span >{{ period }}</span >
6466 </span >
6567 </p >
6668 </div >
6769 </a >
6870 <ExperienceTimeline
6971 v-if =" index % 2 === 0 "
70- class="visible-on-big-screen "
72+ : class =" $style . visibleOnBigScreen "
7173 />
7274 <div
7375 v-if =" index % 2 === 0"
74- class =" visible-on-big-screen "
76+ : class =" $style.visibleOnBigScreen "
7577 />
7678 </div >
7779</template >
7880
79- <style lang="less" scoped >
81+ <style module lang="less">
8082@import ' @/styles/variables.less' ;
8183
82- .visible-on-big-screen {
84+ .visibleOnBigScreen {
8385 display : none ;
8486}
8587.link {
8688 text-decoration : none ;
8789 color : inherit ;
8890}
89- .experience-item {
91+ .experienceItem {
9092 display : flex ;
9193 flex-direction : column ;
9294 text-align : center ;
@@ -143,7 +145,7 @@ const themeStore = useThemeStore();
143145}
144146
145147@media (min-width : @first-breakpoint ) {
146- .experience-item {
148+ .experienceItem {
147149 .companyName {
148150 max-width : 25rem ;
149151 }
@@ -163,21 +165,21 @@ const themeStore = useThemeStore();
163165}
164166
165167@media (min-width : @second-breakpoint ) {
166- .experience-item-container {
168+ .experienceItemContainer {
167169 display : grid ;
168170 grid-template-columns : 4fr 1fr 4fr ;
169171
170- .visible-on-big-screen {
172+ .visibleOnBigScreen {
171173 display : block ;
172174 }
173175 }
174176}
175177
176- .experience-item-dark-theme {
178+ .experienceItemDarkTheme {
177179 background-color : #dark [background- color - on- element];
178180}
179181
180- .experience-item-light-theme {
182+ .experienceItemLightTheme {
181183 background-color : #light [background- color - on- element];
182184}
183185 </style >
0 commit comments