Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
TjasaZil committed Dec 3, 2022
1 parent c8d59fd commit 2c2561b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
23 changes: 20 additions & 3 deletions src/components/Projects/ContainerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<div
class="mx-auto max-w-sm bg-white border border-neutral-200 rounded-lg shadow-md dark:bg-neutral-800 dark:border-neutral-700 flex flex-col mt-16"
>
<a :href="live" target="_blank">
<img class="rounded-t-lg" :src="image" alt="image" />
<a :href="live" target="_blank" class="img-container">
<img class="rounded-t-lg img" :src="image" alt="image" />
</a>
<div class="p-5">
<a :href="live" target="_blank">
Expand Down Expand Up @@ -98,4 +98,21 @@ export default defineComponent({
});
</script>

<style></style>
<style scoped>
.img {
@apply w-full scale-100 hover:scale-105 transition-all;
}
.img-container {
@apply hover:scale-100 w-full p-0 m-0 overflow-hidden;
}
.img-container .img {
-webkit-transform: scale(1);
transform: scale(1);
-webkit-transition: 0.7s ease-in-out;
transition: 0.7s ease-in-out;
}
.img-container:hover .img {
-webkit-transform: scale(1.3);
transform: scale(1.3);
}
</style>
8 changes: 4 additions & 4 deletions src/components/Shared/NavbarComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
></a>
<a href="#skills"><li>Skills</li></a>
<a href="#projects"><li>Projects</li></a>
<a href="#contact"><li>Contact</li></a>
<li><ThemeToggle /></li>
<!-- <a href="#contact"><li>Contact</li></a>
<li><ThemeToggle /></li>-->
</ul>
</div>
</section>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import ThemeToggle from "./ThemeToggle.vue";
//import ThemeToggle from "./ThemeToggle.vue";
export default defineComponent({
name: "NavbarComponent",
components: { ThemeToggle },
//components: { ThemeToggle },
});
if (
localStorage.getItem("color-theme") === "dark" ||
Expand Down

0 comments on commit 2c2561b

Please sign in to comment.