Skip to content

Commit

Permalink
feat: improve expand icons and footer (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
milksense authored Jul 22, 2023
1 parent 3137e60 commit 0ae8a9b
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 5 deletions.
15 changes: 13 additions & 2 deletions src/layout/Footer/FooterHost.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@
align-items: center;
}
@media screen and (max-width: 768px) {
.footer-bottom {
flex-wrap: wrap;
gap: 1rem;
}
}
#logo-name {
font-size: 1.4rem;
color: var(--white);
Expand All @@ -119,7 +126,7 @@
.footer-bottom a {
text-decoration: none;
color: var(--grey-five);
font-weight: 500;
font-weight: 600;
}
li {
Expand All @@ -131,7 +138,7 @@
li a {
color: var(--accent-color);
font-weight: 500;
font-weight: 600;
font-size: 0.95rem;
}
Expand Down Expand Up @@ -193,4 +200,8 @@
}
}
svg {
padding-left: 15px;
padding-right: 15px;
}
</style>
11 changes: 9 additions & 2 deletions src/layout/Footer/FooterSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
<span>
{title}
</span>
<span>{expanded ? '-' : '+'}</span>
<img
src="/icons/{expanded ? 'expand_less' : 'expand_more'}.svg"
alt={expanded ? 'Close' : 'Expand'}
/>
</button>
{#if expanded}
<ul transition:slide|local={{ easing: quintOut, duration: 500 }}>
Expand All @@ -33,7 +36,7 @@
list-style: none;
color: var(--grey-five);
font-size: 0.9rem;
font-weight: 500;
font-weight: 600;
}
ul {
Expand Down Expand Up @@ -70,4 +73,8 @@
display: none;
}
}
img {
height: 24px;
}
</style>
2 changes: 1 addition & 1 deletion src/routes/contributors/ContributorSection.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<img
id="arrow"
style:transform={expanded ? 'rotate(0deg)' : 'rotate(-180deg)'}
src="/icons/arrow.svg"
src="/icons/expand_less.svg"
alt="dropdown"
/>
</div>
Expand Down
1 change: 1 addition & 0 deletions static/icons/expand_less.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions static/icons/expand_more.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0ae8a9b

Please sign in to comment.