Skip to content

Commit ab6f49c

Browse files
committed
Display: Add tool icon background from design #5440
1 parent 7257f35 commit ab6f49c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

assets/css/scss/molecules/_course_tool.scss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
@apply flex flex-col flex-none gap-4 relative w-[120px];
88

99
&__link {
10-
@apply border border-solid border-gray-30 rounded-lg flex place-items-center justify-center shadow-lg w-[7.5rem] h-[7.5rem];
10+
@apply border border-solid border-gray-30 rounded-lg flex place-items-center justify-center shadow-lg w-[7.5rem] h-[7.5rem] relative;
11+
}
12+
13+
&__shadow {
14+
@apply absolute w-16 h-16 text-support-1;
1115
}
1216

1317
&__icon {

assets/vue/components/course/CourseTool.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77
:url="tool.url"
88
class="course-tool__link hover:primary-gradient"
99
>
10+
<svg
11+
class="course-tool__shadow"
12+
viewBox="0 0 117 105"
13+
fill="none"
14+
xmlns="http://www.w3.org/2000/svg"
15+
>
16+
<path
17+
class="fill-current"
18+
d="M104.167 20.2899C104.167 43.3465 116.11 59.1799 116.11 70.2899C116.11 81.3999 109.723 104.733 58.6133 104.733C7.50333 104.733 0 73.3432 0 61.1232C0 3.89987 104.167 -20.5435 104.167 20.2899Z"
19+
/>
20+
</svg>
21+
1022
<span
1123
:class="tool.tool.icon + ' ' + iconCustomClass"
1224
aria-hidden="true"

0 commit comments

Comments
 (0)