Skip to content

Commit 0e4c447

Browse files
committed
Fixed some CSS issues, added gradient overlay for link previews
1 parent bbbdc02 commit 0e4c447

7 files changed

Lines changed: 16 additions & 11 deletions

File tree

components/CustomLink.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export default function CustomLink({ children, href }) {
7979
alt={children}
8080
/>
8181
) : (
82-
<span className="flex items-center justify-center w-56 h-40 bg-white rounded-md shadow-lg">
82+
<span className="flex items-center justify-center w-56 h-40 bg-white rounded-md shadow-lg text-slate-800">
8383
Loading...
8484
</span>
8585
)}

components/TagList.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export function TagList({ tag, tags }) {
4343
</ul>
4444

4545
{/* gradient fades */}
46-
<div className="absolute w-12 h-16 top-[40px] left-0 bg-gradient-to-r from-white dark:from-dark"></div>
47-
<div className="absolute w-12 h-16 top-[40px] right-0 bg-gradient-to-l from-white dark:from-dark"></div>
46+
<div className="absolute w-12 h-16 top-[50px] left-0 bg-gradient-to-r from-white dark:from-dark"></div>
47+
<div className="absolute w-12 h-16 top-[50px] right-0 bg-gradient-to-l from-white dark:from-dark"></div>
4848
</div>
4949
);
5050
}

pages/_document.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export default function Document(props) {
66
<Html lang="en">
77
<Head>
88
<link href="/static/favicons/favicon.ico" rel="shortcut icon" />
9-
<link href="/static/favicons/site.webmanifest" rel="manifest" />
109
<link
1110
href="/static/favicons/apple-touch-icon.png"
1211
rel="apple-touch-icon"

pages/about.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ export default function About({ recentArticles, workTimeline }) {
4747
<div className="hidden md:block md:float-left">
4848
<Image
4949
className="md:mr-8"
50-
src="https://res.cloudinary.com/braydoncoyer/image/upload/v1667839711/family_photo.jpg"
50+
src="https://res.cloudinary.com/braydoncoyer/image/upload/v1670716662/family_photo_scs57f.jpg"
5151
placeholder="blur"
52-
blurDataURL="https://res.cloudinary.com/braydoncoyer/image/upload/v1667839711/family_photo.jpg"
52+
blurDataURL="https://res.cloudinary.com/braydoncoyer/image/upload/v1670716662/family_photo_scs57f.jpg"
5353
width={340}
5454
height={448}
5555
alt={'article cover'}

pages/api/link-preview.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@ export default async function handler(req, res) {
44
try {
55
let { url } = req.query;
66
const { status, data } = await mql(url, {
7-
screenshot: true
7+
screenshot: true,
8+
// @ts-ignore
9+
overlay: {
10+
background:
11+
'linear-gradient(225deg, #F472B6 0%, #7A96FC 50%, #26F0C0 100%)',
12+
browser: 'dark'
13+
}
814
});
915
res.status(200).json({
1016
image: data?.screenshot?.url

pages/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import { useRouter } from 'next/router';
1414
export default function Home({ recentArticles }) {
1515
const { push } = useRouter();
1616
return (
17-
<Container showCircles>
17+
<Container>
1818
<div>
1919
<div>
2020
<div className="grid items-center grid-cols-1 mt-12 text-center md:mt-24 md:text-left md:grid-cols-6">
2121
<h1 className="order-2 col-span-5 text-4xl leading-tight md:leading-normal md:order-1 sm:text-5xl">
2222
I'm{' '}
2323
<span className="text-teal-500 dark:text-teal-400">Braydon</span>.
24-
I'm a developer, blogger and designer working at LogicGate.
24+
I'm a developer, blogger and speaker working at LogicGate.
2525
</h1>
2626
<div className="order-1 md:order-2">
2727
<Image
@@ -36,7 +36,7 @@ export default function Home({ recentArticles }) {
3636
/>
3737
</div>
3838
</div>
39-
<div className="space-y-6 md:space-y-0 md:space-x-4">
39+
<div className="space-y-6 text-center md:text-left md:space-y-0 md:space-x-4">
4040
<Button
4141
buttonType={ButtonType.PRIMARY}
4242
onButtonClick={() => push('/blog')}

public/rss/feed.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<description><![CDATA[Braydon Coyer]]></description>
55
<link>https://braydoncoyer.dev</link>
66
<generator>RSS for Node</generator>
7-
<lastBuildDate>Sat, 10 Dec 2022 22:13:42 GMT</lastBuildDate>
7+
<lastBuildDate>Sat, 10 Dec 2022 23:49:57 GMT</lastBuildDate>
88
<atom:link href="https://braydoncoyer.dev/rss.xml" rel="self" type="application/rss+xml"/>
99
<item>
1010
<title><![CDATA[How To Create an Animated Loading Spinner with Tailwind CSS]]></title>

0 commit comments

Comments
 (0)