Added Social Icons, updated cards, updated data, n e w e g g
This commit is contained in:
parent
eb523961c1
commit
965e837293
12 changed files with 47 additions and 14 deletions
src
|
@ -2,33 +2,57 @@
|
|||
export interface Props {
|
||||
site: string
|
||||
link: string
|
||||
image: string
|
||||
}
|
||||
|
||||
const { link, site } = Astro.props
|
||||
const { image, link, site } = Astro.props
|
||||
const icon: string = `background-image: url('/social/${image}.webp')`
|
||||
---
|
||||
|
||||
<a href={link} target="_blank" rel="noopener noreferrer">
|
||||
<article class="contact do-hover">
|
||||
<h2>{site}</h2>
|
||||
<div style={icon}>
|
||||
<h2>{site}</h2>
|
||||
</div>
|
||||
</article>
|
||||
</a>
|
||||
|
||||
<style>
|
||||
article > h2 {
|
||||
article:hover h2 {
|
||||
color: white;
|
||||
background-color: var(--c-darkgray);
|
||||
font-size: 18px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
line-height: normal;
|
||||
vertical-align: center;
|
||||
line-height: 150%;
|
||||
width: 95%;
|
||||
border-radius: 5px;
|
||||
opacity: 90%;
|
||||
}
|
||||
|
||||
article h2 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
article div {
|
||||
background-size: contain;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
article {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-color: var(--c-darkergray);
|
||||
border-color: var(--c-darkgray);
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
transition: transform var(--speed) var(--ease);
|
||||
height: 128px;
|
||||
width: 128px;
|
||||
height: auto;
|
||||
width: auto;
|
||||
line-height: 128px;
|
||||
}
|
||||
a:hover {
|
||||
|
|
|
@ -50,6 +50,9 @@
|
|||
<a href="https://www.neshweb.net" target="_blank" rel="noopener noreferrer"
|
||||
>his site here</a
|
||||
>
|
||||
<div class="sticky-image-wrapper">
|
||||
<img src="/archbtw.png" alt="" />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue