Skip to content

Commit

Permalink
Rename avatar to portrait
Browse files Browse the repository at this point in the history
  • Loading branch information
marcbouchenoire committed Jan 25, 2022
1 parent f1a6bdc commit a6a0ae7
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
File renamed without changes
6 changes: 3 additions & 3 deletions packages/site/src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import clsx from "clsx"
import Image from "next/image"
import { ComponentProps } from "react"
import avatar from "../../../public/avatar.jpg"
import portrait from "../../../public/portrait.jpg"
import { useData } from "../../hooks/use-data"

/**
Expand Down Expand Up @@ -39,12 +39,12 @@ export function Footer({ className, ...props }: ComponentProps<"footer">) {
className="inline-flex items-center link"
href="https://marcbouchenoire.com"
>
<span className="mr-2 ml-1.5 w-4 h-4 avatar">
<span className="mr-2 ml-1.5 w-4 h-4 portrait">
<Image
alt="Portrait of Marc Bouchenoire"
height="20"
layout="fixed"
src={avatar}
src={portrait}
width="20"
/>
</span>{" "}
Expand Down
6 changes: 3 additions & 3 deletions packages/site/src/components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import clsx from "clsx"
import { Transition, Variants, motion } from "framer-motion"
import Image from "next/image"
import { ComponentProps } from "react"
import avatar from "../../../public/avatar.jpg"
import portrait from "../../../public/portrait.jpg"
import { useData } from "../../hooks/use-data"
import { useSystemTheme } from "../../hooks/use-system-theme"
import { springiest } from "../../transitions"
Expand Down Expand Up @@ -47,14 +47,14 @@ export function Header({ className, ...props }: ComponentProps<"header">) {
<p className="flex items-center leading-none whitespace-pre">
<a
aria-label="marcbouchenoire.com"
className="mr-0.5 w-5 h-5 hover:opacity-60 transition focusable avatar"
className="mr-0.5 w-5 h-5 hover:opacity-60 transition focusable portrait"
href="https://marcbouchenoire.com"
>
<Image
alt="Portrait of Marc Bouchenoire"
height="20"
layout="fixed"
src={avatar}
src={portrait}
width="20"
/>
</a>{" "}
Expand Down
2 changes: 1 addition & 1 deletion packages/site/src/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ pre[class*="language-"] {
}
}

.avatar {
.portrait {
@apply bg-white inline-block overflow-hidden relative highlight rounded-full ring-offset-2;

box-shadow: 0 0 0 2px theme("colors.white"), 0 0 1px 2px rgb(0 0 0 / 8%),
Expand Down

0 comments on commit a6a0ae7

Please sign in to comment.