Skip to content

Commit ac96bbd

Browse files
committed
Bio
1 parent 2c41c3b commit ac96bbd

File tree

8 files changed

+109
-3
lines changed

8 files changed

+109
-3
lines changed

gatsby-browser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// custom typefaces
2+
import "@fontsource/jetbrains-mono/600.css"
23
import "@fontsource/jetbrains-mono/400.css"
34
import "@fontsource/jetbrains-mono/200.css"
45
// normalize CSS across browsers

src/components/Bio/Bio.module.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
.bio {
2+
display: flex;
3+
flex-direction: column;
4+
align-items: center;
5+
padding: 32px 0;
6+
}
7+
8+
.bio__ring {
9+
display: flex;
10+
border: 2px solid var(--color-primary);
11+
border-radius: 50%;
12+
padding: 2px;
13+
filter: drop-shadow(0px 1px 8px hsla(var(--color-base-primary), 0.56));
14+
margin-bottom: 16px;
15+
}
16+
17+
.bio__ring img{
18+
border-radius: 50%;
19+
}
20+
21+
.bio__name {
22+
filter: drop-shadow(0px 1px 8px hsla(var(--color-base-primary), 0.56));
23+
font-size: 32px;
24+
font-weight: 200;
25+
margin: 0;
26+
margin-bottom: 16px;
27+
}
28+
29+
.bio__profiles {
30+
display: flex;
31+
gap: 12px;
32+
margin-top: 6px;
33+
}

src/components/Bio/Bio.tsx

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import * as React from "react"
2+
import * as styles from "./Bio.module.css"
3+
import { StaticImage } from "gatsby-plugin-image"
4+
import classNames from "classnames"
5+
import Link from "../Link/Link"
6+
7+
const Bio = () => {
8+
return (
9+
<div className={styles.bio}>
10+
<div className={styles["bio__ring"]}>
11+
<StaticImage
12+
quality={100}
13+
src="../../images/icon.png"
14+
alt="Pablo Androetto"
15+
width={120}
16+
height={120}
17+
placeholder="blurred"
18+
/>
19+
</div>
20+
<h1 className={styles["bio__name"]}>Pablo Androetto</h1>
21+
<Link to="mailto:pablo@androetto.dev">pablo@androett.dev</Link>
22+
<div className={styles["bio__profiles"]}>
23+
<Link to="https://github.com/androettop">GitHub</Link>
24+
<Link to="https://linkedin.com/in/androettop">LinkedIn</Link>
25+
</div>
26+
</div>
27+
)
28+
}
29+
30+
export default Bio

src/components/Link/Link.module.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.link {
2+
color: var(--color-primary);
3+
font-weight: 600;
4+
text-decoration: none;
5+
}
6+
.link:hover,
7+
.link:focus,
8+
link:active {
9+
opacity: 0.8;
10+
}
11+
12+
.link::before {
13+
content: "[";
14+
}
15+
16+
.link::after {
17+
content: "]";
18+
}

src/components/Link/Link.tsx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import * as React from "react"
2+
import * as styles from "./Link.module.css"
3+
import { Link as GastbyLink } from "gatsby"
4+
5+
interface LinkProps {
6+
to: string
7+
children: React.ReactNode
8+
}
9+
10+
const Link = ({ to, children }: LinkProps) => {
11+
return <GastbyLink className={styles.link} to={to}>{children}</GastbyLink>
12+
}
13+
14+
export default Link

src/components/Navbar/Navbar.module.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@
2323
font-weight: 200;
2424
}
2525

26+
.navbar li a:hover,
27+
.navbar li a:focus,
28+
.navbar li a:active {
29+
opacity: 0.8;
30+
}
31+
32+
.navbar li a:hover,
33+
.navbar li a:focus,
34+
.navbar li a:active,
2635
.navbar li a.active {
2736
text-decoration: underline;
2837
text-decoration-color: var(--color-primary);
2938
text-underline-offset: 3px;
3039
}
31-

src/global.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ body,
1111

1212
:root {
1313
/* All the palette is based on the primary HSL color */
14-
--color-hue: 287;
14+
--color-hue: 270;
1515
--color-saturation: 100%;
16-
--color-lightness: 50%;
16+
--color-lightness: 60%;
1717

1818
--color-base-primary: var(--color-hue), var(--color-saturation), var(--color-lightness);
1919

src/pages/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { Link, graphql } from "gatsby"
33

44
import Seo from "../components/Seo/Seo"
55
import Layout from "../components/Layout/Layout"
6+
import Bio from "../components/Bio/Bio"
67

78
interface BlogIndexProps {
89
data: {
@@ -57,6 +58,7 @@ const BlogIndex = ({ data, location }: BlogIndexProps) => {
5758

5859
return (
5960
<Layout location={location} title={siteTitle}>
61+
<Bio />
6062
<ol style={{ listStyle: `none` }}>
6163
{posts.map(post => {
6264
const title = post.frontmatter.title || post.fields.slug

0 commit comments

Comments
 (0)