Skip to content

Commit

Permalink
fix styles
Browse files Browse the repository at this point in the history
  • Loading branch information
h.u.g.u.rp committed Nov 4, 2023
1 parent 9164fcd commit bba0f56
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 17 deletions.
22 changes: 13 additions & 9 deletions src/components/ClientLink.astro
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,31 @@ const { image, lastItem, title, ...props } = Astro.props;
span {
display: inline-block;
text-decoration: none;
position: relative;
cursor: pointer;
cursor: help;
font-style: italic;
}
span:not(.lastItem) {
margin-right: calc(var(--size) / 4);
}

img {
display: none;
position: absolute;
bottom: 0;
left: 0;
top: 100%;
top: 0;
left: 0;
transform: translate(-50%, 0);
width: max-content;
max-width: 20rem;
z-index: 1;
width: 100%;
height: 100%;
z-index: -1;
opacity: 0;
transition: opacity 222ms ease-in-out;
object-fit: cover;
}
span:hover {
text-decoration: underline;
}

span:hover img {
display: block;
opacity: 1;
}
</style>
2 changes: 1 addition & 1 deletion src/content/clients/goodpatch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Goodpatch"
description: "goodpatch"
heroImage: "/goodpatch.jpg"
heroImage: "goodpatch.jpg"
---
2 changes: 1 addition & 1 deletion src/content/clients/holoplot.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Holoplot"
description: "Holoplot audio"
heroImage: "/holoplot.jpg"
heroImage: "holoplot.jpg"
---

This gig was great!
2 changes: 1 addition & 1 deletion src/content/clients/renault-nissan.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Renault-nissan"
description: "renault nissan"
heroImage: "/renault-nissan.jpeg"
heroImage: "renault-nissan.jpeg"
---
2 changes: 1 addition & 1 deletion src/content/clients/tourradar.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Tourradar"
description: "tourradar"
heroImage: "/tourradar.jpg"
heroImage: "tourradar.jpg"
---
2 changes: 1 addition & 1 deletion src/content/clients/zalando.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
title: "Zalando"
description: "Zalando retails"
heroImage: "/zalando.jpg"
heroImage: "zalando.jpg"
---
12 changes: 9 additions & 3 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@ and lead designer positions at
</article>
</main>
<footer>
Need some design work, strategy or management help?
<a href="mailto:sylvain.maretto@gmail.com">email me</a>, or <a href="https://linkedin.com/in/sylvain-maretto">linkedin</a>
<article>
Need some design work, strategy or management help?
</br>
Find me by <a href="mailto:sylvain.maretto@gmail.com">email me</a>, or <a href="https://linkedin.com/in/sylvain-maretto">linkedin</a>.
</article>
</footer>
</body>
</html>
Expand All @@ -45,14 +48,17 @@ and lead designer positions at
main {
flex-grow: 1;
}
main article {
article {
display: inline;
}
main,
footer {
padding: var(--size);
font-size: 1.5rem;
}
article {
background-color: var(--color-background);
}
a {
text-decoration: none;
color: var(--color-text);
Expand Down

0 comments on commit bba0f56

Please sign in to comment.