Skip to content

Commit c13f27c

Browse files
authored
Merge pull request #22 from anishkn04/feat/hover
feat: Better hover effect for cards
2 parents 61d9573 + 0472c6d commit c13f27c

File tree

4 files changed

+378
-105
lines changed

4 files changed

+378
-105
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: Anish Kumar Neupane
3+
program: BE Software
4+
batch: '2022'
5+
image:
6+
url: https://avatars.githubusercontent.com/u/113242950?v=4
7+
alt: Anish Kumar Neupane
8+
tags:
9+
- Open Source
10+
- Backend
11+
history:
12+
- year: '2024'
13+
position: 'Teacher'
14+
company: 'Radiant Public Boarding School'
15+
description: 'Teaching and learning collaboration, technology, and a lot more!'
16+
17+
social:
18+
linkedin: 'https://www.linkedin.com/in/anishkn04'
19+
github: 'https://github.com/anishkn04'
20+
twitter: 'https://twitter.com/anishkn04'
21+
slogan: Manage everything except grades!
22+
---
23+
24+
Suppose something is written in here!

src/content/profiles/2022/rishav-chapagain.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ history:
1313
- year: '2022'
1414
position: 'Student'
1515
company: 'NCIT'
16-
description: 'Learining Everything tech has to offer'
16+
description: 'Learning Everything tech has to offer'
1717

1818
social:
1919
linkedin: 'https://www.linkedin.com/in/rishav-chapagain'

src/layout/AlumniCardLayout.astro

+9-7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ import { AlumniProfileInfo } from '../utils/types';
44
const { name, program, batch, image, slogan, tags, history, slug } = Astro.props as AlumniProfileInfo;
55
---
66

7-
<div class="bg-gray-800 rounded-lg shadow-lg p-6 hover:shadow-xl transition-shadow duration-300">
7+
<a
8+
class="bg-gray-800 rounded-lg shadow-lg p-6 hover:shadow-2xl border border-transparent hover:border-blue-600 transition-all duration-300 group"
9+
href={`/profiles/${slug}`}
10+
>
811
{image?.url ? (
912
<img
1013
src={image.url}
@@ -41,12 +44,11 @@ const { name, program, batch, image, slogan, tags, history, slug } = Astro.props
4144
</ul>
4245
</div>
4346
<div class="mt-6 text-center">
44-
<a
45-
href={`/profiles/${slug}`}
46-
class="text-blue-500 hover:underline"
47+
<div
48+
class="text-blue-500 group-hover:text-blue-600 transition-all duration-300"
4749
>
48-
See More
49-
</a>
50+
Click to See More
51+
</div>
5052
</div>
5153
</div>
52-
</div>
54+
</a>

0 commit comments

Comments
 (0)