Skip to content

Commit

Permalink
🌓 transition (#271)
Browse files Browse the repository at this point in the history
* remove global transition.

* bump version.

Co-authored-by: Brad Garropy <[email protected]>
  • Loading branch information
bradgarropy and bgarropy-atlassian authored Jan 31, 2022
1 parent 1b6527a commit f0de7f3
Show file tree
Hide file tree
Showing 30 changed files with 90 additions and 74 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bradgarropy.com",
"version": "5.0.2",
"version": "5.0.3",
"description": "🏠 my home on the web",
"keywords": [
"javascript",
Expand Down
6 changes: 1 addition & 5 deletions src/components/Heading/Heading.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,11 @@
display: flex;
box-shadow: none !important;
height: 100%;
padding-right: 1.25rem;
padding: 0rem 1.25rem;
visibility: hidden;
color: var(--text);
}

.icon {
width: 1.25rem;
}

.icon:hover {
color: var(--primary);
}
3 changes: 1 addition & 2 deletions src/components/Heading/Heading.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import HeadingStyles from "components/Heading/Heading.module.css"
import Icon from "components/Icon"
import {FC} from "react"
import slugify from "slugify"

import HeadingStyles from "./Heading.module.css"

type HeadingProps = {
level: 1 | 2 | 3
id?: string
Expand Down
2 changes: 2 additions & 0 deletions src/components/Hero/Hero.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
}

.heroImage {
transition-property: transform, border, background-color;
transition-duration: 300ms;
border-radius: 100%;
border: 7px solid var(--text) !important;
background-color: var(--text);
Expand Down
2 changes: 2 additions & 0 deletions src/components/LatestVideos/LatestVideos.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
}

.thumbnail {
transition-property: box-shadow;
transition-duration: 300ms;
box-sizing: border-box;
border-radius: 0.3rem;
border: 3px solid var(--text) !important;
Expand Down
8 changes: 4 additions & 4 deletions src/components/LatestVideos/LatestVideos.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@ import Image from "next/image"
import {FC} from "react"
import {Video} from "types/video"

import styles from "./LatestVideos.module.css"
import LatestVideosStyles from "./LatestVideos.module.css"

type LatestVideosProps = {
latestVideos: Video[]
}

const LatestVideos: FC<LatestVideosProps> = ({latestVideos}) => {
return (
<div className={styles.latestVideos}>
<div className={LatestVideosStyles.latestVideos}>
{latestVideos.map(latestVideo => {
return (
<Link
key={latestVideo.id}
to={`https://www.youtube.com/watch?v=${latestVideo.id}`}
className={styles.thumbnailLink}
className={LatestVideosStyles.thumbnailLink}
>
<Image
src={latestVideo.thumbnail}
alt={latestVideo.title}
width="1280"
height="720"
className={styles.thumbnail}
className={LatestVideosStyles.thumbnail}
/>
</Link>
)
Expand Down
2 changes: 2 additions & 0 deletions src/components/LinkButton/LinkButton.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.linkButton {
transition-property: color, box-shadow;
transition-duration: 300ms;
display: inline-block;
background: var(--white);
color: var(--black);
Expand Down
9 changes: 4 additions & 5 deletions src/components/LinkButton/LinkButton.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import Link from "@bradgarropy/next-link"
import classnames from "classnames"
import LinkButtonStyles from "components/LinkButton/LinkButton.module.css"
import {FC} from "react"

import styles from "./LinkButton.module.css"

type LinkButtonProps = {
to: string
reverse?: boolean
Expand All @@ -16,9 +15,9 @@ const LinkButton: FC<LinkButtonProps> = ({
disabled = false,
...props
}) => {
const classes = classnames(styles.linkButton, {
[styles.reverse]: reverse,
[styles.disabled]: disabled,
const classes = classnames(LinkButtonStyles.linkButton, {
[LinkButtonStyles.reverse]: reverse,
[LinkButtonStyles.disabled]: disabled,
})

if (disabled) {
Expand Down
2 changes: 2 additions & 0 deletions src/components/Navigation/Navigation.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
}

.link {
transition-property: color;
transition-duration: 300ms;
color: var(--text);
}

Expand Down
14 changes: 7 additions & 7 deletions src/components/Navigation/Navigation.tsx
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
import Link from "@bradgarropy/next-link"
import {FC} from "react"

import styles from "./Navigation.module.css"
import NavigationStyles from "./Navigation.module.css"

const Navigation: FC = () => {
return (
<nav className={styles.navigation}>
<Link className={styles.link} to="/blog">
<nav className={NavigationStyles.navigation}>
<Link className={NavigationStyles.link} to="/blog">
blog
</Link>

<span>|</span>

<Link className={styles.link} to="/now">
<Link className={NavigationStyles.link} to="/now">
now
</Link>

<span>|</span>

<Link className={styles.link} to="/uses">
<Link className={NavigationStyles.link} to="/uses">
uses
</Link>

<span>|</span>

<Link className={styles.link} to="/hire-me">
<Link className={NavigationStyles.link} to="/hire-me">
hire me
</Link>

<span>|</span>

<Link className={styles.link} to="/contact">
<Link className={NavigationStyles.link} to="/contact">
contact
</Link>
</nav>
Expand Down
7 changes: 3 additions & 4 deletions src/components/Newsletter/Newsletter.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import {post} from "@bradgarropy/http"
import NewsletterStyles from "components/Newsletter/Newsletter.module.css"
import {FC, useState} from "react"
import ButtonStyles from "styles/Button.module.css"
import InputStyles from "styles/Input.module.css"

import styles from "./Newsletter.module.css"

const Newsletter: FC = () => {
const [email, setEmail] = useState("")
const [subscribed, setSubscribed] = useState(false)
Expand All @@ -27,11 +26,11 @@ const Newsletter: FC = () => {

return (
<div>
<p className={styles.description}>
<p className={NewsletterStyles.description}>
💻 side projects | 📰 web dev news | ⚡ tech opinions
</p>

<form className={styles.newsletter} onSubmit={onSubmit}>
<form className={NewsletterStyles.newsletter} onSubmit={onSubmit}>
<input
className={InputStyles.input}
placeholder="[email protected]"
Expand Down
4 changes: 4 additions & 0 deletions src/components/Podcast/Podcast.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
}

.host {
transition-property: color, text-shadow;
transition-duration: 300ms;
color: var(--text);
}

Expand All @@ -58,6 +60,8 @@
}

.coverImage {
transition-property: box-shadow;
transition-duration: 300ms;
box-sizing: border-box;
border: 2px solid var(--text) !important;
background-color: var(--text);
Expand Down
17 changes: 8 additions & 9 deletions src/components/Podcast/Podcast.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,32 @@
import Link from "@bradgarropy/next-link"
import PodcastStyles from "components/Podcast/Podcast.module.css"
import Image from "next/image"
import {FC} from "react"
import {Podcast as PodcastType} from "types/podcast"

import styles from "./Podcast.module.css"

type PodcastProps = {
podcast: PodcastType
}

const Podcast: FC<PodcastProps> = ({podcast}) => {
return (
<div className={styles.podcast}>
<Link to={podcast.link} className={styles.podcastLink}>
<div className={PodcastStyles.podcast}>
<Link to={podcast.link} className={PodcastStyles.podcastLink}>
<Image
src={podcast.image}
alt={podcast.title}
width={3000}
height={3000}
className={styles.coverImage}
className={PodcastStyles.coverImage}
/>
</Link>

<div className={styles.description}>
<div className={PodcastStyles.description}>
<span>a weekly podcast about web development hosted by</span>

<div className={styles.hosts}>
<div className={PodcastStyles.hosts}>
<Link
className={styles.host}
className={PodcastStyles.host}
to="https://twitter.com/bradgarropy"
>
brad garropy
Expand All @@ -36,7 +35,7 @@ const Podcast: FC<PodcastProps> = ({podcast}) => {
<span>/</span>

<Link
className={styles.host}
className={PodcastStyles.host}
to="https://twitter.com/RGottleber"
>
richard gottleber
Expand Down
2 changes: 2 additions & 0 deletions src/components/PostMeta/PostMeta.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
}

.postMeta a {
transition-property: color;
transition-duration: 300ms;
color: var(--text);
}

Expand Down
5 changes: 2 additions & 3 deletions src/components/PostMeta/PostMeta.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import Link from "@bradgarropy/next-link"
import PostMetaStyles from "components/PostMeta/PostMeta.module.css"
import {FC} from "react"
import {Post} from "types/post"
import {formatDate} from "utils/date"

import styles from "./PostMeta.module.css"

type PostMetaProps = Pick<Post["frontmatter"], "date" | "topic">

const PostMeta: FC<PostMetaProps> = ({date, topic}) => {
const {name} = topic

return (
<div className={styles.postMeta}>
<div className={PostMetaStyles.postMeta}>
<p>
{formatDate(date)} in <Link to={`/topic/${name}`}>#{name}</Link>
</p>
Expand Down
2 changes: 2 additions & 0 deletions src/components/PostTitle/PostTitle.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
}

.postTitle a {
transition-property: color;
transition-duration: 300ms;
color: var(--text);
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/PostTitle/PostTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Link from "@bradgarropy/next-link"
import {FC} from "react"
import {Post} from "types/post"

import styles from "./PostTitle.module.css"
import PostStyles from "./PostTitle.module.css"

type PostTitleProps = {
title: Post["frontmatter"]["title"]
Expand All @@ -11,7 +11,7 @@ type PostTitleProps = {

const PostTitle: FC<PostTitleProps> = ({title, slug}) => {
return (
<div className={styles.postTitle}>
<div className={PostStyles.postTitle}>
<h1>{slug ? <Link to={`/blog/${slug}`}>{title}</Link> : title}</h1>
</div>
)
Expand Down
2 changes: 2 additions & 0 deletions src/components/Project/Project.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.project {
transition-property: color, box-shadow;
transition-duration: 300ms;
padding: 1.125rem;
border-radius: 0.3rem;
border: 3px solid var(--text);
Expand Down
19 changes: 12 additions & 7 deletions src/components/Project/Project.tsx
Original file line number Diff line number Diff line change
@@ -1,25 +1,30 @@
import Link from "@bradgarropy/next-link"
import ProjectStyles from "components/Project/Project.module.css"
import ProjectTech from "components/ProjectTech"
import {FC} from "react"
import {Project as ProjectType} from "types/project"

import styles from "./Project.module.css"

type ProjectProps = {
project: ProjectType
}

const Project: FC<ProjectProps> = ({project}) => {
return (
<Link className={styles.project} to={`${project.url}#readme`}>
<Link className={ProjectStyles.project} to={`${project.url}#readme`}>
<div>
<h3 className={styles.name}>{project.name}</h3>
<p className={styles.description}>{project.description}</p>
<h3 className={ProjectStyles.name}>{project.name}</h3>

<p className={ProjectStyles.description}>
{project.description}
</p>
</div>

<div className={styles.bottom}>
<div className={ProjectStyles.bottom}>
<ProjectTech project={project} />
<span className={styles.stars}>{`${project.stars}⭐`}</span>

<span
className={ProjectStyles.stars}
>{`${project.stars}⭐`}</span>
</div>
</Link>
)
Expand Down
2 changes: 2 additions & 0 deletions src/components/Section/Section.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.title {
transition-property: text-shadow;
transition-duration: 300ms;
font-size: clamp(3rem, 10vw, 4.5rem);
font-weight: 900;
letter-spacing: -0.2rem;
Expand Down
Loading

1 comment on commit f0de7f3

@vercel
Copy link

@vercel vercel bot commented on f0de7f3 Jan 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.