Skip to content

Commit 2dc9bb8

Browse files
authored
Add border radius in tags (#1116)
1 parent dd63fd5 commit 2dc9bb8

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

app/(app)/articles/_client.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ const ArticlesPage = () => {
158158
</section>
159159
</div>
160160
<section className="col-span-4 hidden lg:block">
161-
<div className="mb-8 mt-2 border border-neutral-300 bg-white text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50">
161+
<div className="mb-8 mt-2 rounded border border-neutral-300 bg-white text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50">
162162
<Link href="/articles/join-our-6-week-writing-challenge-quohtgqb">
163163
<Image
164-
className="w-full"
164+
className="w-full rounded-t"
165165
src={challenge}
166166
alt={`"Codú Writing Challenge" text on white background`}
167167
/>
@@ -191,7 +191,7 @@ const ArticlesPage = () => {
191191
key={title}
192192
// only reason this is toLowerCase is to make url look nicer. Not needed for functionality
193193
href={`/articles?tag=${title.toLowerCase()}`}
194-
className="border border-neutral-300 bg-white px-6 py-2 text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50"
194+
className="rounded border border-neutral-300 bg-white px-6 py-2 text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50"
195195
>
196196
{getCamelCaseFromLower(title)}
197197
</Link>

app/(app)/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ const Home = async () => {
5252
<TrendingPosts session={session} />
5353
</Suspense>
5454
<section className="col-span-5 hidden lg:block">
55-
<div className="mb-8 mt-2 border border-neutral-300 bg-white text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50">
55+
<div className="mb-8 mt-2 rounded border border-neutral-300 bg-white text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50">
5656
<Link href="/articles/join-our-6-week-writing-challenge-quohtgqb">
5757
<Image
58-
className="w-full"
58+
className="w-full rounded-t"
5959
src={challenge}
6060
alt={`"Codú Writing Challenge" text on white background`}
6161
/>

components/ArticlePreview/ArticlePreview.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ const ArticlePreview: NextPage<Props> = ({
9696
};
9797

9898
return (
99-
<article className="my-2 rounded-r border border-l-4 border-neutral-300 border-l-pink-600 bg-white p-4 dark:border-neutral-600 dark:border-l-pink-600 dark:bg-neutral-900">
99+
<article className="relative my-2 rounded-r border border-l-0 border-neutral-300 bg-white p-4 pl-6 dark:border-neutral-600 dark:bg-neutral-900">
100+
<div className="absolute bottom-[-1px] left-0 top-[-1px] flex w-2 justify-between bg-pink-600" />
100101
<div className="flex justify-between">
101102
<div className="mb-4 flex items-center">
102103
<span className="sr-only">{name}</span>

components/PopularTags/PopularTags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default async function PopularTags() {
2121
// only reason this is toLowerCase is to make url look nicer. Not needed for functionality
2222
href={`/articles?tag=${tag.title.toLowerCase()}`}
2323
key={tag.title}
24-
className="border border-neutral-300 bg-white px-6 py-2 text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50"
24+
className="rounded border border-neutral-300 bg-white px-6 py-2 text-neutral-900 dark:border-neutral-600 dark:bg-neutral-900 dark:text-neutral-50"
2525
>
2626
{getCamelCaseFromLower(tag.title)}
2727
</Link>

0 commit comments

Comments
 (0)