Skip to content

Commit

Permalink
updated our service view
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagameow committed Jul 22, 2024
1 parent 1dc4ec7 commit de48692
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/views/home-view/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import HomeViewDesktop from './HomeViewDesktop.vue';
</script>

<template>
<main>
<main class="home-view">
<p class="home-view__heading">
Enhanced connectivity, automation, adaptive and learning systems, are
driving the digital transformation of enterprises that delivers them
Expand Down
40 changes: 26 additions & 14 deletions src/views/services-view/ServicesViewCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,25 @@ const activate = () => {

<template>
<div class="services-view-cards__card">
<div
class="services-view-cards__card-heading"
@click="activate"
>
<component
:is="cubePartsIcons[service.type]"
v-if="service.type"
/>
<div class="services-view-cards__card-heading">
<div
class="services-view-cards__card-title-container"
:class="`services-view-cards__card-title-container--${service.type}`"
class="services-view-cards__card-heading-container"
tabindex="0"
@click="activate"
@keydown.enter.space="activate"
>
<h2 class="services-view-cards__card-title">
{{ service.title }}
</h2>
<component
:is="cubePartsIcons[service.type]"
v-if="service.type"
/>
<div
class="services-view-cards__card-title-container"
:class="`services-view-cards__card-title-container--${service.type}`"
>
<h2 class="services-view-cards__card-title">
{{ service.title }}
</h2>
</div>
</div>
</div>
<div
Expand All @@ -51,7 +55,6 @@ const activate = () => {
.services-view-cards__card {
display: flex;
gap: 20px;
cursor: pointer;
flex-direction: column;
&:nth-child(odd) {
Expand All @@ -61,9 +64,18 @@ const activate = () => {
.services-view-cards__card-heading {
display: flex;
}
.services-view-cards__card-heading-container {
display: flex;
transition: transform 300ms ease-out;
gap: 10px;
align-items: center;
cursor: pointer;
&:hover {
transform: scale(1.05);
}
}
.services-view-cards__card-title-container {
Expand Down

0 comments on commit de48692

Please sign in to comment.