Skip to content

Commit 5ed6c20

Browse files
committed
Changed icon sizing and added missing label
1 parent 9961b9e commit 5ed6c20

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

src/lib/layout/hexagons/TeamMemberHexagon.stories.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ import { expect } from '@storybook/jest';
33
import TeamMemberHexagon from './TeamMemberHexagon.svelte';
44

55
export default {
6-
title: 'Atoms/Hexagons/TeamMemberHexagon',
6+
title: 'Atoms/Hexagons/Team Member Hexagon',
77
component: TeamMemberHexagon,
88
parameters: {
99
layout: 'centered',
10-
controls: { exclude: ['teamMember'] }
1110
}
1211
};
1312

src/lib/layout/hexagons/TeamMemberHexagon.svelte

+11-10
Original file line numberDiff line numberDiff line change
@@ -30,34 +30,35 @@
3030
{#if teamMember.linkedin}
3131
<a
3232
href={teamMember.linkedin}
33-
class="opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
34-
aria-label="{teamMember.name}'s LinkdIn"
33+
class="h-[15%] w-[15%] opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
34+
aria-label="{teamMember.name}'s LinkedIn"
3535
>
36-
<Icon src={Icons.Linkedin} color="white" size="2.5vw" /></a
36+
<Icon src={Icons.Linkedin} color="white" size="100%" /></a
3737
>
3838
{/if}
3939
{#if teamMember.gitHub}
4040
<a
4141
href={teamMember.gitHub}
42-
class="opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
42+
class="h-[15%] w-[15%] opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
4343
aria-label="{teamMember.name}'s GitHub"
44-
><Icon src={Icons.Github} color="white" size="2.5vw" /></a
44+
><Icon src={Icons.Github} color="white" size="100%" /></a
4545
>
4646
{/if}
4747
{#if teamMember.customWebsites}
4848
{#each teamMember.customWebsites as customWebsite}
4949
<a
5050
href={customWebsite.url}
51-
class="opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
51+
class="h-[15%] w-[15%] opacity-0 transition-all duration-500 ease-out group-hover:opacity-100"
52+
aria-label="{teamMember.name}'s custom website"
5253
>
5354
{#if customWebsite.iconPath}
5455
<img
5556
src={customWebsite.iconPath}
56-
alt="Icon of of a custom social website"
57-
class="h-[2.5vw] w-[2.5w] object-scale-down"
57+
alt="Icon of {teamMember.name}'s custom website"
58+
class="h-full w-full object-cover"
5859
/>
5960
{:else}
60-
<Icon src={Icons.Globe} color="white" size="2.5vw" />
61+
<Icon src={Icons.Globe} color="white" size="100%" />
6162
{/if}
6263
</a>
6364
{/each}
@@ -70,7 +71,7 @@
7071
/>
7172
<img
7273
src={teamMember.photoPath}
73-
alt="NI member {teamMember.name}"
74+
alt="NIAFEUP member {teamMember.name}"
7475
class="z-0 h-full w-full object-cover"
7576
/>
7677
</div>

static/images/previews/facebook.png

-4.38 KB
Loading

0 commit comments

Comments
 (0)