Skip to content

Commit bf6e527

Browse files
committed
added lottie replacement for index.html
1 parent 160160a commit bf6e527

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

blog.lottie

110 KB
Binary file not shown.

index.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Roboto:wght@400;600;700&display=swap" rel="stylesheet">
1111
<link rel="stylesheet" href="style.css">
12+
<script type="module" src="https://unpkg.com/@dotlottie/player-component@latest/dist/dotlottie-player.mjs" defer></script>
1213

1314
</head>
1415
<body>
@@ -22,15 +23,15 @@ <h1>Alessandro Trysh</h1>
2223
</header>
2324
<main class="card-container" id="main-content">
2425
<a href="./portfolio/" class="card">
25-
<span class="emoji-icon" aria-hidden="true">💼</span>
26+
<dotlottie-player class="lottie-icon" src="./portfolio.lottie" background="transparent" speed="1" loop autoplay aria-hidden="true"></dotlottie-player>
2627
<h2 data-i18n="home.cardPortfolio">Portfolio</h2>
2728
</a>
2829
<a href="./blog/" class="card">
29-
<span class="emoji-icon" aria-hidden="true">✍️</span>
30+
<dotlottie-player class="lottie-icon" src="./blog.lottie" background="transparent" speed="1" loop autoplay aria-hidden="true"></dotlottie-player>
3031
<h2 data-i18n="home.cardBlog">Blog</h2>
3132
</a>
3233
<a href="./lab/" class="card">
33-
<span class="emoji-icon" aria-hidden="true">🧪</span>
34+
<dotlottie-player class="lottie-icon" src="./lab.lottie" background="transparent" speed="1" loop autoplay aria-hidden="true"></dotlottie-player>
3435
<h2 data-i18n="home.cardLab">Lab</h2>
3536
</a>
3637
</main>

lab.lottie

10.6 KB
Binary file not shown.

portfolio.lottie

32 KB
Binary file not shown.

style.css

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,15 @@ body {
8282
color: var(--primary-color);
8383
}
8484

85-
.emoji-icon {
86-
font-size: 4rem;
85+
.lottie-icon {
86+
width: 120px;
87+
height: 120px;
8788
margin-bottom: 1rem;
8889
transition: transform 0.3s ease-in-out;
8990
}
9091

91-
.card:hover .emoji-icon {
92-
transform: scale(1.2);
92+
.card:hover .lottie-icon {
93+
transform: scale(1.05);
9394
}
9495

9596
.skip-link {

0 commit comments

Comments
 (0)