Added "Open in new tab" icon

This commit is contained in:
Neshura 2023-03-15 22:17:51 +01:00
parent 94223fd80c
commit e5dd399a07
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 15 additions and 1 deletions
components/styles/cards

View file

@ -16,6 +16,7 @@ const Card = styled.div`
flex-direction: column;
align-items: center;
width: 30rem;
max-width: 90%;
min-height: 10rem;
max-height: 15rem;
margin-bottom: 2rem;
@ -58,6 +59,16 @@ const CardTitleIcon = styled.div`
height: 1.5rem;
`;
const OpenInNewTab = styled.div`
filter: invert();
position: relative;
object-fit: contain;
margin: 0.3rem;
margin-left: 0.5rem;
aspect-ratio: 1;
height: 1.2rem;
`
const CardTitleIconMirror = styled.div`
height: 1.5rem;
aspect-ratio: 1;
@ -155,7 +166,9 @@ const CardTitle = ({ content, href }: { content: Service, href: string }) => {
<CardTitleText>{content.name}</CardTitleText>
{
content.icon ? (
<CardTitleIconMirror />
<OpenInNewTab>
<Image alt="open" src={"/icons/open-new-window.svg"} fill />
</OpenInNewTab>
) : (<></>)
}
</CardTitleLink>