Skip to content

Commit fc207c9

Browse files
committed
Add more star imagery
1 parent 48291aa commit fc207c9

File tree

10 files changed

+22
-17
lines changed

10 files changed

+22
-17
lines changed

Diff for: public/images/textures/star.svg

+5
Loading

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-2xl 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-star bg-green-400",
1919
successProps,
2020
oneTime,
2121
...props

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Logo from "@/assets/images/brand/logo.svg";
55
const Footer = () => {
66
return (
77
<div className="flex items-center justify-center w-[calc(100%_+_4rem)] pt-16 mt-auto text-cr-primary-contrast">
8-
<footer className="flex flex-col w-full gap-4 p-8 max-w-7xl rounded-t-2xl bg-cr-primary image-dots from-cr-primary-light">
8+
<footer className="flex flex-col w-full gap-4 p-8 max-w-7xl rounded-t-2xl bg-cr-primary image-star">
99
<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

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-2xl border-cr-primary image-dots from-cr-fill-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-cr-primary image-star 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/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-2xl motion-safe:transition-[margin-inline] motion-safe:duration-500 sm:mx-16 md:mx-0 image-dots from-cr-fill-light border-2 border-cr-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-star border-2 border-cr-primary overflow-hidden"
5454
variants={LIST_ANIM}
5555
initial="in"
5656
animate="anim"

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-8 -mx-4 rounded-2xl border-cr-primary image-dots from-cr-fill-light motion-safe:transition-[margin_padding_border] sm:mx-0 border-2">
10+
<li className="flex flex-col items-center flex-1 gap-4 p-8 -mx-4 rounded-2xl border-cr-primary image-star motion-safe:transition-[margin_padding_border] sm:mx-0 border-2">
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-2xl from-cr-fill-light image-dots border-cr-primary">
29+
<div className="flex flex-col gap-2 p-8 text-center border-2 rounded-2xl image-star border-cr-primary">
3030
<Heading.H1 id="not-found">
3131
Not Found.
3232
</Heading.H1>

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 rounded-2xl xl:flex-row text-cr-primary-contrast image-dots from-cr-primary-light bg-cr-primary">
82-
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-cr-primary-contrast bg-cr-primary-contrast/30 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 rounded-2xl xl:flex-row text-cr-primary-contrast image-star bg-cr-primary">
82+
<Heading.H2 id="introduction" className="flex p-4 flex-col items-center justify-center w-full rounded-2xl text-cr-primary-contrast bg-cr-primary-contrast/30 backdrop-blur-[1.25px] border border-cr-primary-contrast/20 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-2xl from-cr-fill-light image-dots border-cr-primary"
57+
className="flex flex-col gap-4 p-8 text-center border-2 rounded-2xl image-star border-cr-primary"
5858
onSubmit={submit}
5959
success={response?.success}
6060
successChildren={`${response?.message} 👍`}

Diff for: tailwind.config.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,12 @@ module.exports = {
1111
],
1212
theme: {
1313
extend: {
14-
backgroundImage: {
15-
"gradient-radial": 'radial-gradient(circle closest-side, var(--tw-gradient-stops))'
16-
},
1714
colors: {
1815
/** Commit Rocket colors */
1916
cr: {
2017
primary: {
21-
DEFAULT: "#ea580c",
22-
light: "#fb923c",
18+
DEFAULT: "#f45a07",
19+
light: "#f9794a",
2320
dark: "#92400e",
2421
contrast: "#FFF"
2522
},
@@ -39,14 +36,17 @@ module.exports = {
3936
},
4037
plugins: [
4138
require('@headlessui/tailwindcss'),
42-
plugin(({ addVariant, addComponents, addUtilities }) => {
43-
addVariant("is", ":is(&)");
44-
addVariant("where", ":where(&)");
39+
plugin(({ addComponents, addUtilities }) => {
4540
addComponents({
4641
".image-dots": {
4742
"background-image": "radial-gradient(var(--tw-gradient-from), transparent 1.5px, transparent 1.5px)",
4843
"background-size": "1.1rem 1.1rem",
4944
"background-position": "50% 50%"
45+
},
46+
".image-star": {
47+
"background-image": "url('/images/textures/star.svg')",
48+
"background-size": "2.6rem 2.6rem",
49+
"background-position": "50% 50%"
5050
}
5151
});
5252
addUtilities({

0 commit comments

Comments
 (0)