Skip to content

Commit

Permalink
🎨 Website design improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pheralb committed Apr 5, 2024
1 parent 4e3e68e commit 135ec95
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 27 deletions.
12 changes: 10 additions & 2 deletions website/src/components/hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,17 @@ const Hero = () => {
<Container>
<div className="sm:flex sm:items-center sm:justify-between">
<div className="flex flex-col space-y-4 text-center sm:text-left">
<h1 className="text-2xl font-medium text-neutral-100 sm:text-4xl">
Files & folders icons by Miguel Solorio
<h1 className="text-2xl font-medium text-neutral-100 sm:text-4xl tracking-tight">
Beautifully File & Folder Icons
</h1>
<ExternalLink href="https://twitter.com/miguelsolorio_">
<p className="opacity-80 hover:opacity-100 transition-opacity duration-150">
🎨 Designed by{" "}
<span className="underline underline-offset-[6px] decoration-neutral-600 decoration-dotted">
Miguel Solorio
</span>
</p>
</ExternalLink>
<div className="flex items-center justify-between rounded-md border border-neutral-800 p-2">
<div className="flex items-center space-x-2">
<span>📦</span>
Expand Down
60 changes: 35 additions & 25 deletions website/src/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,18 @@ import ArrowLeft from "./components/icons/arrowLeft"
export const links: LinksFunction = () => [
{ rel: "stylesheet", href: stylesheet },
{
rel: 'preload',
as: 'font',
href: '/fonts/GeneralSans-Variable.woff2',
type: 'font/woff2',
crossOrigin: 'anonymous',
rel: "preload",
as: "font",
href: "/fonts/GeneralSans-Variable.woff2",
type: "font/woff2",
crossOrigin: "anonymous",
},
{
rel: 'preload',
as: 'font',
href: '/fonts/Hack.woff2',
type: 'font/woff2',
crossOrigin: 'anonymous',
rel: "preload",
as: "font",
href: "/fonts/Hack.woff2",
type: "font/woff2",
crossOrigin: "anonymous",
},
{
rel: "apple-touch-icon",
Expand Down Expand Up @@ -72,21 +72,31 @@ export const meta: MetaFunction = () => {
name: "description",
content: "Symbols VSCode Icons Theme by Miguel Solorio, for React.",
},
];
};
]
}

// Root Component:
export default function App() {
return (
<html lang="en">
<html lang="en" className="dark">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="keywords" content="Symbols, VSCode, Icons, Theme, React, Miguel Solorio" />
<meta
name="keywords"
content="Symbols, VSCode, Icons, Theme, React, Miguel Solorio"
/>
<meta property="og:type" content="website" />
<meta property="og:title" content="React-Symbols" />
<meta property="og:description" content="Symbols VSCode Icons Theme by Miguel Solorio, for React." />
<meta name="image" property="og:image" content="https://react-symbols.vercel.app/images/og.png" />
<meta
property="og:description"
content="Symbols VSCode Icons Theme by Miguel Solorio, for React."
/>
<meta
name="image"
property="og:image"
content="https://react-symbols.vercel.app/images/og.png"
/>
<meta property="og:image:width" content="1894" />
<meta property="og:image:height" content="971" />
<meta property="og:url" content="https://react-symbols.vercel.app/" />
Expand All @@ -96,10 +106,7 @@ export default function App() {
name="twitter:image"
content="https://react-symbols.vercel.app/images/og.png"
/>
<meta
name="twitter:card"
content="summary_large_image"
/>
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:creator" content="@pheralb_" />
<meta name="twitter:site" content="@pheralb_" />
<meta name="twitter:title" content="React-Symbols" />
Expand Down Expand Up @@ -129,7 +136,7 @@ export default function App() {

// Custom error 4xx/5xx Page:
export function ErrorBoundary() {
const error = useRouteError();
const error = useRouteError()
if (isRouteErrorResponse(error)) {
return (
<html lang="en">
Expand All @@ -148,7 +155,10 @@ export function ErrorBoundary() {
<p className="text-xl">{error.status}</p>
<p className="font-mono">{error.statusText}</p>
</div>
<a href="/" className="flex items-center space-x-2 hover:underline duration-75">
<a
href="/"
className="flex items-center space-x-2 hover:underline duration-75"
>
<ArrowLeft width={20} />
<span>Go Home</span>
</a>
Expand All @@ -160,7 +170,7 @@ export function ErrorBoundary() {
<LiveReload />
</body>
</html>
);
)
}
return null;
}
return null
}

0 comments on commit 135ec95

Please sign in to comment.