Skip to content

Commit

Permalink
Merge pull request #172 from ChtiJS/refacto/link
Browse files Browse the repository at this point in the history
refactor(link):change styles on links
  • Loading branch information
nfroidure authored Dec 22, 2023
2 parents 7c7ae54 + 0701f32 commit ca0cc8b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
6 changes: 6 additions & 0 deletions src/app/credits/credits.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,9 @@
border-radius: 50px;
box-shadow: 5px 5px 2px 1px #c1a008;
}

.links {
display: flex;
gap: var(--gutter);
justify-content: flex-start;
}
9 changes: 5 additions & 4 deletions src/app/credits/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export default async function Page() {
? entry.contributions + ' contribution'
: entry.contributions + ' contributions'}
</Paragraph>
<Paragraph>
<Paragraph className={styles.links}>
{entry.blog ? (
<>
<Anchor
Expand All @@ -100,7 +100,7 @@ export default async function Page() {
}
title={`Se rendre sur le blog de ${entry.name}`}
>
📰Blog
📰 Blog
</Anchor>{' '}
</>
) : null}
Expand All @@ -110,16 +110,17 @@ export default async function Page() {
href={'https://twitter.com/' + entry.twitter_username}
title={`Se rendre sur le profil Twitter de ${entry.name}`}
>
📲Twitter
📲 Twitter
</Anchor>{' '}
</>
) : null}

{
<Anchor
href={entry.html_url as string}
title={`Se rendre sur le profil GitHub de ${entry.name}`}
>
💻GitHub
💻 GitHub
</Anchor>
}
</Paragraph>
Expand Down
2 changes: 1 addition & 1 deletion src/app/layout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
align-content: flex-end;
background: var(--light);
}
.contents :first-child {
.contents > :first-child {
flex: 1;
}
@media screen and (max-width: $CSS_BREAKPOINT_END_S) {
Expand Down

0 comments on commit ca0cc8b

Please sign in to comment.