Addressing PR comments.

This commit is contained in:
Dessalines 2023-10-17 16:17:08 -04:00
parent 92a5cf1812
commit e4024d91dd
4 changed files with 12 additions and 12 deletions

View file

@ -69,7 +69,7 @@ server.get("/*", async (req, res) => {
res.send(` res.send(`
<!DOCTYPE html> <!DOCTYPE html>
<html ${helmet.htmlAttributes.toString()} lang="en"> <html ${helmet.htmlAttributes.toString()} lang="en" class="scroll-smooth">
<head> <head>
${erudaInit()} ${erudaInit()}
@ -87,7 +87,7 @@ server.get("/*", async (req, res) => {
<!-- Styles --> <!-- Styles -->
<link rel="stylesheet" type="text/css" href="/static/styles/styles.css" /> <link rel="stylesheet" type="text/css" href="/static/styles/styles.css" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Inter">
${helmet.link.toString()} ${helmet.link.toString()}
</head> </head>

View file

@ -21,7 +21,7 @@ interface MainProps {
const TitleBlock = ({ i }: MainProps) => ( const TitleBlock = ({ i }: MainProps) => (
<div className="py-16 flex flex-col items-center"> <div className="py-16 flex flex-col items-center">
<div className="flex flex-col items-center gap-4 mb-8"> <div className="flex flex-col items-center gap-4 mb-8">
<p className={`text-6xl font-bold ${TEXT_GRADIENT}`}>Lemmy</p> <p className={`text-6xl font-bold ${TEXT_GRADIENT} p-2 z-10`}>Lemmy</p>
<p className="text-3xl font-medium text-center">{i18n.t("lemmy_desc")}</p> <p className="text-3xl font-medium text-center">{i18n.t("lemmy_desc")}</p>
</div> </div>
<div className="flex flex-row justify-around gap-4"> <div className="flex flex-row justify-around gap-4">
@ -104,9 +104,9 @@ const FollowCommunitiesBlock = ({ i }: MainProps) => (
const FeatureCard = ({ pic, title, subtitle, classes }) => ( const FeatureCard = ({ pic, title, subtitle, classes }) => (
<div className={`card ${CARD_GRADIENT} shadow-xl ${classes}`}> <div className={`card ${CARD_GRADIENT} shadow-xl ${classes}`}>
<figure className="p-4"> <div className="p-4">
<img src={pic} className="rounded-xl w-full object-fill min-h-[300px]" /> <img src={pic} className="rounded-xl w-full object-fill min-h-[300px]" />
</figure> </div>
<div className="card-body pt-0"> <div className="card-body pt-0">
<h2 className="card-title text-secondary">{title}</h2> <h2 className="card-title text-secondary">{title}</h2>
<p className="text-sm text-gray-300">{subtitle}</p> <p className="text-sm text-gray-300">{subtitle}</p>

View file

@ -11,42 +11,42 @@ const NavLinks = () => (
<> <>
<NavLink <NavLink
content={ content={
<Link onClick={() => closeNavbarDropdown()} to="/instances"> <Link onClick={closeNavbarDropdown} to="/instances">
{i18n.t("join")} {i18n.t("join")}
</Link> </Link>
} }
/> />
<NavLink <NavLink
content={ content={
<Link onClick={() => closeNavbarDropdown()} to="/news"> <Link onClick={closeNavbarDropdown} to="/news">
{i18n.t("news")} {i18n.t("news")}
</Link> </Link>
} }
/> />
<NavLink <NavLink
content={ content={
<Link onClick={() => closeNavbarDropdown()} to="/apps"> <Link onClick={closeNavbarDropdown} to="/apps">
{i18n.t("apps")} {i18n.t("apps")}
</Link> </Link>
} }
/> />
<NavLink <NavLink
content={ content={
<Link onClick={() => closeNavbarDropdown()} to="/donate"> <Link onClick={closeNavbarDropdown} to="/donate">
{i18n.t("donate")} {i18n.t("donate")}
</Link> </Link>
} }
/> />
<NavLink <NavLink
content={ content={
<a onClick={() => closeNavbarDropdown()} href={`/docs/index.html`}> <a onClick={closeNavbarDropdown} href="/docs/index.html">
{i18n.t("docs")} {i18n.t("docs")}
</a> </a>
} }
/> />
<NavLink <NavLink
content={ content={
<Link onClick={() => closeNavbarDropdown()} to="/contact"> <Link onClick={closeNavbarDropdown} to="/contact">
{i18n.t("contact")} {i18n.t("contact")}
</Link> </Link>
} }

View file

@ -17,7 +17,7 @@ module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"], content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: { theme: {
fontFamily: { fontFamily: {
sans: ["Ubuntu", ...defaultTheme.fontFamily.sans], sans: ["Inter", ...defaultTheme.fontFamily.sans],
}, },
extend: {}, extend: {},
}, },