mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-25 22:01:17 +00:00
Fixing class -> className
This commit is contained in:
parent
21f669daa3
commit
0655d6c004
7 changed files with 24 additions and 21 deletions
|
@ -46,9 +46,12 @@ interface AppDetailsButtonsProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
const AppDetailsButtons = ({ links }: AppDetailsButtonsProps) => (
|
const AppDetailsButtons = ({ links }: AppDetailsButtonsProps) => (
|
||||||
<div class="flex flex-row justify-between gap-2">
|
<div className="flex flex-row justify-between gap-2">
|
||||||
{links.map(l => (
|
{links.map(l => (
|
||||||
<a class="btn btn-sm btn-primary text-white normal-case" href={l.link}>
|
<a
|
||||||
|
className="btn btn-sm btn-primary text-white normal-case"
|
||||||
|
href={l.link}
|
||||||
|
>
|
||||||
<Icon icon={l.icon} />
|
<Icon icon={l.icon} />
|
||||||
</a>
|
</a>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -50,9 +50,9 @@ export const DonateDesc = () => (
|
||||||
);
|
);
|
||||||
|
|
||||||
export const DonateButtons = () => (
|
export const DonateButtons = () => (
|
||||||
<div class="flex flex-row flex-wrap justify-between gap-2">
|
<div className="flex flex-row flex-wrap justify-between gap-2">
|
||||||
<a
|
<a
|
||||||
class="btn btn-primary text-white sm:max-md:btn-block normal-case"
|
className="btn btn-primary text-white sm:max-md:btn-block normal-case"
|
||||||
href="https://liberapay.com/Lemmy"
|
href="https://liberapay.com/Lemmy"
|
||||||
>
|
>
|
||||||
<T i18nKey="support_on_liberapay">
|
<T i18nKey="support_on_liberapay">
|
||||||
|
@ -60,7 +60,7 @@ export const DonateButtons = () => (
|
||||||
</T>
|
</T>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="btn btn-secondary text-white sm:max-md:btn-block normal-case"
|
className="btn btn-secondary text-white sm:max-md:btn-block normal-case"
|
||||||
href="https://www.patreon.com/dessalines"
|
href="https://www.patreon.com/dessalines"
|
||||||
>
|
>
|
||||||
<T i18nKey="support_on_patreon">
|
<T i18nKey="support_on_patreon">
|
||||||
|
@ -68,7 +68,7 @@ export const DonateButtons = () => (
|
||||||
</T>
|
</T>
|
||||||
</a>
|
</a>
|
||||||
<a
|
<a
|
||||||
class="btn btn-primary text-white sm:max-md:btn-block normal-case"
|
className="btn btn-primary text-white sm:max-md:btn-block normal-case"
|
||||||
href="https://opencollective.com/lemmy"
|
href="https://opencollective.com/lemmy"
|
||||||
>
|
>
|
||||||
<T i18nKey="support_on_opencollective">
|
<T i18nKey="support_on_opencollective">
|
||||||
|
@ -76,7 +76,7 @@ export const DonateButtons = () => (
|
||||||
</T>
|
</T>
|
||||||
</a>
|
</a>
|
||||||
<Link
|
<Link
|
||||||
class="btn btn-secondary text-white sm:max-md:btn-block normal-case"
|
className="btn btn-secondary text-white sm:max-md:btn-block normal-case"
|
||||||
to="/crypto"
|
to="/crypto"
|
||||||
>
|
>
|
||||||
Crypto
|
Crypto
|
||||||
|
@ -130,7 +130,7 @@ export const DonateBlock = () => (
|
||||||
<div className="flex flex-col items-center pt-16">
|
<div className="flex flex-col items-center pt-16">
|
||||||
<div className={`card card-bordered ${CARD_GRADIENT} shadow-xl`}>
|
<div className={`card card-bordered ${CARD_GRADIENT} shadow-xl`}>
|
||||||
<div className="card-body px-8 md:px-32 py-16">
|
<div className="card-body px-8 md:px-32 py-16">
|
||||||
<p class={`card-title text-4xl mb-3 ${TEXT_GRADIENT}`}>
|
<p className={`card-title text-4xl mb-3 ${TEXT_GRADIENT}`}>
|
||||||
{i18n.t("donate")}
|
{i18n.t("donate")}
|
||||||
</p>
|
</p>
|
||||||
<DonateDesc />
|
<DonateDesc />
|
||||||
|
|
|
@ -26,9 +26,9 @@ const SectionTitle = ({ title }) => (
|
||||||
const ContributorsBlock = () => (
|
const ContributorsBlock = () => (
|
||||||
<div className="my-16">
|
<div className="my-16">
|
||||||
<SectionTitle title={i18n.t("contributers")} />
|
<SectionTitle title={i18n.t("contributers")} />
|
||||||
<p class="text-sm text-gray-300 mb-3">{i18n.t("thanks_coders")}</p>
|
<p className="text-sm text-gray-300 mb-3">{i18n.t("thanks_coders")}</p>
|
||||||
<CodersBlock />
|
<CodersBlock />
|
||||||
<p class="text-sm text-gray-300 mt-6 mb-3">
|
<p className="text-sm text-gray-300 mt-6 mb-3">
|
||||||
{i18n.t("thanks_translators")}
|
{i18n.t("thanks_translators")}
|
||||||
</p>
|
</p>
|
||||||
<TranslatorsBlock />
|
<TranslatorsBlock />
|
||||||
|
@ -139,11 +139,11 @@ interface GoldSponsorCardsProps {
|
||||||
const GoldSponsorCards = ({ title, sponsors, color }: GoldSponsorCardsProps) =>
|
const GoldSponsorCards = ({ title, sponsors, color }: GoldSponsorCardsProps) =>
|
||||||
sponsors.length > 0 && (
|
sponsors.length > 0 && (
|
||||||
<div>
|
<div>
|
||||||
<p class="text-sm text-gray-300 mb-3">{title}</p>
|
<p className="text-sm text-gray-300 mb-3">{title}</p>
|
||||||
<div class="flex flex-row flex-wrap gap-2 mb-2">
|
<div className="flex flex-row flex-wrap gap-2 mb-2">
|
||||||
{sponsors.map(s => (
|
{sponsors.map(s => (
|
||||||
<a
|
<a
|
||||||
class={`btn btn-${color} btn-outline w-32 h-16 normal-case`}
|
className={`btn btn-${color} btn-outline w-32 h-16 normal-case`}
|
||||||
href={s.link}
|
href={s.link}
|
||||||
>
|
>
|
||||||
<div className="flex flex-wrap flex-row justify-center">
|
<div className="flex flex-wrap flex-row justify-center">
|
||||||
|
@ -173,7 +173,7 @@ const GeneralSponsorCard = () => {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
<p class="text-sm text-gray-300 mt-6 mb-3">
|
<p className="text-sm text-gray-300 mt-6 mb-3">
|
||||||
{i18n.t("general_sponsors_desc")}
|
{i18n.t("general_sponsors_desc")}
|
||||||
</p>
|
</p>
|
||||||
<div className="card card-bordered bg-neutral-900 shadow-xl">
|
<div className="card card-bordered bg-neutral-900 shadow-xl">
|
||||||
|
|
|
@ -12,7 +12,7 @@ interface IconProps {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const Icon = ({ icon, size = IconSize.Medium, classes }: IconProps) => (
|
export const Icon = ({ icon, size = IconSize.Medium, classes }: IconProps) => (
|
||||||
<svg class={`icon ${size} ${classes}`}>
|
<svg className={`icon ${size} ${classes}`}>
|
||||||
<title>{icon}</title>
|
<title>{icon}</title>
|
||||||
<use xlinkHref={`#icon-${icon}`}></use>
|
<use xlinkHref={`#icon-${icon}`}></use>
|
||||||
</svg>
|
</svg>
|
||||||
|
|
|
@ -141,15 +141,15 @@ const InstanceCard = ({ instance }: InstanceCardProps) => {
|
||||||
</div>
|
</div>
|
||||||
<div className={`text-2xl font-bold ${TEXT_GRADIENT}`}>{domain}</div>
|
<div className={`text-2xl font-bold ${TEXT_GRADIENT}`}>{domain}</div>
|
||||||
<p className="text-sm text-gray-300 mb-2">{description}</p>
|
<p className="text-sm text-gray-300 mb-2">{description}</p>
|
||||||
<div class="flex flex-row flex-wrap justify-between gap-2">
|
<div className="flex flex-row flex-wrap justify-between gap-2">
|
||||||
<a
|
<a
|
||||||
class="btn btn-primary text-white sm:max-md:btn-block bg-gradient-to-r from-[#69D066] to-[#03A80E] normal-case"
|
className="btn btn-primary text-white sm:max-md:btn-block bg-gradient-to-r from-[#69D066] to-[#03A80E] normal-case"
|
||||||
href={buildUrl(domain)}
|
href={buildUrl(domain)}
|
||||||
>
|
>
|
||||||
{i18n.t("browse_instance")}
|
{i18n.t("browse_instance")}
|
||||||
</a>
|
</a>
|
||||||
<button
|
<button
|
||||||
class="btn btn-secondary btn-outline text-white sm:max-md:btn-block normal-case"
|
className="btn btn-secondary btn-outline text-white sm:max-md:btn-block normal-case"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
(document.getElementById(modalId) as any).showModal()
|
(document.getElementById(modalId) as any).showModal()
|
||||||
}
|
}
|
||||||
|
|
|
@ -54,7 +54,7 @@ interface NewsProps {
|
||||||
const NewsCard = ({ news }: NewsProps) => (
|
const NewsCard = ({ news }: NewsProps) => (
|
||||||
<div className="card card-bordered bg-neutral-900 shadow-xl mb-3">
|
<div className="card card-bordered bg-neutral-900 shadow-xl mb-3">
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<div class="grid md:grid-cols-12 grid-cols-1 gap-4">
|
<div className="grid md:grid-cols-12 grid-cols-1 gap-4">
|
||||||
<div className="md:col-span-10">
|
<div className="md:col-span-10">
|
||||||
<div className="md:flex md:flex-row md:items-baseline md:space-x-3">
|
<div className="md:flex md:flex-row md:items-baseline md:space-x-3">
|
||||||
<Link to={news.url} className={`text-2xl ${TEXT_GRADIENT}`}>
|
<Link to={news.url} className={`text-2xl ${TEXT_GRADIENT}`}>
|
||||||
|
|
|
@ -7,8 +7,8 @@ export class NoMatch extends Component<any, any> {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<div class="container">
|
<div className="container mx-auto px-4">
|
||||||
<h1>404</h1>
|
<div className="pt-16 text-center text-4xl font-bold mb-8">404</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue