Skip to content

Commit fb62e01

Browse files
authored
Merge pull request #61 from data-preservation-programs/feat-years-roadmap
feat: add years to roadmap
2 parents 16d672c + 5141364 commit fb62e01

File tree

3 files changed

+43
-10
lines changed

3 files changed

+43
-10
lines changed

assets/scss/theme/utilities.scss

+6
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@ $siam: #565D50; // siam
9797
border-radius: toRem(2);
9898
}
9999

100+
@mixin focusOutlineSmall {
101+
outline: 3px solid rgba(255, 197, 130, 0.7);
102+
outline-offset: 4px;
103+
border-radius: toRem(2);
104+
}
105+
100106
@mixin focusBoxShadowLink {
101107
box-shadow: 0 0 0 5px rgba(255, 197, 130, 0.5);
102108
border-radius: 0.125rem;

components/roadmap.vue

+33-10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
</div>
2828
</ZeroButton>
29+
<div class="year" v-html="item.year" />
2930
</div>
3031
</div>
3132

@@ -106,52 +107,74 @@ const cta = computed(() => {
106107
107108
.heading-wrapper {
108109
display: flex;
109-
align-items: center;
110+
flex-direction: column;
110111
margin-top: toRem(25);
112+
@include mini {
113+
position: relative;
114+
z-index: 5;
115+
flex-direction: row;
116+
justify-content: space-between;
117+
align-items: center;
118+
margin-bottom: 0.5rem;
119+
}
120+
.year {
121+
@include h5;
122+
letter-spacing: 0.48px;
123+
margin-top: toRem(15);
124+
margin-left: toRem(37);
125+
@include mini {
126+
margin: 0;
127+
}
128+
}
111129
}
112130
113131
.heading-button {
114132
cursor: pointer;
133+
width: fit-content;
115134
@include transitionDefault;
116135
@include mini {
117136
margin-top: 0;
118-
margin-bottom: 0.5rem;
119137
}
120138
&:hover,
121139
&:focus-visible {
122-
transform: scale(1.15);
140+
transform: scale(1.15) translate(toRem(5), toRem(-1));
123141
.icon {
124142
:deep(path) {
125143
fill: $chardonnay;
126144
}
127145
}
128-
.h2 {
129-
color: $chardonnay;
130-
}
131146
}
132147
&:focus-visible {
133-
@include focusOutline;
148+
@include focusOutlineSmall;
149+
transform: scale(1.15) translate(toRem(5), toRem(-7));
134150
}
135151
.heading {
136152
display: flex;
137-
align-items: center;
138153
}
139154
.icon {
140-
width: toRem(41);
141-
height: toRem(41);
155+
width: toRem(23);
156+
height: toRem(23);
142157
margin-right: toRem(14);
143158
transition: 300ms cubic-bezier(0.33, 0.2, 0.41, 0.99);
144159
@include mini {
145160
width: toRem(18);
146161
height: toRem(18);
147162
margin-right: toRem(7);
163+
transform: translateY(toRem(-1.5));
148164
}
149165
:deep(path) {
150166
transition: inherit;
151167
}
152168
}
153169
.h2 {
170+
line-height: 1;
154171
@include transitionDefault;
172+
@include medium {
173+
line-height: 1.4;
174+
}
175+
@include tiny {
176+
line-height: 1;
177+
}
155178
}
156179
}
157180

content/core/index.json

+4
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,7 @@
420420
"items": [
421421
{
422422
"heading": "September",
423+
"year": "2023",
423424
"milestones": [
424425
{
425426
"title": "Milestone 1",
@@ -433,6 +434,7 @@
433434
},
434435
{
435436
"heading": "October",
437+
"year": "2023",
436438
"milestones": [
437439
{
438440
"title": "Milestone 3",
@@ -442,6 +444,7 @@
442444
},
443445
{
444446
"heading": "November",
447+
"year": "2023",
445448
"milestones": [
446449
{
447450
"title": "Milestone 4",
@@ -451,6 +454,7 @@
451454
},
452455
{
453456
"heading": "December",
457+
"year": "2023",
454458
"milestones": [
455459
{
456460
"title": "Milestone 5",

0 commit comments

Comments
 (0)