Skip to content

Commit

Permalink
fix prettier code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromehardaway committed Nov 24, 2024
1 parent 6eff66d commit 24b3ec5
Show file tree
Hide file tree
Showing 225 changed files with 944 additions and 2,747 deletions.
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"semi": true,
"printWidth": 100,
"endOfLine": "lf"
}
}
7 changes: 1 addition & 6 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ module.exports = {
policies: [
{
userAgent: "*",
disallow: [
"/profile",
"/blogs/search",
"/blogs/search",
"/courses/search",
],
disallow: ["/profile", "/blogs/search", "/blogs/search", "/courses/search"],
},
{ userAgent: "*", allow: "/" },
],
Expand Down
3 changes: 1 addition & 2 deletions postcss.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ module.exports = {
"@fullhuman/postcss-purgecss",
{
content: ["./src/**/*.tsx"],
defaultExtractor: (content) =>
content.match(/[\w-/:]+(?<!:)/g) || [],
defaultExtractor: (content) => content.match(/[\w-/:]+(?<!:)/g) || [],
safelist: {
standard: safelist,
deep: safelist,
Expand Down
24 changes: 8 additions & 16 deletions src/assets/css/fonts.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@
font-display: swap;
src: url("/fonts/playfair-display/playfair-display-v28-latin-regular.woff2");
src: local(""),
url("/fonts/playfair-display/playfair-display-v28-latin-regular.woff2")
format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-regular.woff")
format("woff");
url("/fonts/playfair-display/playfair-display-v28-latin-regular.woff2") format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-regular.woff") format("woff");
}

@font-face {
Expand All @@ -112,10 +110,8 @@
font-display: swap;
src: url("/fonts/playfair-display/playfair-display-v28-latin-600.woff2");
src: local(""),
url("/fonts/playfair-display/playfair-display-v28-latin-600.woff2")
format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-600.woff")
format("woff");
url("/fonts/playfair-display/playfair-display-v28-latin-600.woff2") format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-600.woff") format("woff");
}

@font-face {
Expand All @@ -125,10 +121,8 @@
font-display: swap;
src: url("/fonts/playfair-display/playfair-display-v28-latin-500.woff2");
src: local(""),
url("/fonts/playfair-display/playfair-display-v28-latin-500.woff2")
format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-500.woff")
format("woff");
url("/fonts/playfair-display/playfair-display-v28-latin-500.woff2") format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-500.woff") format("woff");
}

@font-face {
Expand All @@ -138,10 +132,8 @@
font-display: swap;
src: url("/fonts/playfair-display/playfair-display-v28-latin-700.woff2");
src: local(""),
url("/fonts/playfair-display/playfair-display-v28-latin-700.woff2")
format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-700.woff")
format("woff");
url("/fonts/playfair-display/playfair-display-v28-latin-700.woff2") format("woff2"),
url("/fonts/playfair-display/playfair-display-v28-latin-700.woff") format("woff");
}

/* Rossela Fonts */
Expand Down
39 changes: 13 additions & 26 deletions src/assets/css/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
url("/fonts/gotham/GothamPro-Light.woff") format("woff"),
url("/fonts/gotham/GothamPro-Light.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-Light.svg#GothamPro-Light") format("svg"),
url("/fonts/gotham/GothamPro-Light.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-Light.eot?#iefix") format("embedded-opentype");
font-weight: 100;
font-style: normal;
}
Expand All @@ -17,10 +16,8 @@
src: url("/fonts/gotham/GothamPro-LightItalic.woff2") format("woff2"),
url("/fonts/gotham/GothamPro-LightItalic.woff") format("woff"),
url("/fonts/gotham/GothamPro-LightItalic.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-LightItalic.svg#GothamPro-LightItalic")
format("svg"),
url("/fonts/gotham/GothamPro-LightItalic.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-LightItalic.svg#GothamPro-LightItalic") format("svg"),
url("/fonts/gotham/GothamPro-LightItalic.eot?#iefix") format("embedded-opentype");
font-weight: 100;
font-style: italic;
}
Expand All @@ -44,8 +41,7 @@
url("/fonts/gotham/GothamPro-Italic.woff") format("woff"),
url("/fonts/gotham/GothamPro-Italic.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-Italic.svg#GothamPro-Italic") format("svg"),
url("/fonts/gotham/GothamPro-Italic.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-Italic.eot?#iefix") format("embedded-opentype");
font-weight: 200;
font-style: italic;
}
Expand All @@ -57,8 +53,7 @@
url("/fonts/gotham/GothamPro-Medium.woff") format("woff"),
url("/fonts/gotham/GothamPro-Medium.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-Medium.svg#GothamPro-Medium") format("svg"),
url("/fonts/gotham/GothamPro-Medium.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-Medium.eot?#iefix") format("embedded-opentype");
font-weight: 400;
font-style: normal;
}
Expand All @@ -69,10 +64,8 @@
src: url("/fonts/gotham/GothamPro-MediumItalic.woff2") format("woff2"),
url("/fonts/gotham/GothamPro-MediumItalic.woff") format("woff"),
url("/fonts/gotham/GothamPro-MediumItalic.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-MediumItalic.svg#GothamPro-MediumItalic")
format("svg"),
url("/fonts/gotham/GothamPro-MediumItalic.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-MediumItalic.svg#GothamPro-MediumItalic") format("svg"),
url("/fonts/gotham/GothamPro-MediumItalic.eot?#iefix") format("embedded-opentype");
font-weight: 400;
font-style: italic;
}
Expand All @@ -84,8 +77,7 @@
url("/fonts/gotham/GothamPro-Bold.woff") format("woff"),
url("/fonts/gotham/GothamPro-Bold.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-Bold.svg#GothamPro-Bold") format("svg"),
url("/fonts/gotham/GothamPro-Bold.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-Bold.eot?#iefix") format("embedded-opentype");
font-weight: 600;
font-style: normal;
}
Expand All @@ -96,10 +88,8 @@
src: url("/fonts/gotham/GothamPro-BoldItalic.woff2") format("woff2"),
url("/fonts/gotham/GothamPro-BoldItalic.woff") format("woff"),
url("/fonts/gotham/GothamPro-BoldItalic.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-BoldItalic.svg#GothamPro-BoldItalic")
format("svg"),
url("/fonts/gotham/GothamPro-BoldItalic.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-BoldItalic.svg#GothamPro-BoldItalic") format("svg"),
url("/fonts/gotham/GothamPro-BoldItalic.eot?#iefix") format("embedded-opentype");
font-weight: 600;
font-style: italic;
}
Expand All @@ -111,8 +101,7 @@
url("/fonts/gotham/GothamPro-Black.woff") format("woff"),
url("/fonts/gotham/GothamPro-Black.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-Black.svg#GothamPro-Black") format("svg"),
url("/fonts/gotham/GothamPro-Black.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-Black.eot?#iefix") format("embedded-opentype");
font-weight: 800;
font-style: normal;
}
Expand All @@ -123,10 +112,8 @@
src: url("/fonts/gotham/GothamPro-BlackItalic.woff2") format("woff2"),
url("/fonts/gotham/GothamPro-BlackItalic.woff") format("woff"),
url("/fonts/gotham/GothamPro-BlackItalic.ttf") format("truetype"),
url("/fonts/gotham/GothamPro-BlackItalic.svg#GothamPro-BlackItalic")
format("svg"),
url("/fonts/gotham/GothamPro-BlackItalic.eot?#iefix")
format("embedded-opentype");
url("/fonts/gotham/GothamPro-BlackItalic.svg#GothamPro-BlackItalic") format("svg"),
url("/fonts/gotham/GothamPro-BlackItalic.eot?#iefix") format("embedded-opentype");
font-weight: 800;
font-style: italic;
}
Expand Down
28 changes: 5 additions & 23 deletions src/assets/css/swiper.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,32 +104,16 @@
background: rgba(0, 0, 0, 0.15);
}
.swiper-3d .swiper-slide-shadow-left {
background-image: linear-gradient(
to left,
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0)
);
background-image: linear-gradient(to left, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-right {
background-image: linear-gradient(
to right,
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0)
);
background-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-top {
background-image: linear-gradient(
to top,
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0)
);
background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-3d .swiper-slide-shadow-bottom {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0)
);
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
}
.swiper-css-mode > .swiper-wrapper {
overflow: auto;
Expand All @@ -153,9 +137,7 @@
flex-shrink: 0;
order: 9999;
}
.swiper-centered.swiper-horizontal
> .swiper-wrapper
> .swiper-slide:first-child {
.swiper-centered.swiper-horizontal > .swiper-wrapper > .swiper-slide:first-child {
margin-inline-start: var(--swiper-centered-offset-before);
}
.swiper-centered.swiper-horizontal > .swiper-wrapper::before {
Expand Down
5 changes: 1 addition & 4 deletions src/components/blog-card/blog-01.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import clsx from "clsx";
import Anchor from "@ui/anchor";
import { IBlog } from "@utils/types";

type TProps = Pick<
IBlog,
"title" | "path" | "category" | "postedAt" | "image" | "views"
> & {
type TProps = Pick<IBlog, "title" | "path" | "category" | "postedAt" | "image" | "views"> & {
className?: string;
};

Expand Down
5 changes: 1 addition & 4 deletions src/components/blog-card/blog-02.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import clsx from "clsx";
import Anchor from "@ui/anchor";
import { IBlog } from "@utils/types";

type TProps = Pick<
IBlog,
"title" | "path" | "category" | "postedAt" | "image" | "views"
> & {
type TProps = Pick<IBlog, "title" | "path" | "category" | "postedAt" | "image" | "views"> & {
className?: string;
};

Expand Down
10 changes: 2 additions & 8 deletions src/components/blog-card/blog-03.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import clsx from "clsx";
import Anchor from "@ui/anchor";
import { IBlog } from "@utils/types";

type TProps = Pick<
IBlog,
"image" | "path" | "title" | "category" | "postedAt" | "views"
> & {
type TProps = Pick<IBlog, "image" | "path" | "title" | "category" | "postedAt" | "views"> & {
className?: string;
};

Expand Down Expand Up @@ -34,10 +31,7 @@ const BlogCard = forwardRef<HTMLDivElement, TProps>(

<div className="info tw-pt-[26px]">
<div className="tw-text-base tw-font-medium tw-uppercase -tw-tracking-tightest tw-leading-[1.4] tw-mb-1.5">
<Anchor
path={category.path}
className="tw-text-inherit"
>
<Anchor path={category.path} className="tw-text-inherit">
{category.title}
</Anchor>
</div>
Expand Down
38 changes: 5 additions & 33 deletions src/components/blog-card/blog-05.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,33 +9,13 @@ import SocialShare from "@components/social-share/layout-03";

type TProps = Pick<
IBlog,
| "image"
| "path"
| "title"
| "postedAt"
| "views"
| "category"
| "author"
| "excerpt"
"image" | "path" | "title" | "postedAt" | "views" | "category" | "author" | "excerpt"
> & {
className?: string;
};

const BlogCard = forwardRef<HTMLDivElement, TProps>(
(
{
className,
image,
path,
title,
postedAt,
views,
category,
author,
excerpt,
},
ref
) => {
({ className, image, path, title, postedAt, views, category, author, excerpt }, ref) => {
return (
<div
className={clsx(
Expand Down Expand Up @@ -74,10 +54,7 @@ const BlogCard = forwardRef<HTMLDivElement, TProps>(
</h3>

<div className="tw-text-md tw-mt-5 tw-text-gray-300 tw-flex tw-items-center tw-flex-wrap">
<AuthorMeta
author={author}
className="tw-pr-5 md:tw-pr-8"
/>
<AuthorMeta author={author} className="tw-pr-5 md:tw-pr-8" />
<BlogMetaItem
className="tw-pr-5 md:tw-pr-8"
text={postedAt}
Expand All @@ -89,16 +66,11 @@ const BlogCard = forwardRef<HTMLDivElement, TProps>(
icon="far fa-eye"
/>
</div>
<p
className="tw-mt-4"
dangerouslySetInnerHTML={{ __html: excerpt }}
/>
<p className="tw-mt-4" dangerouslySetInnerHTML={{ __html: excerpt }} />
<div className="tw-flex tw-items-center tw-justify-between tw-mt-7.5">
<Button path={path}>
Read More
<span className="tw-sr-only">
About this article
</span>
<span className="tw-sr-only">About this article</span>
</Button>
<SocialShare label="Share this post" />
</div>
Expand Down
19 changes: 4 additions & 15 deletions src/components/blog-card/blog-06.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ type TProps = Pick<
};

const BlogCard = forwardRef<HTMLDivElement, TProps>(
(
{ className, image, path, title, postedAt, views, author, excerpt },
ref
) => {
({ className, image, path, title, postedAt, views, author, excerpt }, ref) => {
return (
<div
className={clsx(
Expand Down Expand Up @@ -51,10 +48,7 @@ const BlogCard = forwardRef<HTMLDivElement, TProps>(
</h3>

<div className="tw-text-md tw-mt-5 tw-text-gray-300 tw-flex tw-items-center tw-flex-wrap">
<AuthorMeta
author={author}
className="tw-pr-5 md:tw-pr-8"
/>
<AuthorMeta author={author} className="tw-pr-5 md:tw-pr-8" />
<BlogMetaItem
className="tw-pr-5 md:tw-pr-8"
text={postedAt}
Expand All @@ -66,16 +60,11 @@ const BlogCard = forwardRef<HTMLDivElement, TProps>(
icon="far fa-eye"
/>
</div>
<p
className="tw-mt-4"
dangerouslySetInnerHTML={{ __html: excerpt }}
/>
<p className="tw-mt-4" dangerouslySetInnerHTML={{ __html: excerpt }} />
<div className="tw-flex tw-items-center tw-justify-between tw-mt-7.5 md:tw-mt-9">
<Button path={path}>
Read More
<span className="tw-sr-only">
About this article
</span>
<span className="tw-sr-only">About this article</span>
</Button>
<SocialShare label="Share this post" />
</div>
Expand Down
Loading

0 comments on commit 24b3ec5

Please sign in to comment.