www: landing page redesign (#1279)
This commit is contained in:
+36
-10
@@ -1,3 +1,5 @@
|
||||
import * as Icons from "./Icons.tsx";
|
||||
|
||||
const LINKS = [
|
||||
{
|
||||
title: "Source",
|
||||
@@ -15,16 +17,40 @@ const LINKS = [
|
||||
|
||||
export default function Footer() {
|
||||
return (
|
||||
<footer class="border(t-2 gray-200) bg-gray-100 h-32 flex flex-col gap-4 justify-center">
|
||||
<div class="mx-auto max-w-screen-lg flex items-center justify-center gap-8">
|
||||
{LINKS.map((link) => (
|
||||
<a href={link.href} class="text-gray-600 hover:underline">
|
||||
{link.title}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
<div class="text(gray-600 center)">
|
||||
<span>© {new Date().getFullYear()} the fresh authors</span>
|
||||
<footer class="border-t-2 border-gray-200 bg-gray-100 md:h-16 flex gap-4 justify-center">
|
||||
<div class="flex flex-col sm:flex-row gap-4 justify-between items-center max-w-screen-xl mx-auto w-full px(4 sm:6 md:8) p-4">
|
||||
<div class="text(gray-600 center)">
|
||||
<span>© {new Date().getFullYear()} the fresh authors</span>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-8">
|
||||
{LINKS.map((link) => (
|
||||
<a href={link.href} class="text-gray-600 hover:underline">
|
||||
{link.title}
|
||||
</a>
|
||||
))}
|
||||
</div>
|
||||
|
||||
<ul class="flex justify-center items-center gap-4 md:ml-4 mt-2 mb-4 sm:mt-0 sm:mb-0 flex-wrap">
|
||||
<li class="flex items-center">
|
||||
<a
|
||||
href="https://github.com/denoland/fresh"
|
||||
class="hover:text-green-600 inline-block transition"
|
||||
aria-label="GitHub"
|
||||
>
|
||||
<Icons.GitHub />
|
||||
</a>
|
||||
</li>
|
||||
<li class="flex items-center">
|
||||
<a
|
||||
href="https://discord.com/invite/deno"
|
||||
class="hover:text-green-600 inline-block transition"
|
||||
aria-label="Discord"
|
||||
>
|
||||
<Icons.Discord />
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</footer>
|
||||
);
|
||||
|
||||
@@ -43,7 +43,7 @@ export default function NavigationBar(
|
||||
<li class="flex items-center">
|
||||
<a
|
||||
href="https://github.com/denoland/fresh"
|
||||
class="hover:text-green-600 inline-block"
|
||||
class="hover:text-green-600 inline-block transition"
|
||||
aria-label="GitHub"
|
||||
>
|
||||
<Icons.GitHub />
|
||||
@@ -52,7 +52,7 @@ export default function NavigationBar(
|
||||
<li class="flex items-center">
|
||||
<a
|
||||
href="https://discord.com/invite/deno"
|
||||
class="hover:text-green-600 inline-block"
|
||||
class="hover:text-green-600 inline-block transition"
|
||||
aria-label="Discord"
|
||||
>
|
||||
<Icons.Discord />
|
||||
|
||||
@@ -14,7 +14,7 @@ interface ProjectProps {
|
||||
export default function Projects(props: ProjectProps) {
|
||||
return (
|
||||
<div
|
||||
class={`pt-8 grid grid-cols-1 md:grid-cols-3 items-center ${
|
||||
class={`pt-8 grid grid-cols-1 sm:grid-cols-3 items-center ${
|
||||
props.class ?? ""
|
||||
}`}
|
||||
>
|
||||
@@ -42,7 +42,7 @@ export default function Projects(props: ProjectProps) {
|
||||
class="ml-2 text-gray-500 hover:text-gray-700"
|
||||
>
|
||||
<span class="sr-only">GitHub</span>
|
||||
<Icons.GitHub class="inline float-right" />
|
||||
<Icons.GitHub class="inline float-right h-6 w-6" />
|
||||
</a>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user