Skip to content

Commit f7a5f68

Browse files
committed
Make roundedness more consistent
1 parent 6fe4783 commit f7a5f68

File tree

17 files changed

+21
-21
lines changed

17 files changed

+21
-21
lines changed

Diff for: src/components/content/CodeBlock/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const CodeBlock: React.FC<CodeBlockProps> = ({ lang, children, className, marked
8484
}, [codeLines, showLines, linesToMark]);
8585

8686
const computedClassName = useMemo(() => {
87-
return twMerge("bg-neutral-800 rounded-lg p-4 text-base relative group/cb", className);
87+
return twMerge("bg-neutral-800 rounded-2xl p-4 text-base relative group/cb", className);
8888
}, [className]);
8989

9090
return (
@@ -133,7 +133,7 @@ const CopyCode = ({ codeLines }: CopyCodeProps) => {
133133
}, [codeLines]);
134134

135135
const copyButtonClassName = useMemo(() => {
136-
return twMerge("relative text-white opacity-30 bg-neutral-600 p-2 rounded-lg absolute top-2 right-2 group-hover/cb:opacity-100 hover:bg-neutral-500", codeLines.length === 1 ? "top-1/2 -translate-y-1/2" : "");
136+
return twMerge("relative text-white opacity-30 bg-neutral-600 p-2 rounded-2xl absolute top-2 right-2 group-hover/cb:opacity-100 hover:bg-neutral-500", codeLines.length === 1 ? "top-1/2 -translate-y-1/2" : "");
137137
}, []);
138138

139139
return (

Diff for: src/components/controls/Button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { RequiredKeys } from "@/types/utility";
77
import ArrowPathIcon from "@heroicons/react/24/solid/ArrowPathIcon";
88
import fadeAnim from "@/animations/fade";
99

10-
export const style = cva("relative flex items-center justify-center transition-colors shadow-sm px-3 py-2 gap-2 rounded-full border-2", {
10+
export const style = cva("relative flex items-center justify-center transition-colors shadow-sm px-3 py-2 gap-2 rounded-2xl border-2", {
1111
variants: {
1212
color: {
1313
white: "bg-neutral-200 hover:bg-neutral-50 border-neutral-400 text-neutral-900",

Diff for: src/components/controls/Form.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const Form = ({
1515
children,
1616
successChildren,
1717
success,
18-
successClassName = "p-8 my-8 text-xl font-semibold rounded-md border-2 border-green-600 w-fit mx-auto image-dots bg-green-400 from-green-600",
18+
successClassName = "p-8 my-8 text-xl font-semibold rounded-2xl border-2 border-green-600 w-fit mx-auto image-dots bg-green-400 from-green-600",
1919
successProps,
2020
oneTime,
2121
...props

Diff for: src/components/controls/Input.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge";
44

55
import { RequiredKeys } from "@/types/utility";
66

7-
export const style = cva("w-full rounded-full py-2 px-3 border-2", {
7+
export const style = cva("w-full rounded-2xl py-2 px-3 border-2", {
88
variants: {
99
color: {
1010
primary: "border-primary bg-transparent placeholder:text-fill-contrast/75",

Diff for: src/components/controls/Select.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import ChevronDownIcon from "@heroicons/react/24/solid/ChevronDownIcon";
1212
export const style = inputStyle;
1313
export type VariantProps = InputVariantProps;
1414

15-
export const containerStyle = cva("absolute border-2 left-1/2 -translate-x-1/2 top-full rounded-lg min-w-fit w-full overflow-hidden translate-y-1 z-50", {
15+
export const containerStyle = cva("absolute border-2 left-1/2 -translate-x-1/2 top-full rounded-2xl min-w-fit w-full overflow-hidden translate-y-1 z-50", {
1616
variants: {
1717
color: {
1818
primary: "border-primary bg-fill text-fill-contrast",

Diff for: src/components/layout/Footer.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import Logo from "@/assets/images/brand/logo-200x200.webp";
55
const Footer = () => {
66
return (
77
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-primary-contrast">
8-
<footer className="flex flex-col w-full gap-4 p-8 border-2 max-w-7xl rounded-t-md bg-primary image-dots from-primary-light border-primary-light">
9-
<div className="flex flex-col items-center gap-2 p-2 rounded-md bg-white/20 sm:flex-row backdrop-blur-[1.25px]">
8+
<footer className="flex flex-col w-full gap-4 p-8 border-2 border-b-0 max-w-7xl rounded-t-2xl bg-primary image-dots from-primary-light border-primary-light">
9+
<div className="flex flex-col items-center gap-2 p-2 rounded-2xl bg-white/20 sm:flex-row backdrop-blur-[1.25px]">
1010
<div className="flex items-center gap-2">
1111
<img
1212
className="w-12 h-12"

Diff for: src/components/layout/Header.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const Header = () => {
5151
</Button>
5252
<div
5353
ref={itemsContainerRef}
54-
className="absolute flex flex-col bg-fill gap-0 p-4 top-full inset-x-4 rounded-md border-2 border-primary z-10 data-[expanded='false']:hidden md:data-[expanded='false']:flex md:flex-row md:items-center md:p-0 md:border-none md:static md:bg-transparent md:gap-12"
54+
className="absolute flex flex-col bg-fill gap-0 p-4 top-full inset-x-4 rounded-2xl border-2 border-primary z-10 data-[expanded='false']:hidden md:data-[expanded='false']:flex md:flex-row md:items-center md:p-0 md:border-none md:static md:bg-transparent md:gap-12"
5555
id="header-items"
5656
data-expanded={open}
5757
>

Diff for: src/components/layout/NavDropdown.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const NavDropdown = ({ summary, children }: NavDropdownProps) => {
5656
height="1em"
5757
/>
5858
</summary>
59-
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 border-2 rounded-lg bg-fill text-fill-contrast group/dropdown border-primary md:w-fit" data-in-group>
59+
<div ref={containerRef} className="absolute inset-x-0 flex flex-col gap-2 px-4 py-2 border-2 rounded-2xl bg-fill text-fill-contrast group/dropdown border-primary md:w-fit" data-in-group>
6060
{children}
6161
</div>
6262
</details>

Diff for: src/components/pages/about/Member.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import LinkButton from "@/components/controls/LinkButton";
33

44
const Member = ({ image, fullName, title, links }: IMember) => (
55
<li
6-
className="flex flex-col items-center w-full max-w-full gap-2 p-4 border-2 rounded-md border-primary-light motion-safe:transition-all sm:p-6 md:w-fit"
6+
className="flex flex-col items-center w-full max-w-full gap-2 p-4 border-2 rounded-2xl border-primary-light motion-safe:transition-all sm:p-6 md:w-fit"
77
aria-label="Member"
88
>
99
<div className="flex flex-col items-center max-w-full gap-2 sm:flex-row md:flex-col">

Diff for: src/components/pages/about/Project.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Project = ({ title, description, thumbnail, thumbnailAlt, href, linkText,
1616
title: thumbnailAlt,
1717
html: <>
1818
<img
19-
className="object-contain w-full h-full rounded-lg aspect-video"
19+
className="object-contain w-full h-full rounded-2xl aspect-video"
2020
alt={thumbnailAlt}
2121
src={thumbnail.src}
2222
width={thumbnail.width}
@@ -37,7 +37,7 @@ const Project = ({ title, description, thumbnail, thumbnailAlt, href, linkText,
3737
</p>
3838
<button onClick={onImageClick}>
3939
<img
40-
className="border-2 rounded-lg aspect-video border-primary"
40+
className="border-2 rounded-2xl aspect-video border-primary"
4141
alt={thumbnailAlt}
4242
src={thumbnail.src}
4343
width={thumbnail.width}

Diff for: src/components/pages/blog/ArticleBrief.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const ArticleBrief = ({ title, thumbnail, thumbnailAlt, imgLoading, readtime, te
5050

5151
return (
5252
<motion.li
53-
className="origin-center flex flex-col flex-1 gap-4 mx-0 rounded-lg motion-safe:transition-[margin-inline] motion-safe:duration-500 sm:mx-16 md:mx-0 image-dots from-fill-light border-2 border-primary overflow-hidden"
53+
className="origin-center flex flex-col flex-1 gap-4 mx-0 rounded-2xl motion-safe:transition-[margin-inline] motion-safe:duration-500 sm:mx-16 md:mx-0 image-dots from-fill-light border-2 border-primary overflow-hidden"
5454
variants={LIST_ANIM}
5555
initial="in"
5656
animate="anim"

Diff for: src/components/pages/blog/post/ArticleComponents.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const A = {
3333

3434
Img: ({ className, loading = "lazy", ...props }: React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>) => {
3535
const computedClassName = useMemo(
36-
() => twMerge("rounded-lg", className),
36+
() => twMerge("rounded-2xl", className),
3737
[className]
3838
);
3939

Diff for: src/components/pages/front/Mission.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export interface MissionProps extends IMission {
77

88
const Mission = ({ title, image, imageAlt, text }: MissionProps) => {
99
return (
10-
<li className="flex flex-col items-center flex-1 gap-4 p-0 -mx-4 rounded-lg border-primary motion-safe:transition-[margin_padding_border] sm:mx-0 lg:p-4 border-2 xl:p-8">
10+
<li className="flex flex-col items-center flex-1 gap-4 p-0 -mx-4 rounded-2xl border-primary motion-safe:transition-[margin_padding_border] sm:mx-0 lg:p-4 border-2 xl:p-8">
1111
<Heading.H3 className="lg:h-[5ex] motion-safe:transition-all">
1212
{title}
1313
</Heading.H3>

Diff for: src/pages/404.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const NotFound: Page = ({ pathname }) => {
2626
]} />
2727
</Head>
2828
<main className="flex items-center justify-center flex-1 w-full pb-8" aria-labelledby="not-found">
29-
<div className="flex flex-col gap-2 p-8 text-center border-2 rounded-md border-primary">
29+
<div className="flex flex-col gap-2 p-8 text-center border-2 rounded-2xl from-fill-light image-dots border-primary">
3030
<Heading.H1 id="not-found">
3131
Not Found.
3232
</Heading.H1>

Diff for: src/pages/blog/[pid]/[slug].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const BlogPostPage: Page<BlogPostPageProps> = ({ article: { author, tags, thumbn
7070
<section aria-label="Main article content" className="flex flex-col gap-8 w-full items-center">
7171
<img
7272
aria-label="Article Thumbnail"
73-
className="rounded-lg"
73+
className="rounded-2xl"
7474
loading="eager"
7575
src={thumbnail.src}
7676
width={thumbnail.width}

Diff for: src/pages/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ const FrontPage: Page = ({ pathname }) => {
7878
/>
7979
</div>
8080
</section>
81-
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center border-2 rounded-lg xl:flex-row text-primary-contrast image-dots from-primary-light border-primary-light bg-primary">
82-
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-lg text-primary-contrast bg-white/20 backdrop-blur-[1.25px] xl:p-0 xl:w-1/2">
81+
<section aria-label="introduction" className="flex flex-col gap-12 p-8 text-lg -mx-8 md:mx-0 motion-safe:transition-[margin] text-center border-2 rounded-2xl xl:flex-row text-primary-contrast image-dots from-primary-light border-primary-light bg-primary">
82+
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-primary-contrast bg-white/20 backdrop-blur-[1.25px] xl:p-0 xl:w-1/2">
8383
<span className="text-2xl">
8484
Introducing...
8585
</span>

Diff for: src/pages/mail/unsubscribe.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const UnsubscribePage: Page = ({ pathname }) => {
5454
</Head>
5555
<main className="flex items-center justify-center flex-1 w-full pb-8" aria-labelledby="unsubscribe">
5656
<Form
57-
className="flex flex-col gap-4 p-8 text-center border-2 rounded-md border-primary"
57+
className="flex flex-col gap-4 p-8 text-center border-2 rounded-2xl from-fill-light image-dots border-primary"
5858
onSubmit={submit}
5959
success={response?.success}
6060
successChildren={`${response?.message} 👍`}

0 commit comments

Comments
 (0)