Repository: lukemcdonald/holly-react
Branch: main
Commit: 755c903855a6
Files: 53
Total size: 98.6 KB
Directory structure:
gitextract_s3upq0ay/
├── .eslintignore
├── .eslintrc
├── .gitignore
├── .prettierignore
├── README.md
├── package.json
├── postcss.config.js
├── src/
│ ├── app.tsx
│ ├── assets/
│ │ └── styles.css
│ ├── components/
│ │ ├── article/
│ │ │ ├── article.tsx
│ │ │ ├── content.tsx
│ │ │ ├── image.tsx
│ │ │ ├── index.ts
│ │ │ ├── media.tsx
│ │ │ └── title.tsx
│ │ ├── footer/
│ │ │ ├── footer.tsx
│ │ │ └── index.ts
│ │ ├── gradient/
│ │ │ ├── gradient.tsx
│ │ │ └── index.ts
│ │ ├── header/
│ │ │ ├── header.tsx
│ │ │ └── index.ts
│ │ ├── hero/
│ │ │ ├── hero.tsx
│ │ │ ├── illustration.tsx
│ │ │ └── index.ts
│ │ ├── layout/
│ │ │ ├── index.ts
│ │ │ └── layout.tsx
│ │ ├── logo/
│ │ │ ├── index.ts
│ │ │ └── logo.tsx
│ │ ├── menu/
│ │ │ ├── index.tsx
│ │ │ ├── menu-item.tsx
│ │ │ └── menu.tsx
│ │ ├── newsletter-form/
│ │ │ ├── index.ts
│ │ │ └── newsletter-form.tsx
│ │ ├── scroll-to-top/
│ │ │ ├── index.ts
│ │ │ └── scroll-to-top.tsx
│ │ └── social-links/
│ │ ├── constants.ts
│ │ ├── index.ts
│ │ ├── social-link.tsx
│ │ └── social-links.tsx
│ ├── index.html
│ ├── index.tsx
│ ├── routes/
│ │ ├── about.tsx
│ │ ├── contact.tsx
│ │ ├── faqs.tsx
│ │ ├── home.tsx
│ │ └── support.tsx
│ ├── utils/
│ │ └── cn.ts
│ └── vite-env.d.ts
├── styles/
│ └── tailwind.css
├── tailwind.config.js
├── tsconfig.json
├── tsconfig.node.json
└── vite.config.ts
================================================
FILE CONTENTS
================================================
================================================
FILE: .eslintignore
================================================
/.cache
/.github
/public
/node_modules
/dist
/src/assets/styles.css
================================================
FILE: .eslintrc
================================================
{
"root": true,
"env": {
"browser": true,
"es2021": true
},
"extends": [
"plugin:prettier/recommended"
],
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"plugins": ["prettier"],
"rules": {
"multiline-ternary": 0,
"no-shadow": 0,
"prettier/prettier": "error",
"react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off"
}
}
================================================
FILE: .gitignore
================================================
node_modules
.DS_Store
dist
dist-ssr
*.local
================================================
FILE: .prettierignore
================================================
/.cache
/.github
/public
/node_modules
/dist
/src/assets/styles.css
================================================
FILE: README.md
================================================
# Holly
A React implementation of [Davide Pacilio's](https://cruip.com/) free landing page template, [Holly](https://lukemcdonald.github.io/holly-react/).
# Getting Started
- Run `npm install`
- Run `npm run dev`
================================================
FILE: package.json
================================================
{
"version": "4.0.0",
"name": "holly-react",
"description": "React version of Holly",
"author": "Luke McDonald (https://lukemcdonald.com/)",
"homepage": "https://lukemcdonald.github.io/holly-react",
"keywords": [],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/lukemcdonald/holly-react.git"
},
"bugs": {
"url": "https://github.com/lukemcdonald/holly-react/issues"
},
"scripts": {
"build": "NODE_ENV=production run-s build:*",
"build:css": "postcss styles/tailwind.css -o src/assets/styles.css",
"build:vite": "vite build",
"deploy": "gh-pages -d dist",
"dev": "run-p dev:*",
"dev:css": "postcss styles/tailwind.css -o src/assets/styles.css --watch",
"dev:vite": "vite",
"format": "prettier --write .",
"lint": "eslint --cache --cache-location ./node_modules/.cache/eslint .",
"lint:fix": "eslint . --fix",
"predeploy": "$npm_execpath run build",
"preview": "vite preview",
"start": "$npm_execpath run dev",
"typecheck": "tsc --noEmit",
"validate": "run-p lint typecheck"
},
"dependencies": {
"clsx": "^2.1.1",
"gh-pages": "^6.1.1",
"postcss-import": "^16.1.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.26.0",
"scrollreveal": "^4.0.9",
"tailwind-merge": "^2.4.0",
"tiny-invariant": "^1.3.3"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@tailwindcss/typography": "^0.5.13",
"@types/eslint": "^9.6.0",
"@types/node": "^22.1.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/scrollreveal": "^0.0.11",
"@vitejs/plugin-react": "^4.3.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.40",
"postcss-cli": "^11.0.0",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.5",
"tailwindcss": "^3.4.7",
"typescript": "^5.5.4",
"vite": "^5.3.5"
},
"prettier": {
"plugins": [
"prettier-plugin-tailwindcss"
],
"printWidth": 100,
"semi": false,
"singleQuote": true,
"tabWidth": 2
}
}
================================================
FILE: postcss.config.js
================================================
module.exports = {
plugins: [
require(`postcss-import`),
require(`tailwindcss/nesting`),
require(`tailwindcss`),
require(`autoprefixer`),
],
}
================================================
FILE: src/app.tsx
================================================
import { ScrollToTop } from '@/components/scroll-to-top'
import AboutPage from '@/routes/about'
import ContactPage from '@/routes/contact'
import FaqsPage from '@/routes/faqs'
import HomePage from '@/routes/home'
import SupportPage from '@/routes/support'
import { BrowserRouter, Route, Routes } from 'react-router-dom'
export default function App() {
/**
* Vite exposes env variables on the special import.meta.env object.
* Basename needs to be set for GitHub Pages to function properly.
*
* @link https://vitejs.dev/guide/env-and-mode.html
*/
const basename = import.meta.env.BASE_URL
return (
<BrowserRouter basename={basename}>
<ScrollToTop>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="about" element={<AboutPage />} />
<Route path="contact" element={<ContactPage />} />
<Route path="faqs" element={<FaqsPage />} />
<Route path="support" element={<SupportPage />} />
</Routes>
</ScrollToTop>
</BrowserRouter>
)
}
================================================
FILE: src/assets/styles.css
================================================
/**
* Base
* -----------------------------------------------------------------------------
*/
/*! tailwindcss v3.4.7 | MIT License | https://tailwindcss.com
*/
/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/
*,
::before,
::after {
box-sizing: border-box; /* 1 */
border-width: 0; /* 2 */
border-style: solid; /* 2 */
border-color: #e2e8f0; /* 2 */
}
::before,
::after {
--tw-content: '';
}
/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/
html,
:host {
line-height: 1.5; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-moz-tab-size: 4; /* 3 */
-o-tab-size: 4;
tab-size: 4; /* 3 */
font-family: Fira Sans, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
font-feature-settings: normal; /* 5 */
font-variation-settings: normal; /* 6 */
-webkit-tap-highlight-color: transparent; /* 7 */
}
/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/
body {
margin: 0; /* 1 */
line-height: inherit; /* 2 */
}
/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/
hr {
height: 0; /* 1 */
color: inherit; /* 2 */
border-top-width: 1px; /* 3 */
}
/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/
abbr:where([title]) {
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
/*
Remove the default font size and weight for headings.
*/
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: inherit;
font-weight: inherit;
}
/*
Reset links to optimize for opt-in styling instead of opt-out.
*/
a {
color: inherit;
text-decoration: inherit;
}
/*
Add the correct font weight in Edge and Safari.
*/
b,
strong {
font-weight: bolder;
}
/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp,
pre {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
font-feature-settings: normal; /* 2 */
font-variation-settings: normal; /* 3 */
font-size: 1em; /* 4 */
}
/*
Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/
table {
text-indent: 0; /* 1 */
border-color: inherit; /* 2 */
border-collapse: collapse; /* 3 */
}
/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-feature-settings: inherit; /* 1 */
font-variation-settings: inherit; /* 1 */
font-size: 100%; /* 1 */
font-weight: inherit; /* 1 */
line-height: inherit; /* 1 */
letter-spacing: inherit; /* 1 */
color: inherit; /* 1 */
margin: 0; /* 2 */
padding: 0; /* 3 */
}
/*
Remove the inheritance of text transform in Edge and Firefox.
*/
button,
select {
text-transform: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
-webkit-appearance: button; /* 1 */
background-color: transparent; /* 2 */
background-image: none; /* 2 */
}
/*
Use the modern Firefox focus style for all focusable elements.
*/
:-moz-focusring {
outline: auto;
}
/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/
:-moz-ui-invalid {
box-shadow: none;
}
/*
Add the correct vertical alignment in Chrome and Firefox.
*/
progress {
vertical-align: baseline;
}
/*
Correct the cursor style of increment and decrement buttons in Safari.
*/
::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
height: auto;
}
/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/
[type='search'] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/*
Remove the inner padding in Chrome and Safari on macOS.
*/
::-webkit-search-decoration {
-webkit-appearance: none;
}
/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/*
Add the correct display in Chrome and Safari.
*/
summary {
display: list-item;
}
/*
Removes the default spacing and border for appropriate elements.
*/
blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
margin: 0;
}
fieldset {
margin: 0;
padding: 0;
}
legend {
padding: 0;
}
ol,
ul,
menu {
list-style: none;
margin: 0;
padding: 0;
}
/*
Reset default styling for dialogs.
*/
dialog {
padding: 0;
}
/*
Prevent resizing textareas horizontally by default.
*/
textarea {
resize: vertical;
}
/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/
input::-moz-placeholder, textarea::-moz-placeholder {
opacity: 1; /* 1 */
color: #94a3b8; /* 2 */
}
input::placeholder,
textarea::placeholder {
opacity: 1; /* 1 */
color: #94a3b8; /* 2 */
}
/*
Set the default cursor for buttons.
*/
button,
[role="button"] {
cursor: pointer;
}
/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
cursor: default;
}
/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
This can trigger a poorly considered lint error in some tools but is included by design.
*/
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
display: block; /* 1 */
vertical-align: middle; /* 2 */
}
/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/
img,
video {
max-width: 100%;
height: auto;
}
/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
display: none;
}
[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
background-color: #fff;
border-color: #64748b;
border-width: 1px;
border-radius: 0px;
padding-top: 0.5rem;
padding-right: 0.75rem;
padding-bottom: 0.5rem;
padding-left: 0.75rem;
font-size: 1rem;
line-height: 1.5rem;
--tw-shadow: 0 0 #0000;
}
[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
border-color: #2563eb;
}
input::-moz-placeholder, textarea::-moz-placeholder {
color: #64748b;
opacity: 1;
}
input::placeholder,textarea::placeholder {
color: #64748b;
opacity: 1;
}
::-webkit-datetime-edit-fields-wrapper {
padding: 0;
}
::-webkit-date-and-time-value {
min-height: 1.5em;
text-align: inherit;
}
::-webkit-datetime-edit {
display: inline-flex;
}
::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field {
padding-top: 0;
padding-bottom: 0;
}
select {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
background-position: right 0.5rem center;
background-repeat: no-repeat;
background-size: 1.5em 1.5em;
padding-right: 2.5rem;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
}
[multiple],[size]:where(select:not([size="1"])) {
background-image: initial;
background-position: initial;
background-repeat: unset;
background-size: initial;
padding-right: 0.75rem;
-webkit-print-color-adjust: unset;
print-color-adjust: unset;
}
[type='checkbox'],[type='radio'] {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
padding: 0;
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: inline-block;
vertical-align: middle;
background-origin: border-box;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
flex-shrink: 0;
height: 1rem;
width: 1rem;
color: #2563eb;
background-color: #fff;
border-color: #64748b;
border-width: 1px;
--tw-shadow: 0 0 #0000;
}
[type='checkbox'] {
border-radius: 0px;
}
[type='radio'] {
border-radius: 100%;
}
[type='checkbox']:focus,[type='radio']:focus {
outline: 2px solid transparent;
outline-offset: 2px;
--tw-ring-inset: var(--tw-empty,/*!*/ /*!*/);
--tw-ring-offset-width: 2px;
--tw-ring-offset-color: #fff;
--tw-ring-color: #2563eb;
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
}
[type='checkbox']:checked,[type='radio']:checked {
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
[type='checkbox']:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}
@media (forced-colors: active) {
[type='checkbox']:checked {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='radio']:checked {
background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}
@media (forced-colors: active) {
[type='radio']:checked {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus {
border-color: transparent;
background-color: currentColor;
}
[type='checkbox']:indeterminate {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e");
border-color: transparent;
background-color: currentColor;
background-size: 100% 100%;
background-position: center;
background-repeat: no-repeat;
}
@media (forced-colors: active) {
[type='checkbox']:indeterminate {
-webkit-appearance: auto;
-moz-appearance: auto;
appearance: auto;
}
}
[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus {
border-color: transparent;
background-color: currentColor;
}
[type='file'] {
background: unset;
border-color: inherit;
border-width: 0;
border-radius: 0;
padding: 0;
font-size: unset;
line-height: inherit;
}
[type='file']:focus {
outline: 1px solid ButtonText;
outline: 1px auto -webkit-focus-ring-color;
}
*, ::before, ::after {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
::backdrop {
--tw-border-spacing-x: 0;
--tw-border-spacing-y: 0;
--tw-translate-x: 0;
--tw-translate-y: 0;
--tw-rotate: 0;
--tw-skew-x: 0;
--tw-skew-y: 0;
--tw-scale-x: 1;
--tw-scale-y: 1;
--tw-pan-x: ;
--tw-pan-y: ;
--tw-pinch-zoom: ;
--tw-scroll-snap-strictness: proximity;
--tw-gradient-from-position: ;
--tw-gradient-via-position: ;
--tw-gradient-to-position: ;
--tw-ordinal: ;
--tw-slashed-zero: ;
--tw-numeric-figure: ;
--tw-numeric-spacing: ;
--tw-numeric-fraction: ;
--tw-ring-inset: ;
--tw-ring-offset-width: 0px;
--tw-ring-offset-color: #fff;
--tw-ring-color: rgb(59 130 246 / 0.5);
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
--tw-blur: ;
--tw-brightness: ;
--tw-contrast: ;
--tw-grayscale: ;
--tw-hue-rotate: ;
--tw-invert: ;
--tw-saturate: ;
--tw-sepia: ;
--tw-drop-shadow: ;
--tw-backdrop-blur: ;
--tw-backdrop-brightness: ;
--tw-backdrop-contrast: ;
--tw-backdrop-grayscale: ;
--tw-backdrop-hue-rotate: ;
--tw-backdrop-invert: ;
--tw-backdrop-opacity: ;
--tw-backdrop-saturate: ;
--tw-backdrop-sepia: ;
--tw-contain-size: ;
--tw-contain-layout: ;
--tw-contain-paint: ;
--tw-contain-style: ;
}
/**
* Components
* -----------------------------------------------------------------------------
*/
.prose {
color: var(--tw-prose-body);
max-width: 65ch;
}
.prose :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.prose :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-lead);
font-size: 1.25em;
line-height: 1.6;
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.prose :where(a):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: currentColor;
text-decoration: underline;
font-weight: 500;
}
.prose :where(strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-bold);
font-weight: 600;
}
.prose :where(a strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(blockquote strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(thead th strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: decimal;
margin-top: 1.25em;
margin-bottom: 1.25em;
padding-inline-start: 1.625em;
}
.prose :where(ol[type="A"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: upper-alpha;
}
.prose :where(ol[type="a"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: lower-alpha;
}
.prose :where(ol[type="A" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: upper-alpha;
}
.prose :where(ol[type="a" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: lower-alpha;
}
.prose :where(ol[type="I"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: upper-roman;
}
.prose :where(ol[type="i"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: lower-roman;
}
.prose :where(ol[type="I" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: upper-roman;
}
.prose :where(ol[type="i" s]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: lower-roman;
}
.prose :where(ol[type="1"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: decimal;
}
.prose :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
list-style-type: disc;
margin-top: 1.25em;
margin-bottom: 1.25em;
padding-inline-start: 1.625em;
}
.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
font-weight: 400;
color: var(--tw-prose-counters);
}
.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *))::marker {
color: var(--tw-prose-bullets);
}
.prose :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
margin-top: 1.25em;
}
.prose :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-color: var(--tw-prose-hr);
border-top-width: 1px;
margin-top: 3em;
margin-bottom: 3em;
}
.prose :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 500;
font-style: italic;
color: var(--tw-prose-quotes);
border-inline-start-width: 0.25rem;
border-inline-start-color: var(--tw-prose-quote-borders);
quotes: "\201C""\201D""\2018""\2019";
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-inline-start: 1em;
}
.prose :where(blockquote p:first-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
content: open-quote;
}
.prose :where(blockquote p:last-of-type):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
content: close-quote;
}
.prose :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 800;
font-size: 2.25em;
margin-top: 0;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.prose :where(h1 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 900;
color: inherit;
}
.prose :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 700;
font-size: 1.5em;
margin-top: 2em;
margin-bottom: 1em;
line-height: 1.3333333;
}
.prose :where(h2 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 800;
color: inherit;
}
.prose :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
font-size: 1.25em;
margin-top: 1.6em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.prose :where(h3 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 700;
color: inherit;
}
.prose :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
margin-top: 1.5em;
margin-bottom: 0.5em;
line-height: 1.5;
}
.prose :where(h4 strong):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 700;
color: inherit;
}
.prose :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
display: block;
margin-top: 2em;
margin-bottom: 2em;
}
.prose :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-weight: 500;
font-family: inherit;
color: var(--tw-prose-kbd);
box-shadow: 0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%), 0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
font-size: 0.875em;
border-radius: 0.3125rem;
padding-top: 0.1875em;
padding-inline-end: 0.375em;
padding-bottom: 0.1875em;
padding-inline-start: 0.375em;
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-code);
font-weight: 600;
font-size: 0.875em;
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
content: "`";
}
.prose :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
content: "`";
}
.prose :where(a code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(h1 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
font-size: 0.875em;
}
.prose :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
font-size: 0.9em;
}
.prose :where(h4 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(blockquote code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(thead th code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: inherit;
}
.prose :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-pre-code);
background-color: var(--tw-prose-pre-bg);
overflow-x: auto;
font-weight: 400;
font-size: 0.875em;
line-height: 1.7142857;
margin-top: 1.7142857em;
margin-bottom: 1.7142857em;
border-radius: 0.375rem;
padding-top: 0.8571429em;
padding-inline-end: 1.1428571em;
padding-bottom: 0.8571429em;
padding-inline-start: 1.1428571em;
}
.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
background-color: transparent;
border-width: 0;
border-radius: 0;
padding: 0;
font-weight: inherit;
color: inherit;
font-size: inherit;
font-family: inherit;
line-height: inherit;
}
.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::before {
content: none;
}
.prose :where(pre code):not(:where([class~="not-prose"],[class~="not-prose"] *))::after {
content: none;
}
.prose :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
width: 100%;
table-layout: auto;
text-align: start;
margin-top: 2em;
margin-bottom: 2em;
font-size: 0.875em;
line-height: 1.7142857;
}
.prose :where(thead):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-bottom-width: 1px;
border-bottom-color: var(--tw-prose-th-borders);
}
.prose :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-headings);
font-weight: 600;
vertical-align: bottom;
padding-inline-end: 0.5714286em;
padding-bottom: 0.5714286em;
padding-inline-start: 0.5714286em;
}
.prose :where(tbody tr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-bottom-width: 1px;
border-bottom-color: var(--tw-prose-td-borders);
}
.prose :where(tbody tr:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-bottom-width: 0;
}
.prose :where(tbody td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
vertical-align: baseline;
}
.prose :where(tfoot):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
border-top-width: 1px;
border-top-color: var(--tw-prose-th-borders);
}
.prose :where(tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
vertical-align: top;
}
.prose :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.prose :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
color: var(--tw-prose-captions);
font-size: 0.875em;
line-height: 1.4285714;
margin-top: 0.8571429em;
}
.prose {
--tw-prose-body: #374151;
--tw-prose-headings: #111827;
--tw-prose-lead: #4b5563;
--tw-prose-links: #111827;
--tw-prose-bold: #111827;
--tw-prose-counters: #6b7280;
--tw-prose-bullets: #d1d5db;
--tw-prose-hr: #e5e7eb;
--tw-prose-quotes: #111827;
--tw-prose-quote-borders: #e5e7eb;
--tw-prose-captions: #6b7280;
--tw-prose-kbd: #111827;
--tw-prose-kbd-shadows: 17 24 39;
--tw-prose-code: #111827;
--tw-prose-pre-code: #e5e7eb;
--tw-prose-pre-bg: #1f2937;
--tw-prose-th-borders: #d1d5db;
--tw-prose-td-borders: #e5e7eb;
--tw-prose-invert-body: #d1d5db;
--tw-prose-invert-headings: #fff;
--tw-prose-invert-lead: #9ca3af;
--tw-prose-invert-links: #fff;
--tw-prose-invert-bold: #fff;
--tw-prose-invert-counters: #9ca3af;
--tw-prose-invert-bullets: #4b5563;
--tw-prose-invert-hr: #374151;
--tw-prose-invert-quotes: #f3f4f6;
--tw-prose-invert-quote-borders: #374151;
--tw-prose-invert-captions: #9ca3af;
--tw-prose-invert-kbd: #fff;
--tw-prose-invert-kbd-shadows: 255 255 255;
--tw-prose-invert-code: #fff;
--tw-prose-invert-pre-code: #d1d5db;
--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);
--tw-prose-invert-th-borders: #4b5563;
--tw-prose-invert-td-borders: #374151;
font-size: 1rem;
line-height: 1.75;
}
.prose :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.prose :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.5em;
margin-bottom: 0.5em;
}
.prose :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.375em;
}
.prose :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.375em;
}
.prose :where(.prose > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.prose :where(.prose > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
}
.prose :where(.prose > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.25em;
}
.prose :where(.prose > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
}
.prose :where(.prose > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.25em;
}
.prose :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.75em;
margin-bottom: 0.75em;
}
.prose :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.25em;
margin-bottom: 1.25em;
}
.prose :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.5em;
padding-inline-start: 1.625em;
}
.prose :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.prose :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.prose :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-top: 0.5714286em;
padding-inline-end: 0.5714286em;
padding-bottom: 0.5714286em;
padding-inline-start: 0.5714286em;
}
.prose :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.prose :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.prose :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose :where(.prose > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose :where(.prose > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 0;
}
.prose-xl {
font-size: 1.25rem;
line-height: 1.8;
}
.prose-xl :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.prose-xl :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.2em;
line-height: 1.5;
margin-top: 1em;
margin-bottom: 1em;
}
.prose-xl :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-inline-start: 1.0666667em;
}
.prose-xl :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 2.8em;
margin-top: 0;
margin-bottom: 0.8571429em;
line-height: 1;
}
.prose-xl :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.8em;
margin-top: 1.5555556em;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.prose-xl :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.5em;
margin-top: 1.6em;
margin-bottom: 0.6666667em;
line-height: 1.3333333;
}
.prose-xl :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.8em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.prose-xl :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose-xl :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose-xl :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.prose-xl :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose-xl :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
border-radius: 0.3125rem;
padding-top: 0.25em;
padding-inline-end: 0.4em;
padding-bottom: 0.25em;
padding-inline-start: 0.4em;
}
.prose-xl :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
}
.prose-xl :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.8611111em;
}
.prose-xl :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
}
.prose-xl :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.7777778;
margin-top: 2em;
margin-bottom: 2em;
border-radius: 0.5rem;
padding-top: 1.1111111em;
padding-inline-end: 1.3333333em;
padding-bottom: 1.1111111em;
padding-inline-start: 1.3333333em;
}
.prose-xl :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
padding-inline-start: 1.6em;
}
.prose-xl :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
padding-inline-start: 1.6em;
}
.prose-xl :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.prose-xl :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.4em;
}
.prose-xl :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.4em;
}
.prose-xl :where(.prose-xl > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.prose-xl :where(.prose-xl > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.prose-xl :where(.prose-xl > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
.prose-xl :where(.prose-xl > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.prose-xl :where(.prose-xl > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
.prose-xl :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.prose-xl :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.prose-xl :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.prose-xl :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.6em;
padding-inline-start: 1.6em;
}
.prose-xl :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2.8em;
margin-bottom: 2.8em;
}
.prose-xl :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose-xl :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose-xl :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose-xl :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose-xl :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
}
.prose-xl :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0.6666667em;
padding-bottom: 0.8888889em;
padding-inline-start: 0.6666667em;
}
.prose-xl :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.prose-xl :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.prose-xl :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-top: 0.8888889em;
padding-inline-end: 0.6666667em;
padding-bottom: 0.8888889em;
padding-inline-start: 0.6666667em;
}
.prose-xl :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.prose-xl :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.prose-xl :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.prose-xl :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.prose-xl :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
margin-top: 1em;
}
.prose-xl :where(.prose-xl > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.prose-xl :where(.prose-xl > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 0;
}
/**
* Utilites
* -----------------------------------------------------------------------------
*/
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.absolute {
position: absolute;
}
.relative {
position: relative;
}
.inset-0 {
inset: 0px;
}
.-top-48 {
top: -12rem;
}
.-top-5 {
top: -1.25rem;
}
.bottom-0 {
bottom: 0px;
}
.left-1\/2 {
left: 50%;
}
.left-16 {
left: 4rem;
}
.left-44 {
left: 11rem;
}
.left-96 {
left: 24rem;
}
.top-0 {
top: 0px;
}
.top-4 {
top: 1rem;
}
.top-72 {
top: 18rem;
}
.m-0 {
margin: 0px;
}
.m-auto {
margin: auto;
}
.-mx-4 {
margin-left: -1rem;
margin-right: -1rem;
}
.-mx-6 {
margin-left: -1.5rem;
margin-right: -1.5rem;
}
.mx-auto {
margin-left: auto;
margin-right: auto;
}
.my-0 {
margin-top: 0px;
margin-bottom: 0px;
}
.-mt-px {
margin-top: -1px;
}
.mb-3 {
margin-bottom: 0.75rem;
}
.mb-4 {
margin-bottom: 1rem;
}
.ml-28 {
margin-left: 7rem;
}
.ml-auto {
margin-left: auto;
}
.mr-2 {
margin-right: 0.5rem;
}
.mt-0 {
margin-top: 0px;
}
.mt-12 {
margin-top: 3rem;
}
.mt-2 {
margin-top: 0.5rem;
}
.mt-4 {
margin-top: 1rem;
}
.mt-8 {
margin-top: 2rem;
}
.block {
display: block;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.hidden {
display: none;
}
.min-h-screen {
min-height: 100vh;
}
.w-1\/2 {
width: 50%;
}
.w-full {
width: 100%;
}
.max-w-3xl {
max-width: 48rem;
}
.max-w-6xl {
max-width: 72rem;
}
.max-w-\[40rem\] {
max-width: 40rem;
}
.max-w-md {
max-width: 28rem;
}
.max-w-screen-2xl {
max-width: 1536px;
}
.max-w-screen-sm {
max-width: 640px;
}
.flex-shrink {
flex-shrink: 1;
}
.flex-shrink-0 {
flex-shrink: 0;
}
.flex-grow {
flex-grow: 1;
}
.transform {
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.cursor-pointer {
cursor: pointer;
}
.flex-col {
flex-direction: column;
}
.items-center {
align-items: center;
}
.justify-center {
justify-content: center;
}
.justify-between {
justify-content: space-between;
}
.gap-2 {
gap: 0.5rem;
}
.gap-4 {
gap: 1rem;
}
.gap-6 {
gap: 1.5rem;
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
--tw-space-y-reverse: 0;
margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
overflow: hidden;
}
.whitespace-nowrap {
white-space: nowrap;
}
.rounded-sm {
border-radius: 0.125rem;
}
.border {
border-width: 1px;
}
.border-0 {
border-width: 0px;
}
.border-b {
border-bottom-width: 1px;
}
.border-gray-200 {
--tw-border-opacity: 1;
border-color: rgb(226 232 240 / var(--tw-border-opacity));
}
.border-gray-300 {
--tw-border-opacity: 1;
border-color: rgb(203 213 225 / var(--tw-border-opacity));
}
.border-primary-200 {
--tw-border-opacity: 1;
border-color: rgb(199 210 254 / var(--tw-border-opacity));
}
.bg-gray-100 {
--tw-bg-opacity: 1;
background-color: rgb(241 245 249 / var(--tw-bg-opacity));
}
.bg-primary-400 {
--tw-bg-opacity: 1;
background-color: rgb(129 140 248 / var(--tw-bg-opacity));
}
.bg-white {
--tw-bg-opacity: 1;
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
}
.bg-gradient-to-b {
background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.from-primary-600 {
--tw-gradient-from: #4f46e5 var(--tw-gradient-from-position);
--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-secondary-500 {
--tw-gradient-from: #f43f5e var(--tw-gradient-from-position);
--tw-gradient-to: rgb(244 63 94 / 0) var(--tw-gradient-to-position);
--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-primary-400 {
--tw-gradient-to: #818cf8 var(--tw-gradient-to-position);
}
.to-secondary-400 {
--tw-gradient-to: #fb7185 var(--tw-gradient-to-position);
}
.px-4 {
padding-left: 1rem;
padding-right: 1rem;
}
.px-6 {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.px-7 {
padding-left: 1.75rem;
padding-right: 1.75rem;
}
.py-10 {
padding-top: 2.5rem;
padding-bottom: 2.5rem;
}
.py-3 {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
}
.py-4 {
padding-top: 1rem;
padding-bottom: 1rem;
}
.py-6 {
padding-top: 1.5rem;
padding-bottom: 1.5rem;
}
.pb-16 {
padding-bottom: 4rem;
}
.pt-10 {
padding-top: 2.5rem;
}
.text-center {
text-align: center;
}
.text-4xl {
font-size: 2.25rem;
line-height: 2.5rem;
}
.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
.font-bold {
font-weight: 700;
}
.font-medium {
font-weight: 500;
}
.uppercase {
text-transform: uppercase;
}
.italic {
font-style: italic;
}
.leading-10 {
line-height: 2.5rem;
}
.leading-4 {
line-height: 1rem;
}
.leading-5 {
line-height: 1.25rem;
}
.leading-none {
line-height: 1;
}
.tracking-normal {
letter-spacing: 0em;
}
.text-gray-500 {
--tw-text-opacity: 1;
color: rgb(100 116 139 / var(--tw-text-opacity));
}
.text-white {
--tw-text-opacity: 1;
color: rgb(255 255 255 / var(--tw-text-opacity));
}
.no-underline {
text-decoration-line: none;
}
.shadow-2xl {
--tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
--tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-none {
--tw-shadow: 0 0 #0000;
--tw-shadow-colored: 0 0 #0000;
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.drop-shadow-2xl {
--tw-drop-shadow: drop-shadow(0 25px 25px rgb(0 0 0 / 0.15));
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
@media (min-width: 1024px) {
.lg\:prose-xl {
font-size: 1.25rem;
line-height: 1.8;
}
.lg\:prose-xl :where(p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.lg\:prose-xl :where([class~="lead"]):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.2em;
line-height: 1.5;
margin-top: 1em;
margin-bottom: 1em;
}
.lg\:prose-xl :where(blockquote):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.6em;
margin-bottom: 1.6em;
padding-inline-start: 1.0666667em;
}
.lg\:prose-xl :where(h1):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 2.8em;
margin-top: 0;
margin-bottom: 0.8571429em;
line-height: 1;
}
.lg\:prose-xl :where(h2):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.8em;
margin-top: 1.5555556em;
margin-bottom: 0.8888889em;
line-height: 1.1111111;
}
.lg\:prose-xl :where(h3):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 1.5em;
margin-top: 1.6em;
margin-bottom: 0.6666667em;
line-height: 1.3333333;
}
.lg\:prose-xl :where(h4):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.8em;
margin-bottom: 0.6em;
line-height: 1.6;
}
.lg\:prose-xl :where(img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.lg\:prose-xl :where(picture):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.lg\:prose-xl :where(picture > img):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.lg\:prose-xl :where(video):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.lg\:prose-xl :where(kbd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
border-radius: 0.3125rem;
padding-top: 0.25em;
padding-inline-end: 0.4em;
padding-bottom: 0.25em;
padding-inline-start: 0.4em;
}
.lg\:prose-xl :where(code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
}
.lg\:prose-xl :where(h2 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.8611111em;
}
.lg\:prose-xl :where(h3 code):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
}
.lg\:prose-xl :where(pre):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.7777778;
margin-top: 2em;
margin-bottom: 2em;
border-radius: 0.5rem;
padding-top: 1.1111111em;
padding-inline-end: 1.3333333em;
padding-bottom: 1.1111111em;
padding-inline-start: 1.3333333em;
}
.lg\:prose-xl :where(ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
padding-inline-start: 1.6em;
}
.lg\:prose-xl :where(ul):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
padding-inline-start: 1.6em;
}
.lg\:prose-xl :where(li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.lg\:prose-xl :where(ol > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.4em;
}
.lg\:prose-xl :where(ul > li):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0.4em;
}
.lg\:prose-xl :where(.lg\:prose-xl > ul > li p):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.lg\:prose-xl :where(.lg\:prose-xl > ul > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.lg\:prose-xl :where(.lg\:prose-xl > ul > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
.lg\:prose-xl :where(.lg\:prose-xl > ol > li > p:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.lg\:prose-xl :where(.lg\:prose-xl > ol > li > p:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 1.2em;
}
.lg\:prose-xl :where(ul ul, ul ol, ol ul, ol ol):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.8em;
margin-bottom: 0.8em;
}
.lg\:prose-xl :where(dl):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
margin-bottom: 1.2em;
}
.lg\:prose-xl :where(dt):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 1.2em;
}
.lg\:prose-xl :where(dd):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0.6em;
padding-inline-start: 1.6em;
}
.lg\:prose-xl :where(hr):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2.8em;
margin-bottom: 2.8em;
}
.lg\:prose-xl :where(hr + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.lg\:prose-xl :where(h2 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.lg\:prose-xl :where(h3 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.lg\:prose-xl :where(h4 + *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.lg\:prose-xl :where(table):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
}
.lg\:prose-xl :where(thead th):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0.6666667em;
padding-bottom: 0.8888889em;
padding-inline-start: 0.6666667em;
}
.lg\:prose-xl :where(thead th:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.lg\:prose-xl :where(thead th:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.lg\:prose-xl :where(tbody td, tfoot td):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-top: 0.8888889em;
padding-inline-end: 0.6666667em;
padding-bottom: 0.8888889em;
padding-inline-start: 0.6666667em;
}
.lg\:prose-xl :where(tbody td:first-child, tfoot td:first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-start: 0;
}
.lg\:prose-xl :where(tbody td:last-child, tfoot td:last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
padding-inline-end: 0;
}
.lg\:prose-xl :where(figure):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 2em;
margin-bottom: 2em;
}
.lg\:prose-xl :where(figure > *):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
margin-bottom: 0;
}
.lg\:prose-xl :where(figcaption):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
font-size: 0.9em;
line-height: 1.5555556;
margin-top: 1em;
}
.lg\:prose-xl :where(.lg\:prose-xl > :first-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-top: 0;
}
.lg\:prose-xl :where(.lg\:prose-xl > :last-child):not(:where([class~="not-prose"],[class~="not-prose"] *)) {
margin-bottom: 0;
}
}
.open\:border-primary-400[open] {
--tw-border-opacity: 1;
border-color: rgb(129 140 248 / var(--tw-border-opacity));
}
.hover\:border-b:hover {
border-bottom-width: 1px;
}
.hover\:border-primary-300:hover {
--tw-border-opacity: 1;
border-color: rgb(165 180 252 / var(--tw-border-opacity));
}
@media (min-width: 640px) {
.sm\:flex-row {
flex-direction: row;
}
}
@media (min-width: 768px) {
.md\:text-5xl {
font-size: 3rem;
line-height: 1;
}
}
@media (min-width: 1024px) {
.lg\:-bottom-20 {
bottom: -5rem;
}
.lg\:-bottom-28 {
bottom: -7rem;
}
.lg\:-left-16 {
left: -4rem;
}
.lg\:-right-10 {
right: -2.5rem;
}
.lg\:-top-20 {
top: -5rem;
}
.lg\:left-24 {
left: 6rem;
}
.lg\:left-40 {
left: 10rem;
}
.lg\:left-72 {
left: 18rem;
}
.lg\:left-80 {
left: 20rem;
}
.lg\:top-80 {
top: 20rem;
}
.lg\:order-1 {
order: 1;
}
.lg\:mx-0 {
margin-left: 0px;
margin-right: 0px;
}
.lg\:block {
display: block;
}
.lg\:flex {
display: flex;
}
.lg\:hidden {
display: none;
}
.lg\:aspect-\[5\/7\] {
aspect-ratio: 5/7;
}
.lg\:w-full {
width: 100%;
}
.lg\:min-w-\[40rem\] {
min-width: 40rem;
}
.lg\:max-w-none {
max-width: none;
}
.lg\:flex-row {
flex-direction: row;
}
.lg\:items-end {
align-items: flex-end;
}
.lg\:justify-between {
justify-content: space-between;
}
.lg\:bg-transparent {
background-color: transparent;
}
.lg\:p-0 {
padding: 0px;
}
.lg\:py-0 {
padding-top: 0px;
padding-bottom: 0px;
}
.lg\:py-20 {
padding-top: 5rem;
padding-bottom: 5rem;
}
.lg\:pr-20 {
padding-right: 5rem;
}
.lg\:pt-16 {
padding-top: 4rem;
}
.lg\:text-left {
text-align: left;
}
.lg\:text-5xl {
font-size: 3rem;
line-height: 1;
}
.lg\:leading-tight {
line-height: 1.25;
}
.lg\:text-gray-400 {
--tw-text-opacity: 1;
color: rgb(148 163 184 / var(--tw-text-opacity));
}
}
================================================
FILE: src/components/article/article.tsx
================================================
import { ArticleContent, ArticleImage, ArticleMedia, ArticleTitle } from '@/components/article'
import { cn } from '@/utils/cn'
import type { PropsWithChildren } from 'react'
import invariant from 'tiny-invariant'
function Article({
className,
children,
imageAlt,
imageSrc,
title,
}: PropsWithChildren<{
className?: string
imageAlt?: string
imageSrc?: string
title: string
}>) {
if (imageSrc) {
invariant(imageAlt, 'Image alt text is required.')
}
return (
<article className={cn('article text-center lg:w-full lg:py-20 lg:text-left', className)}>
<div className="mx-auto w-full max-w-6xl px-6">
<div className="relative lg:flex">
<ArticleContent>
<header>
<ArticleTitle>{title}</ArticleTitle>
</header>
{children}
</ArticleContent>
{imageSrc && (
<ArticleMedia>
<ArticleImage alt={imageAlt!} src={imageSrc} />
</ArticleMedia>
)}
</div>
</div>
</article>
)
}
export default Article
================================================
FILE: src/components/article/content.tsx
================================================
import { cn } from '@/utils/cn'
import type { PropsWithChildren } from 'react'
function Content({
children,
className,
}: PropsWithChildren<{
className?: string
}>) {
return (
<div className="flex-grow">
<div className={cn('prose mx-auto py-10 lg:prose-xl lg:pr-20 lg:pt-16', className)}>
{children}
</div>
</div>
)
}
export default Content
================================================
FILE: src/components/article/image.tsx
================================================
import { cn } from '@/utils/cn'
function Image({
alt,
className,
height,
src,
width,
}: {
alt: string
className?: string
height?: number
src: string
width?: number
}) {
return (
<img
alt={alt}
className={cn('mx-auto lg:aspect-[5/7] lg:w-full', className)}
height={width || 640}
src={src}
width={height || 420}
/>
)
}
export default Image
================================================
FILE: src/components/article/index.ts
================================================
export { default as Article } from './article'
export { default as ArticleContent } from './content'
export { default as ArticleImage } from './image'
export { default as ArticleMedia } from './media'
export { default as ArticleTitle } from './title'
================================================
FILE: src/components/article/media.tsx
================================================
import { cn } from '@/utils/cn'
import type { PropsWithChildren } from 'react'
function Media({
as: Tag = 'figure',
children,
className,
}: PropsWithChildren<{
as?: keyof JSX.IntrinsicElements
className?: string
}>) {
return (
<Tag
className={cn(
'relative m-auto max-w-[40rem] py-10 lg:-right-10 lg:w-full lg:py-0',
className,
)}
>
{children}
</Tag>
)
}
export default Media
================================================
FILE: src/components/article/title.tsx
================================================
import { cn } from '@/utils/cn'
import type { PropsWithChildren } from 'react'
function Title({ children, className }: PropsWithChildren<{ className?: string }>) {
return (
<h1 className={cn('mb-3 mt-12 text-4xl font-bold lg:text-5xl lg:leading-tight', className)}>
{children}
</h1>
)
}
export default Title
================================================
FILE: src/components/footer/footer.tsx
================================================
import { Menu } from '@/components/menu'
import { SocialLinks } from '@/components/social-links'
function Footer() {
return (
<footer className="bg-primary-400 py-6 text-sm leading-5 tracking-normal text-white lg:bg-transparent lg:text-gray-400">
<div className="mx-auto w-full max-w-6xl px-6">
<div className="relative flex flex-col items-center gap-6 lg:flex-row lg:items-end lg:justify-between">
<nav className="flex flex-col items-center gap-6 lg:order-1 lg:items-end">
<SocialLinks className="flex gap-4" />
<Menu className="flex gap-4" />
</nav>
<div className="">© Holly</div>
</div>
</div>
</footer>
)
}
export default Footer
================================================
FILE: src/components/footer/index.ts
================================================
export { default as Footer } from './footer'
================================================
FILE: src/components/gradient/gradient.tsx
================================================
import { cn } from '@/utils/cn'
function Gradient({ className }: { className?: string }) {
return <div className={cn('bg-gradient-to-b from-primary-600 to-primary-400', className)} />
}
export default Gradient
================================================
FILE: src/components/gradient/index.ts
================================================
export { default as Gradient } from './gradient'
================================================
FILE: src/components/header/header.tsx
================================================
import { Logo } from '@/components/logo'
import { Link } from 'react-router-dom'
function Header({ title }: { title?: string }) {
return (
<header className="relative py-6">
<div className="mx-auto w-full max-w-6xl px-6">
<div className="relative flex items-center justify-between">
<h1 className="m-0 text-xl font-bold uppercase leading-none">
<Link to="/" className="flex items-center gap-2 no-underline">
<Logo />
<span>{title}</span>
</Link>
</h1>
</div>
</div>
</header>
)
}
export default Header
================================================
FILE: src/components/header/index.ts
================================================
export { default as Header } from './header'
================================================
FILE: src/components/hero/hero.tsx
================================================
import { NewsletterForm } from '@/components/newsletter-form'
import { cn } from '@/utils/cn'
import type { ReactNode } from 'react'
import { useEffect, useRef } from 'react'
import ScrollReveal from 'scrollreveal'
type ScrollRevealRefElement = HTMLDivElement | HTMLHeadingElement | HTMLParagraphElement
function Hero({
className,
content,
illustration,
title,
}: {
className?: string
content: string
illustration?: ReactNode
title: string
}) {
const scrollRevealRef = useRef<ScrollRevealRefElement[]>([])
useEffect(() => {
if (scrollRevealRef.current.length > 0) {
scrollRevealRef.current.map((ref) =>
ScrollReveal().reveal(ref, {
duration: 1000,
distance: '40px',
easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
origin: 'top',
interval: 150,
}),
)
}
return () => ScrollReveal().destroy()
}, [])
function onNewsletterSubmit(values: any) {
return new Promise((resolve) => {
setTimeout(() => {
resolve({ values })
}, 1000)
})
}
const addToScrollRevealRef = (el: ScrollRevealRefElement) => {
scrollRevealRef.current.push(el)
}
return (
<section className={cn('text-center lg:w-full lg:py-20 lg:text-left', className)}>
<div className="hero mx-auto w-full max-w-6xl px-6">
<div className="hero-inner relative lg:flex">
<div className="hero-copy pb-16 pt-10 lg:min-w-[40rem] lg:pr-20 lg:pt-16">
<div className="mx-auto w-full max-w-3xl">
<h1 className="mb-4 mt-0 text-4xl font-bold md:text-5xl " ref={addToScrollRevealRef}>
{title}
</h1>
<p className="prose prose-xl m-auto text-gray-500" ref={addToScrollRevealRef}>
{content}
</p>
</div>
<div ref={addToScrollRevealRef}>
<NewsletterForm
className="mx-auto mt-8 max-w-md lg:mx-0"
submitText="Get early access"
onSubmit={onNewsletterSubmit}
/>
</div>
</div>
{!!illustration && (
<div className="relative -mx-6 py-10 lg:mx-0 lg:p-0">{illustration}</div>
)}
</div>
</div>
</section>
)
}
export default Hero
================================================
FILE: src/components/hero/illustration.tsx
================================================
import { Gradient } from '@/components/gradient'
import { useEffect, useRef } from 'react'
import ScrollReveal from 'scrollreveal'
function Illustration({ className }: { className?: string }) {
const scrollRevealOneRef = useRef<HTMLDivElement[]>([])
const scrollRevealTwoRef = useRef<HTMLDivElement[]>([])
const addToScrollRevealOneRef = (el) => {
scrollRevealOneRef.current.push(el)
}
const addToScrollRevealTwoRef = (el) => {
scrollRevealTwoRef.current.push(el)
}
useEffect(() => {
if (scrollRevealOneRef.current.length > 0) {
scrollRevealOneRef.current.map((ref) =>
ScrollReveal().reveal(ref, {
delay: 1000,
duration: 1400,
distance: '40px',
easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
origin: 'bottom',
interval: 200,
}),
)
}
if (scrollRevealTwoRef.current.length > 0) {
scrollRevealTwoRef.current.map((ref) =>
ScrollReveal().reveal(ref, {
delay: 400,
duration: 600,
distance: '40px',
easing: 'cubic-bezier(0.5, -0.01, 0, 1.005)',
origin: 'right',
interval: 150,
}),
)
}
return () => ScrollReveal().destroy()
}, [])
return (
<div className={className}>
<Gradient className="absolute inset-0 lg:hidden" />
<div ref={addToScrollRevealTwoRef} className="absolute left-16 top-4 lg:-top-20 lg:left-24">
<svg width="124" height="64" viewBox="0 0 124 64" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient x1="0%" y1="50%" x2="114.418%" y2="50%" id="squares-1-a">
<stop stopColor="#6EFACC" offset="0%" />
<stop stopColor="#6EFACC" stopOpacity="0" offset="100%" />
</linearGradient>
</defs>
<path
d="M0 0h4v4H0V0zm0 12h4v4H0v-4zm0 12h4v4H0v-4zm0 12h4v4H0v-4zm0 12h4v4H0v-4zm0 12h4v4H0v-4zM12 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM24 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM36 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM48 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM60 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM72 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM84 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zM96 0h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4V0zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4z"
fill="url(#squares-1-a)"
fillRule="evenodd"
/>
</svg>
</div>
<div
ref={addToScrollRevealTwoRef}
className="absolute hidden lg:-bottom-28 lg:left-40 lg:block"
>
<svg width="64" height="88" viewBox="0 0 64 88" xmlns="http://www.w3.org/2000/svg">
<defs>
<linearGradient x1="0%" y1="50%" x2="114.418%" y2="50%" id="squares-2-a">
<stop stopColor="#6EFACC" offset="0%" />
<stop stopColor="#6EFACC" stopOpacity="0" offset="100%" />
</linearGradient>
</defs>
<path
d="M80 574h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm12-60h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4zm0 12h4v4h-4v-4z"
transform="rotate(90 359 279)"
fill="url(#squares-2-a)"
fillRule="evenodd"
/>
</svg>
</div>
<div
ref={addToScrollRevealTwoRef}
className="absolute -top-48 left-96 hidden drop-shadow-2xl lg:block"
>
<svg width="400" height="400" viewBox="0 0 400 400" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient
cx="56.15%"
cy="27.43%"
fx="56.15%"
fy="27.43%"
r="57.526%"
gradientTransform="matrix(.5626 -.82673 .8022 .54591 .026 .589)"
id="ball-1-a"
>
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="34.827%" />
<stop stopColor="#818cf8" offset="100%" />
</radialGradient>
</defs>
<circle cx="200" cy="200" r="200" fill="#ffffff" fillRule="evenodd" />
<circle cx="200" cy="200" r="200" fill="url(#ball-1-a)" fillRule="evenodd" />
</svg>
</div>
<div
className="hero-ball hero-ball-2 absolute left-16 top-72 drop-shadow-2xl lg:-left-16 lg:top-80"
ref={addToScrollRevealOneRef}
>
<svg width="200" height="200" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient
cx="56.15%"
cy="27.43%"
fx="56.15%"
fy="27.43%"
r="57.526%"
gradientTransform="matrix(.5626 -.82673 .8022 .54591 .026 .589)"
id="ball-2-a"
>
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="34.827%" />
<stop stopColor="#818cf8" offset="100%" />
</radialGradient>
</defs>
<circle cx="100" cy="100" r="100" fill="#ffffff" fillRule="evenodd" />
<circle cx="100" cy="100" r="100" fill="url(#ball-2-a)" fillRule="evenodd" />
</svg>
</div>
<div ref={addToScrollRevealTwoRef} className="hero-illustration-browser drop-shadow-2xl">
<svg
className="ml-auto max-w-screen-sm lg:max-w-none"
width="800"
height="450"
viewBox="0 0 800 450"
xmlns="http://www.w3.org/2000/svg"
>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="browser-a">
<stop stopColor="#F89595" offset="0%" />
<stop stopColor="#EF5C5C" offset="100%" />
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="browser-b">
<stop stopColor="#FFDFB0" offset="0%" />
<stop stopColor="#FFBB78" offset="100%" />
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="browser-c">
<stop stopColor="#83E78D" offset="0%" />
<stop stopColor="#4BCA55" offset="100%" />
</linearGradient>
<filter
x="-30%"
y="-42.9%"
width="184%"
height="220%"
filterUnits="objectBoundingBox"
id="browser-d"
>
<feOffset dx="24" dy="24" in="SourceAlpha" result="shadowOffsetOuter1" />
<feGaussianBlur stdDeviation="24" in="shadowOffsetOuter1" result="shadowBlurOuter1" />
<feColorMatrix
values="0 0 0 0 0.866666667 0 0 0 0 0.905882353 0 0 0 0 0.937254902 0 0 0 0.56 0"
in="shadowBlurOuter1"
result="shadowMatrixOuter1"
/>
<feMerge>
<feMergeNode in="shadowMatrixOuter1" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<linearGradient x1="19.946%" y1="72.147%" x2="73.772%" y2="18.374%" id="browser-e">
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="100%" />
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="browser-f">
<stop stopColor="#c7d2fe" offset="0%" />
<stop stopColor="#818cf8" offset="100%" />
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="browser-g">
<stop stopColor="#c7d2fe" offset="0%" />
<stop stopColor="#a5b4fc" offset="100%" />
</linearGradient>
<linearGradient x1="94.808%" y1="-15.701%" x2="6.924%" y2="82.567%" id="browser-h">
<stop stopColor="#6ee7b7" stopOpacity="0" offset="0%" />
<stop stopColor="#6ee7b7" offset="100%" />
</linearGradient>
<linearGradient x1="1.733%" y1="-10.509%" y2="77.375%" id="browser-i">
<stop stopColor="#6EFACC" stopOpacity="0" offset="0%" />
<stop stopColor="#6EFACC" offset="100%" />
</linearGradient>
<linearGradient x1="92.458%" y1="5.866%" x2="0%" y2="100%" id="browser-j">
<stop stopColor="#6ee7b7" offset="0%" />
<stop stopColor="#6ee7b7" stopOpacity="0" offset="100%" />
</linearGradient>
<linearGradient x1="92.458%" y1="5.866%" x2="0%" y2="100%" id="browser-k">
<stop stopColor="#6ee7b7" stopOpacity="0" offset="0%" />
<stop stopColor="#6ee7b7" stopOpacity="0.513" offset="48.724%" />
<stop stopColor="#6ee7b7" stopOpacity="0" offset="100%" />
</linearGradient>
<linearGradient x1="92.458%" y1="5.866%" x2="0%" y2="100%" id="browser-l">
<stop stopColor="#6ee7b7" stopOpacity="0" offset="0%" />
<stop stopColor="#6ee7b7" stopOpacity="0.513" offset="47.494%" />
<stop stopColor="#6ee7b7" stopOpacity="0" offset="100%" />
</linearGradient>
<filter
x="-23.1%"
y="-21.8%"
width="192.3%"
height="187.3%"
filterUnits="objectBoundingBox"
id="browser-m"
>
<feOffset dx="24" dy="24" in="SourceAlpha" result="shadowOffsetOuter1" />
<feGaussianBlur stdDeviation="12" in="shadowOffsetOuter1" result="shadowBlurOuter1" />
<feColorMatrix
values="0 0 0 0 0.866666667 0 0 0 0 0.905882353 0 0 0 0 0.937254902 0 0 0 0.56 0"
in="shadowBlurOuter1"
result="shadowMatrixOuter1"
/>
<feMerge>
<feMergeNode in="shadowMatrixOuter1" />
<feMergeNode in="SourceGraphic" />
</feMerge>
</filter>
<linearGradient x1="100%" y1="50%" x2="-57.904%" y2="50%" id="browser-n">
<stop stopColor="#c7d2fe" offset="0%" />
<stop stopColor="#818cf8" offset="100%" />
</linearGradient>
<filter
x="-500%"
y="-500%"
width="1000%"
height="1000%"
filterUnits="objectBoundingBox"
id="dropshadow-1"
>
<feOffset dy="16" in="SourceAlpha" result="shadowOffsetOuter" />
<feGaussianBlur stdDeviation="24" in="shadowOffsetOuter" result="shadowBlurOuter" />
<feColorMatrix
values="0 0 0 0 0.10 0 0 0 0 0.17 0 0 0 0 0.21 0 0 0 0.22 0"
in="shadowBlurOuter"
/>
</filter>
</defs>
<g fill="none" fillRule="evenodd">
<rect width="800" height="450" rx="2" fill="#ffffff" filter="url(#dropshadow-1)" />
<rect width="800" height="450" rx="2" fill="#ffffff" />
<path fill="#e2e8f0" d="M0 32h800v1H0z" />
<circle fill="url(#browser-a)" cx="24" cy="16" r="4" />
<circle fill="url(#browser-b)" cx="40" cy="16" r="4" />
<circle fill="url(#browser-c)" cx="56" cy="16" r="4" />
<g filter="url(#browser-d)" transform="translate(505 196)" fillRule="nonzero">
<path
d="M100 100l100-50.426L103.193.762a7.087 7.087 0 0 0-6.393 0L0 49.574 100 100z"
fill="url(#browser-e)"
/>
<path d="M199 90L99 139.875v-40L199 50v40z" fill="url(#browser-f)" />
<path d="M100 139.875L0 90V50l100 49.875v40z" fill="url(#browser-g)" />
</g>
<g strokeWidth="2">
<path
stroke="url(#browser-h)"
d="M498.336 298.7l-62.117 30.105L194 208"
transform="translate(169 54)"
/>
<path
d="M511.219 127.805L269 7"
stroke="url(#browser-i)"
transform="translate(169 54)"
/>
<path
d="M312 157.547L533.512 43"
stroke="url(#browser-j)"
transform="translate(169 54)"
/>
<path
d="M222 114.547L443.512 0"
stroke="url(#browser-k)"
transform="translate(169 54)"
/>
<path
d="M0 356.547L221.512 242"
stroke="url(#browser-l)"
transform="translate(169 54)"
/>
<path
d="M215 319.266L312.031 268"
stroke="url(#browser-j)"
transform="translate(169 54)"
/>
</g>
<g
filter="url(#browser-m)"
transform="scale(-1 1) rotate(45 -338.122 -406.594)"
fillRule="nonzero"
>
<path
d="M52 0L.511 70.268a2.668 2.668 0 0 0-.478 1.987 2.63 2.63 0 0 0 1.076 1.732L52 110V0z"
fill="url(#browser-e)"
/>
<path
d="M103.49 70.27L52 0v110l50.89-36.011a2.637 2.637 0 0 0 1.077-1.732 2.669 2.669 0 0 0-.476-1.987z"
fill="url(#browser-n)"
/>
</g>
</g>
</svg>
</div>
<div
className="hero-ball hero-ball-3 absolute drop-shadow-2xl"
ref={addToScrollRevealOneRef}
style={{ top: '402px', left: '440px' }}
>
<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient
cx="56.15%"
cy="27.43%"
fx="56.15%"
fy="27.43%"
r="57.526%"
gradientTransform="matrix(.5626 -.82673 .8022 .54591 .026 .589)"
id="ball-3-a"
>
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="34.827%" />
<stop stopColor="#818cf8" offset="100%" />
</radialGradient>
</defs>
<circle cx="40" cy="40" r="40" fill="#ffffff" fillRule="evenodd" />
<circle cx="40" cy="40" r="40" fill="url(#ball-3-a)" fillRule="evenodd" />
</svg>
</div>
<div
className="hero-ball hero-ball-4 absolute -top-5 left-44 lg:-top-20 lg:left-72"
ref={addToScrollRevealOneRef}
>
<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient
cx="56.15%"
cy="27.43%"
fx="56.15%"
fy="27.43%"
r="57.526%"
gradientTransform="matrix(.5626 -.82673 .8022 .54591 .026 .589)"
id="ball-4-a"
>
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="34.827%" />
<stop stopColor="#818cf8" offset="100%" />
</radialGradient>
<filter
x="-500%"
y="-500%"
width="1000%"
height="1000%"
filterUnits="objectBoundingBox"
id="dropshadow-ball-4"
>
<feOffset dx="24" dy="24" in="SourceAlpha" result="shadowOffsetOuter" />
<feGaussianBlur stdDeviation="24" in="shadowOffsetOuter" result="shadowBlurOuter" />
<feColorMatrix
values="0 0 0 0 0.10 0 0 0 0 0.17 0 0 0 0 0.21 0 0 0 0.22 0"
in="shadowBlurOuter"
/>
</filter>
</defs>
<circle
cx="20"
cy="20"
r="20"
fill="#ffffff"
fillRule="evenodd"
filter="url(#dropshadow-ball-4)"
/>
<circle cx="20" cy="20" r="20" fill="url(#ball-4-a)" fillRule="evenodd" />
</svg>
</div>
<div
className="hero-ball hero-ball-5 absolute lg:-bottom-20 lg:left-80"
ref={addToScrollRevealOneRef}
>
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
<defs>
<radialGradient
cx="56.15%"
cy="27.43%"
fx="56.15%"
fy="27.43%"
r="57.526%"
gradientTransform="matrix(.5626 -.82673 .8022 .54591 .026 .589)"
id="ball-5-a"
>
<stop stopColor="#eef2ff" offset="0%" />
<stop stopColor="#c7d2fe" offset="34.827%" />
<stop stopColor="#818cf8" offset="100%" />
</radialGradient>
<filter
x="-500%"
y="-500%"
width="1000%"
height="1000%"
filterUnits="objectBoundingBox"
id="dropshadow-ball-5"
>
<feOffset dx="24" dy="24" in="SourceAlpha" result="shadowOffsetOuter" />
<feGaussianBlur stdDeviation="24" in="shadowOffsetOuter" result="shadowBlurOuter" />
<feColorMatrix
values="0 0 0 0 0.10 0 0 0 0 0.17 0 0 0 0 0.21 0 0 0 0.22 0"
in="shadowBlurOuter"
/>
</filter>
</defs>
<circle
cx="12"
cy="12"
r="12"
fill="#ffffff"
fillRule="evenodd"
filter="url(#dropshadow-ball-5)"
/>
<circle cx="12" cy="12" r="12" fill="url(#ball-5-a)" fillRule="evenodd" />
</svg>
</div>
</div>
)
}
export default Illustration
================================================
FILE: src/components/hero/index.ts
================================================
export { default as Hero } from './hero'
export { default as HeroIllustration } from './illustration'
================================================
FILE: src/components/layout/index.ts
================================================
export { default as Layout } from './layout'
================================================
FILE: src/components/layout/layout.tsx
================================================
import type { PropsWithChildren } from 'react'
import { Footer } from '@/components/footer'
import { Gradient } from '@/components/gradient'
import { Header } from '@/components/header'
import { cn } from '@/utils/cn'
function Layout({
children,
className,
}: PropsWithChildren<{
className?: string
}>) {
return (
<div
className={cn(
'relative mx-auto my-0 flex min-h-screen max-w-screen-2xl flex-col overflow-hidden bg-white shadow-2xl',
className,
)}
>
<Gradient className="absolute bottom-0 left-1/2 top-0 ml-28 hidden w-1/2 lg:block" />
<Header />
<main className="flex-shrink-0 flex-grow items-center lg:flex">{children}</main>
<Footer />
</div>
)
}
export default Layout
================================================
FILE: src/components/logo/index.ts
================================================
export { default as Logo } from './logo'
================================================
FILE: src/components/logo/logo.tsx
================================================
function Logo({ className }: { className?: string }) {
return (
<svg
className={className}
width="32"
height="32"
viewBox="0 0 32 32"
xmlns="http://www.w3.org/2000/svg"
xmlnsXlink="http://www.w3.org/1999/xlink"
>
<defs>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="logo-b">
<stop stopColor="#A8A3F6" offset="0%" />
<stop stopColor="#c7d2fe" offset="100%" />
</linearGradient>
<path
d="M27.098 7.53l-9.441 9.44a8.084 8.084 0 0 0-.625.702 8 8 0 0 0 12.173 10.377l9.24-9.24A16.02 16.02 0 0 1 39 23c0 8.837-7.163 16-16 16S7 31.837 7 23 14.163 7 23 7c1.416 0 2.79.184 4.098.53z"
id="logo-a"
/>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="logo-d">
<stop stopColor="#c7d2fe" offset="0%" />
<stop stopColor="#818cf8" offset="100%" />
</linearGradient>
<path
d="M27.098 7.53l-9.441 9.44a8.084 8.084 0 0 0-.625.702 8 8 0 0 0 12.173 10.377l9.24-9.24A16.02 16.02 0 0 1 39 23c0 8.837-7.163 16-16 16S7 31.837 7 23 14.163 7 23 7c1.416 0 2.79.184 4.098.53z"
id="logo-c"
/>
</defs>
<g transform="translate(-7 -7)" fill="none" fillRule="evenodd">
<use fill="url(#logo-b)" transform="rotate(45 23 23)" xlinkHref="#logo-a" />
<use fill="url(#logo-d)" transform="scale(-1 1) rotate(45 0 -32.527)" xlinkHref="#logo-c" />
</g>
</svg>
)
}
export default Logo
================================================
FILE: src/components/menu/index.tsx
================================================
export { default as Menu } from './menu'
================================================
FILE: src/components/menu/menu-item.tsx
================================================
import { NavLink } from 'react-router-dom'
function MenuItem({ name, to }: { name: string; to: string }) {
return (
<li>
<NavLink
className={({ isActive }) =>
isActive ? 'border-b text-white' : 'text-white hover:border-b'
}
to={to}
>
{name}
</NavLink>
</li>
)
}
export default MenuItem
================================================
FILE: src/components/menu/menu.tsx
================================================
import MenuItem from '@/components/menu/menu-item'
const MENU_ITEMS = [
{ name: 'Contact', to: '/contact' },
{ name: 'About Us', to: '/about' },
{ name: "FAQ's", to: '/faqs' },
{ name: 'Support', to: '/support' },
]
function Menu({ className }: { className?: string }) {
return (
<ul className={className}>
{MENU_ITEMS.map((link) => (
<MenuItem key={link.name} to={link.to} name={link.name} />
))}
</ul>
)
}
export default Menu
================================================
FILE: src/components/newsletter-form/index.ts
================================================
export { default as NewsletterForm } from './newsletter-form'
================================================
FILE: src/components/newsletter-form/newsletter-form.tsx
================================================
import { cn } from '@/utils/cn'
import type { ChangeEvent, FormEvent } from 'react'
import { useState } from 'react'
function NewsletterForm({
className,
onSubmit,
submitText = 'Submit',
}: {
className?: string
onSubmit: (email: string) => Promise<any>
submitText?: string
}) {
const [email, setEmail] = useState('')
const [success, setSuccess] = useState(false)
async function handleSubmit(event: FormEvent<HTMLFormElement>) {
event.preventDefault()
const result = await onSubmit(email)
console.log(result)
setEmail('')
setSuccess(true)
}
function handleChange(event: ChangeEvent<HTMLInputElement>) {
setEmail(event.target.value)
}
return (
<form
onSubmit={handleSubmit}
className={cn('newsletter-form is-revealing flex flex-col gap-2 sm:flex-row', className)}
>
<div className="mr-2 flex-shrink flex-grow">
<label className="hidden" htmlFor="email" aria-hidden="true">
Email
</label>
<input
required
placeholder="Your best email…"
id="email"
name="email"
type="email"
value={email}
onChange={handleChange}
autoComplete="off"
className="w-full rounded-sm border border-gray-300 bg-white px-4 py-3 text-sm text-gray-500 shadow-none"
/>
{success && (
<div className="mt-2 text-xs italic text-gray-500">Email submitted successfully!</div>
)}
</div>
<div className="control">
<button
className="-mt-px inline-flex cursor-pointer justify-center whitespace-nowrap rounded-sm border-0 bg-gradient-to-r from-secondary-500 to-secondary-400 px-7 py-4 text-center font-medium leading-4 text-white no-underline shadow-lg"
type="submit"
>
{submitText}
</button>
</div>
</form>
)
}
export default NewsletterForm
================================================
FILE: src/components/scroll-to-top/index.ts
================================================
export { default as ScrollToTop } from './scroll-to-top'
================================================
FILE: src/components/scroll-to-top/scroll-to-top.tsx
================================================
import type { PropsWithChildren } from 'react'
import { Fragment, useLayoutEffect } from 'react'
import { useLocation } from 'react-router-dom'
function ScrollToTop({ children }: PropsWithChildren) {
const { pathname } = useLocation()
useLayoutEffect(() => {
window.scrollTo(0, 0)
}, [pathname])
return <Fragment>{children}</Fragment>
}
export default ScrollToTop
================================================
FILE: src/components/social-links/constants.ts
================================================
export const SOCIAL_LINKS = [
{
name: `Facebook`,
url: `https://facebook.com`,
svg: `<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M6.023 16L6 9H3V6h3V4c0-2.7 1.672-4 4.08-4 1.153 0 2.144.086 2.433.124v2.821h-1.67c-1.31 0-1.563.623-1.563 1.536V6H13l-1 3H9.28v7H6.023z" fill="#FFFFFF" /></svg>`,
},
{
name: `Google`,
url: `https://google.com`,
svg: `<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path
d="M7.9 7v2.4H12c-.2 1-1.2 3-4 3-2.4 0-4.3-2-4.3-4.4 0-2.4 2-4.4 4.3-4.4 1.4 0 2.3.6 2.8 1.1l1.9-1.8C11.5 1.7 9.9 1 8 1 4.1 1 1 4.1 1 8s3.1 7 7 7c4 0 6.7-2.8 6.7-6.8 0-.5 0-.8-.1-1.2H7.9z" fill="#FFFFFF" /></svg>`,
},
{
name: `Twitter`,
url: `https://twitter.com`,
svg: `<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg"><path d="M16 3c-.6.3-1.2.4-1.9.5.7-.4 1.2-1 1.4-1.8-.6.4-1.3.6-2.1.8-.6-.6-1.5-1-2.4-1-1.7 0-3.2 1.5-3.2 3.3 0 .3 0 .5.1.7-2.7-.1-5.2-1.4-6.8-3.4-.3.5-.4 1-.4 1.7 0 1.1.6 2.1 1.5 2.7-.5 0-1-.2-1.5-.4C.7 7.7 1.8 9 3.3 9.3c-.3.1-.6.1-.9.1-.2 0-.4 0-.6-.1.4 1.3 1.6 2.3 3.1 2.3-1.1.9-2.5 1.4-4.1 1.4H0c1.5.9 3.2 1.5 5 1.5 6 0 9.3-5 9.3-9.3v-.4C15 4.3 15.6 3.7 16 3z" fill="#FFFFFF" /></svg>`,
},
]
================================================
FILE: src/components/social-links/index.ts
================================================
export { default as SocialLinks } from './social-links'
================================================
FILE: src/components/social-links/social-link.tsx
================================================
import { SOCIAL_LINKS } from '@/components/social-links/constants'
function SocialLink({ link }: { link: (typeof SOCIAL_LINKS)[number] }) {
return (
<li>
<a href={link.url}>
<span className="sr-only">{link.name}</span>
<div dangerouslySetInnerHTML={{ __html: link.svg }} />
</a>
</li>
)
}
export default SocialLink
================================================
FILE: src/components/social-links/social-links.tsx
================================================
import { SOCIAL_LINKS } from '@/components/social-links/constants'
import MenuItem from '@/components/social-links/social-link'
import { cn } from '@/utils/cn'
function SocialLinks({ className }: { className?: string }) {
return (
<ul className={cn('flex gap-4', className)}>
{SOCIAL_LINKS.map((link) => (
<MenuItem key={link.name} link={link} />
))}
</ul>
)
}
export default SocialLinks
================================================
FILE: src/index.html
================================================
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/assets/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Holly Template</title>
<link
rel="stylesheet"
href="https://fonts.googleapis.com/css?family=Fira+Sans:400,400i,500,700"
/>
</head>
<body class="bg-gray-100">
<div id="root"></div>
<script type="module" src="/index.tsx"></script>
</body>
</html>
================================================
FILE: src/index.tsx
================================================
import React from 'react'
import { createRoot } from 'react-dom/client'
import App from './app'
import './assets/styles.css'
const root = document.getElementById('root') as HTMLElement
createRoot(root).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
================================================
FILE: src/routes/about.tsx
================================================
import { Article } from '@/components/article'
import { Layout } from '@/components/layout'
function AboutPage() {
return (
<Layout>
<Article
title="About"
imageAlt="Lorem Picsum"
imageSrc="https://picsum.photos/420/640?grayscale"
>
{/* prettier-ignore */}
<p>
Holly is a free HTML/CSS landing page designed and developed by <a href="https://twitter.com/pacovitiello">@pacovitiello</a> and <a href="https://twitter.com/DavidePacilio">@DavidePacilio</a>!
</p>
<p>
Holly is suitable for all kind of startups, it's easily customizable, and it's
downloadable for personal and commercial use.
</p>
<p>This template is distributed under the MIT License.</p>
</Article>
</Layout>
)
}
export default AboutPage
================================================
FILE: src/routes/contact.tsx
================================================
import { Article } from '@/components/article'
import { Layout } from '@/components/layout'
export default function ContactPage() {
return (
<Layout>
<Article
title="Contact"
imageAlt="Lorem Picsum"
imageSrc="https://picsum.photos/420/640?grayscale"
>
Add your contact information here.
</Article>
</Layout>
)
}
================================================
FILE: src/routes/faqs.tsx
================================================
import { Article } from '@/components/article'
import { Layout } from '@/components/layout'
export default function FaqsPage() {
return (
<Layout>
<Article
title="FAQ's"
imageAlt="Lorem Picsum"
imageSrc="https://picsum.photos/420/640?grayscale"
>
<p>Add your FAQ content here.</p>
<details
className="mt-4 block rounded-sm border px-4 open:border-primary-400 hover:border-primary-300"
open
>
<summary className="-mx-4 cursor-pointer border-primary-200 px-4 py-3">
What is Holly?
</summary>
<p>
Holly is a free HTML/CSS landing page designed and developed by{' '}
<a href="https://twitter.com/pacovitiello">@pacovitiello</a> and{' '}
<a href="https://twitter.com/DavidePacilio">@DavidePacilio</a>!
</p>
<p>
Holly is suitable for all kind of startups, it's easily customizable, and it's
downloadable for personal and commercial use.
</p>
</details>
<details className="mt-4 block rounded-sm border border-gray-200 px-4 hover:border-primary-300">
<summary className="-mx-4 cursor-pointer px-4 py-3">How can I use Holly?</summary>
<p>
Holly is licensed under the MIT License, which means you can use it for personal and
commercial projects for free.
</p>
<p>
You can also modify Holly to your needs, but you can't redistribute it or sell it as a
template.
</p>
</details>
<details className="mt-4 block rounded-sm border border-gray-200 px-4 hover:border-primary-300">
<summary className="-mx-4 cursor-pointer px-4 py-3">Can I contribute to Holly?</summary>
<p>
Yes, you can! Holly is an open source project, and you can contribute to it on{' '}
<a href="https://github.com/lukemcdonald/holly-react">GitHub</a>.
</p>
</details>
</Article>
</Layout>
)
}
================================================
FILE: src/routes/home.tsx
================================================
import { Hero, HeroIllustration } from '@/components/hero'
import { Layout } from '@/components/layout'
export default function HomePage() {
return (
<Layout>
<Hero
title="Landing template for startups"
content="Our landing page template works for all the devices, so you only have to setup it once, and get beautiful results forever."
illustration={<HeroIllustration />}
/>
</Layout>
)
}
================================================
FILE: src/routes/support.tsx
================================================
import { Article } from '@/components/article'
import { Layout } from '@/components/layout'
import { useState } from 'react'
export default function SupportPage() {
const [success, setSuccess] = useState(false)
function handleClick(e) {
e.preventDefault()
setSuccess(true)
}
return (
<Layout>
<Article
title="FAQ's"
imageAlt="Lorem Picsum"
imageSrc="https://picsum.photos/420/640?grayscale"
>
<p>Add your support content here.</p>
<form className="space-y-4">
<div>
<label className="block text-lg font-medium leading-10" htmlFor="name">
Name
</label>
<input
className="w-full rounded-sm border border-gray-300 bg-white px-4 py-3 text-sm text-gray-500 shadow-none"
id="name"
name="name"
type="text"
/>
</div>
<div>
<label className="block text-lg font-medium leading-10" htmlFor="email">
Email
</label>
<input
className="w-full rounded-sm border border-gray-300 bg-white px-4 py-3 text-sm text-gray-500 shadow-none"
id="email"
name="email"
type="email"
/>
</div>
<div>
<label className="block text-lg font-medium leading-10" htmlFor="message">
Message
</label>
<textarea
className="w-full rounded-sm border border-gray-300 bg-white px-4 py-3 text-sm text-gray-500 shadow-none"
id="message"
name="message"
/>
</div>
<button
className="-mt-px inline-flex cursor-pointer justify-center whitespace-nowrap rounded-sm border-0 bg-gradient-to-r from-secondary-500 to-secondary-400 px-7 py-4 text-center font-medium leading-4 text-white no-underline shadow-lg"
onClick={handleClick}
type="submit"
>
Submit
</button>
{success && (
<div className="mt-2 text-xs italic text-gray-500">
🎉 Do something when the form is submitted!
</div>
)}
</form>
</Article>
</Layout>
)
}
================================================
FILE: src/utils/cn.ts
================================================
import { ClassValue, clsx } from 'clsx'
import { twMerge } from 'tailwind-merge'
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs))
}
================================================
FILE: src/vite-env.d.ts
================================================
/// <reference types="vite/client" />
================================================
FILE: styles/tailwind.css
================================================
/**
* Base
* -----------------------------------------------------------------------------
*/
@import 'tailwindcss/base';
/**
* Components
* -----------------------------------------------------------------------------
*/
@import 'tailwindcss/components';
/**
* Utilites
* -----------------------------------------------------------------------------
*/
@import 'tailwindcss/utilities';
================================================
FILE: tailwind.config.js
================================================
const { fontFamily } = require(`tailwindcss/defaultTheme`)
const colors = require('tailwindcss/colors')
module.exports = {
content: ['./src/**/*.{html,ts,tsx}'],
theme: {
extend: {
fontFamily: {
sans: ['Fira Sans', ...fontFamily.sans],
},
typography: (theme) => ({
DEFAULT: {
css: {
a: {
color: theme('colors.current'),
},
},
},
}),
},
colors: {
inherit: 'inherit',
transparent: 'transparent',
current: 'currentColor',
black: '#000000',
white: '#ffffff',
gray: colors.slate,
primary: colors.indigo,
secondary: colors.rose,
tertiary: colors.emerald,
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/typography')],
}
================================================
FILE: tsconfig.json
================================================
{
"compilerOptions": {
"allowJs": false,
"allowSyntheticDefaultImports": true,
"esModuleInterop": false,
"forceConsistentCasingInFileNames": true,
"isolatedModules": true,
"jsx": "react-jsx",
"lib": ["DOM", "DOM.Iterable", "ESNext"],
"module": "ESNext",
"moduleResolution": "Node",
"noEmit": true,
"noImplicitAny": false,
"noUnusedLocals": true,
"paths": { "@/*": ["./src/*"] },
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "ESNext",
"typeRoots": ["./node_modules/@types"]
},
"include": ["**/*.ts", "**/*.tsx"],
"references": [{ "path": "./tsconfig.node.json" }]
}
================================================
FILE: tsconfig.node.json
================================================
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"composite": true,
"module": "ESNext",
"moduleResolution": "Node"
},
"include": ["vite.config.ts"]
}
================================================
FILE: vite.config.ts
================================================
import react from '@vitejs/plugin-react'
import path from 'path'
import { defineConfig } from 'vite'
// https://vitejs.dev/config/
export default defineConfig({
root: 'src',
base: '/holly-react/',
build: {
outDir: '../dist',
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
plugins: [react()],
})
gitextract_s3upq0ay/ ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .prettierignore ├── README.md ├── package.json ├── postcss.config.js ├── src/ │ ├── app.tsx │ ├── assets/ │ │ └── styles.css │ ├── components/ │ │ ├── article/ │ │ │ ├── article.tsx │ │ │ ├── content.tsx │ │ │ ├── image.tsx │ │ │ ├── index.ts │ │ │ ├── media.tsx │ │ │ └── title.tsx │ │ ├── footer/ │ │ │ ├── footer.tsx │ │ │ └── index.ts │ │ ├── gradient/ │ │ │ ├── gradient.tsx │ │ │ └── index.ts │ │ ├── header/ │ │ │ ├── header.tsx │ │ │ └── index.ts │ │ ├── hero/ │ │ │ ├── hero.tsx │ │ │ ├── illustration.tsx │ │ │ └── index.ts │ │ ├── layout/ │ │ │ ├── index.ts │ │ │ └── layout.tsx │ │ ├── logo/ │ │ │ ├── index.ts │ │ │ └── logo.tsx │ │ ├── menu/ │ │ │ ├── index.tsx │ │ │ ├── menu-item.tsx │ │ │ └── menu.tsx │ │ ├── newsletter-form/ │ │ │ ├── index.ts │ │ │ └── newsletter-form.tsx │ │ ├── scroll-to-top/ │ │ │ ├── index.ts │ │ │ └── scroll-to-top.tsx │ │ └── social-links/ │ │ ├── constants.ts │ │ ├── index.ts │ │ ├── social-link.tsx │ │ └── social-links.tsx │ ├── index.html │ ├── index.tsx │ ├── routes/ │ │ ├── about.tsx │ │ ├── contact.tsx │ │ ├── faqs.tsx │ │ ├── home.tsx │ │ └── support.tsx │ ├── utils/ │ │ └── cn.ts │ └── vite-env.d.ts ├── styles/ │ └── tailwind.css ├── tailwind.config.js ├── tsconfig.json ├── tsconfig.node.json └── vite.config.ts
SYMBOL INDEX (28 symbols across 26 files)
FILE: src/app.tsx
function App (line 9) | function App() {
FILE: src/components/article/article.tsx
function Article (line 6) | function Article({
FILE: src/components/article/content.tsx
function Content (line 4) | function Content({
FILE: src/components/article/image.tsx
function Image (line 3) | function Image({
FILE: src/components/article/media.tsx
function Media (line 4) | function Media({
FILE: src/components/article/title.tsx
function Title (line 4) | function Title({ children, className }: PropsWithChildren<{ className?: ...
FILE: src/components/footer/footer.tsx
function Footer (line 4) | function Footer() {
FILE: src/components/gradient/gradient.tsx
function Gradient (line 3) | function Gradient({ className }: { className?: string }) {
FILE: src/components/header/header.tsx
function Header (line 4) | function Header({ title }: { title?: string }) {
FILE: src/components/hero/hero.tsx
type ScrollRevealRefElement (line 7) | type ScrollRevealRefElement = HTMLDivElement | HTMLHeadingElement | HTML...
function Hero (line 9) | function Hero({
FILE: src/components/hero/illustration.tsx
function Illustration (line 5) | function Illustration({ className }: { className?: string }) {
FILE: src/components/layout/layout.tsx
function Layout (line 8) | function Layout({
FILE: src/components/logo/logo.tsx
function Logo (line 1) | function Logo({ className }: { className?: string }) {
FILE: src/components/menu/menu-item.tsx
function MenuItem (line 3) | function MenuItem({ name, to }: { name: string; to: string }) {
FILE: src/components/menu/menu.tsx
constant MENU_ITEMS (line 3) | const MENU_ITEMS = [
function Menu (line 10) | function Menu({ className }: { className?: string }) {
FILE: src/components/newsletter-form/newsletter-form.tsx
function NewsletterForm (line 5) | function NewsletterForm({
FILE: src/components/scroll-to-top/scroll-to-top.tsx
function ScrollToTop (line 5) | function ScrollToTop({ children }: PropsWithChildren) {
FILE: src/components/social-links/constants.ts
constant SOCIAL_LINKS (line 1) | const SOCIAL_LINKS = [
FILE: src/components/social-links/social-link.tsx
function SocialLink (line 3) | function SocialLink({ link }: { link: (typeof SOCIAL_LINKS)[number] }) {
FILE: src/components/social-links/social-links.tsx
function SocialLinks (line 5) | function SocialLinks({ className }: { className?: string }) {
FILE: src/routes/about.tsx
function AboutPage (line 4) | function AboutPage() {
FILE: src/routes/contact.tsx
function ContactPage (line 4) | function ContactPage() {
FILE: src/routes/faqs.tsx
function FaqsPage (line 4) | function FaqsPage() {
FILE: src/routes/home.tsx
function HomePage (line 4) | function HomePage() {
FILE: src/routes/support.tsx
function SupportPage (line 5) | function SupportPage() {
FILE: src/utils/cn.ts
function cn (line 4) | function cn(...inputs: ClassValue[]) {
Condensed preview — 53 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (110K chars).
[
{
"path": ".eslintignore",
"chars": 68,
"preview": "/.cache\n/.github\n/public\n/node_modules\n/dist\n/src/assets/styles.css\n"
},
{
"path": ".eslintrc",
"chars": 410,
"preview": "{\n \"root\": true,\n\n \"env\": {\n \"browser\": true,\n \"es2021\": true\n },\n\n \"extends\": [\n \"plugin:prettier/recommen"
},
{
"path": ".gitignore",
"chars": 45,
"preview": "node_modules\n.DS_Store\ndist\ndist-ssr\n*.local\n"
},
{
"path": ".prettierignore",
"chars": 68,
"preview": "/.cache\n/.github\n/public\n/node_modules\n/dist\n/src/assets/styles.css\n"
},
{
"path": "README.md",
"chars": 216,
"preview": "# Holly\n\nA React implementation of [Davide Pacilio's](https://cruip.com/) free landing page template, [Holly](https://lu"
},
{
"path": "package.json",
"chars": 2234,
"preview": "{\n \"version\": \"4.0.0\",\n \"name\": \"holly-react\",\n \"description\": \"React version of Holly\",\n \"author\": \"Luke McDonald ("
},
{
"path": "postcss.config.js",
"chars": 163,
"preview": "module.exports = {\n plugins: [\n require(`postcss-import`),\n require(`tailwindcss/nesting`),\n require(`tailwind"
},
{
"path": "src/app.tsx",
"chars": 1049,
"preview": "import { ScrollToTop } from '@/components/scroll-to-top'\nimport AboutPage from '@/routes/about'\nimport ContactPage from "
},
{
"path": "src/assets/styles.css",
"chars": 53850,
"preview": "/**\n * Base\n * -----------------------------------------------------------------------------\n */\n/*! tailwindcss v3.4.7 "
},
{
"path": "src/components/article/article.tsx",
"chars": 1081,
"preview": "import { ArticleContent, ArticleImage, ArticleMedia, ArticleTitle } from '@/components/article'\nimport { cn } from '@/ut"
},
{
"path": "src/components/article/content.tsx",
"chars": 381,
"preview": "import { cn } from '@/utils/cn'\nimport type { PropsWithChildren } from 'react'\n\nfunction Content({\n children,\n classNa"
},
{
"path": "src/components/article/image.tsx",
"chars": 402,
"preview": "import { cn } from '@/utils/cn'\n\nfunction Image({\n alt,\n className,\n height,\n src,\n width,\n}: {\n alt: string\n cla"
},
{
"path": "src/components/article/index.ts",
"chars": 251,
"preview": "export { default as Article } from './article'\nexport { default as ArticleContent } from './content'\nexport { default as"
},
{
"path": "src/components/article/media.tsx",
"chars": 438,
"preview": "import { cn } from '@/utils/cn'\nimport type { PropsWithChildren } from 'react'\n\nfunction Media({\n as: Tag = 'figure',\n "
},
{
"path": "src/components/article/title.tsx",
"chars": 328,
"preview": "import { cn } from '@/utils/cn'\nimport type { PropsWithChildren } from 'react'\n\nfunction Title({ children, className }: "
},
{
"path": "src/components/footer/footer.tsx",
"chars": 735,
"preview": "import { Menu } from '@/components/menu'\nimport { SocialLinks } from '@/components/social-links'\n\nfunction Footer() {\n "
},
{
"path": "src/components/footer/index.ts",
"chars": 45,
"preview": "export { default as Footer } from './footer'\n"
},
{
"path": "src/components/gradient/gradient.tsx",
"chars": 214,
"preview": "import { cn } from '@/utils/cn'\n\nfunction Gradient({ className }: { className?: string }) {\n return <div className={cn("
},
{
"path": "src/components/gradient/index.ts",
"chars": 49,
"preview": "export { default as Gradient } from './gradient'\n"
},
{
"path": "src/components/header/header.tsx",
"chars": 616,
"preview": "import { Logo } from '@/components/logo'\nimport { Link } from 'react-router-dom'\n\nfunction Header({ title }: { title?: s"
},
{
"path": "src/components/header/index.ts",
"chars": 45,
"preview": "export { default as Header } from './header'\n"
},
{
"path": "src/components/hero/hero.tsx",
"chars": 2314,
"preview": "import { NewsletterForm } from '@/components/newsletter-form'\nimport { cn } from '@/utils/cn'\nimport type { ReactNode } "
},
{
"path": "src/components/hero/illustration.tsx",
"chars": 18795,
"preview": "import { Gradient } from '@/components/gradient'\nimport { useEffect, useRef } from 'react'\nimport ScrollReveal from 'scr"
},
{
"path": "src/components/hero/index.ts",
"chars": 102,
"preview": "export { default as Hero } from './hero'\nexport { default as HeroIllustration } from './illustration'\n"
},
{
"path": "src/components/layout/index.ts",
"chars": 45,
"preview": "export { default as Layout } from './layout'\n"
},
{
"path": "src/components/layout/layout.tsx",
"chars": 754,
"preview": "import type { PropsWithChildren } from 'react'\n\nimport { Footer } from '@/components/footer'\nimport { Gradient } from '@"
},
{
"path": "src/components/logo/index.ts",
"chars": 41,
"preview": "export { default as Logo } from './logo'\n"
},
{
"path": "src/components/logo/logo.tsx",
"chars": 1495,
"preview": "function Logo({ className }: { className?: string }) {\n return (\n <svg\n className={className}\n width=\"32\"\n"
},
{
"path": "src/components/menu/index.tsx",
"chars": 41,
"preview": "export { default as Menu } from './menu'\n"
},
{
"path": "src/components/menu/menu-item.tsx",
"chars": 360,
"preview": "import { NavLink } from 'react-router-dom'\n\nfunction MenuItem({ name, to }: { name: string; to: string }) {\n return (\n "
},
{
"path": "src/components/menu/menu.tsx",
"chars": 471,
"preview": "import MenuItem from '@/components/menu/menu-item'\n\nconst MENU_ITEMS = [\n { name: 'Contact', to: '/contact' },\n { name"
},
{
"path": "src/components/newsletter-form/index.ts",
"chars": 62,
"preview": "export { default as NewsletterForm } from './newsletter-form'\n"
},
{
"path": "src/components/newsletter-form/newsletter-form.tsx",
"chars": 1924,
"preview": "import { cn } from '@/utils/cn'\nimport type { ChangeEvent, FormEvent } from 'react'\nimport { useState } from 'react'\n\nfu"
},
{
"path": "src/components/scroll-to-top/index.ts",
"chars": 57,
"preview": "export { default as ScrollToTop } from './scroll-to-top'\n"
},
{
"path": "src/components/scroll-to-top/scroll-to-top.tsx",
"chars": 380,
"preview": "import type { PropsWithChildren } from 'react'\nimport { Fragment, useLayoutEffect } from 'react'\nimport { useLocation } "
},
{
"path": "src/components/social-links/constants.ts",
"chars": 1225,
"preview": "export const SOCIAL_LINKS = [\n {\n name: `Facebook`,\n url: `https://facebook.com`,\n svg: `<svg width=\"16\" heigh"
},
{
"path": "src/components/social-links/index.ts",
"chars": 56,
"preview": "export { default as SocialLinks } from './social-links'\n"
},
{
"path": "src/components/social-links/social-link.tsx",
"chars": 357,
"preview": "import { SOCIAL_LINKS } from '@/components/social-links/constants'\n\nfunction SocialLink({ link }: { link: (typeof SOCIAL"
},
{
"path": "src/components/social-links/social-links.tsx",
"chars": 422,
"preview": "import { SOCIAL_LINKS } from '@/components/social-links/constants'\nimport MenuItem from '@/components/social-links/socia"
},
{
"path": "src/index.html",
"chars": 510,
"preview": "<!doctype html>\n<html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\" />\n <link rel=\"icon\" type=\"image/svg+xml\" href=\"/"
},
{
"path": "src/index.tsx",
"chars": 270,
"preview": "import React from 'react'\nimport { createRoot } from 'react-dom/client'\nimport App from './app'\n\nimport './assets/styles"
},
{
"path": "src/routes/about.tsx",
"chars": 840,
"preview": "import { Article } from '@/components/article'\nimport { Layout } from '@/components/layout'\n\nfunction AboutPage() {\n re"
},
{
"path": "src/routes/contact.tsx",
"chars": 375,
"preview": "import { Article } from '@/components/article'\nimport { Layout } from '@/components/layout'\n\nexport default function Con"
},
{
"path": "src/routes/faqs.tsx",
"chars": 2072,
"preview": "import { Article } from '@/components/article'\nimport { Layout } from '@/components/layout'\n\nexport default function Faq"
},
{
"path": "src/routes/home.tsx",
"chars": 438,
"preview": "import { Hero, HeroIllustration } from '@/components/hero'\nimport { Layout } from '@/components/layout'\n\nexport default "
},
{
"path": "src/routes/support.tsx",
"chars": 2294,
"preview": "import { Article } from '@/components/article'\nimport { Layout } from '@/components/layout'\nimport { useState } from 're"
},
{
"path": "src/utils/cn.ts",
"chars": 161,
"preview": "import { ClassValue, clsx } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassVal"
},
{
"path": "src/vite-env.d.ts",
"chars": 38,
"preview": "/// <reference types=\"vite/client\" />\n"
},
{
"path": "styles/tailwind.css",
"chars": 398,
"preview": "/**\n * Base\n * -----------------------------------------------------------------------------\n */\n@import 'tailwindcss/ba"
},
{
"path": "tailwind.config.js",
"chars": 820,
"preview": "const { fontFamily } = require(`tailwindcss/defaultTheme`)\nconst colors = require('tailwindcss/colors')\n\nmodule.exports "
},
{
"path": "tsconfig.json",
"chars": 675,
"preview": "{\n \"compilerOptions\": {\n \"allowJs\": false,\n \"allowSyntheticDefaultImports\": true,\n \"esModuleInterop\": false,\n "
},
{
"path": "tsconfig.node.json",
"chars": 184,
"preview": "{\n \"compilerOptions\": {\n \"allowSyntheticDefaultImports\": true,\n \"composite\": true,\n \"module\": \"ESNext\",\n \"m"
},
{
"path": "vite.config.ts",
"chars": 349,
"preview": "import react from '@vitejs/plugin-react'\nimport path from 'path'\nimport { defineConfig } from 'vite'\n\n// https://vitejs."
}
]
About this extraction
This page contains the full source code of the lukemcdonald/holly-react GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 53 files (98.6 KB), approximately 34.8k tokens, and a symbol index with 28 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.