From 58b27fe0d47bc70b85bc8236130ab73aebb1b231 Mon Sep 17 00:00:00 2001 From: Xevion Date: Sat, 24 Dec 2022 12:16:11 -0600 Subject: [PATCH] Improve mobile scale, font size, aspect ratio & text cols --- src/pages/index.tsx | 14 ++++++-------- src/styles/globals.scss | 6 +++--- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 918c7b4..b34b404 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -2,7 +2,6 @@ import {type NextPage} from "next"; import Head from "next/head"; import Image from "next/image"; import {ArrowLongRightIcon} from "@heroicons/react/24/outline"; -import SteppedSpan from "../components/SteppedSpan"; import React from "react"; interface Project { @@ -38,10 +37,9 @@ const Home: NextPage = () => {
-
+ className="flex py-3 max-h-screen min-h-screen flex-row md:items-center justify-center bg-zinc-900 text-zinc-50"> +
- Ryan Walters { projects.map((project, index) =>
@@ -50,11 +48,11 @@ const Home: NextPage = () => { style={{objectFit: "cover"}} />
-
-
{project.title}
-
{project.description}
+
+
{project.title}
+
{project.description}
-
+
diff --git a/src/styles/globals.scss b/src/styles/globals.scss index 943cfac..29769bd 100644 --- a/src/styles/globals.scss +++ b/src/styles/globals.scss @@ -12,7 +12,7 @@ html, body { } .item { - @apply w-full aspect-[5/3] h-[12rem] sm:h-[14rem] md:h-[16rem] relative pointer-events-auto cursor-pointer overflow-hidden transition-all rounded; + @apply w-full aspect-[7/2] sm:aspect-[5/3] sm:h-[14rem] md:h-[16rem] relative pointer-events-auto cursor-pointer overflow-hidden transition-all rounded; > img { @apply rounded transition-all; } @@ -21,7 +21,7 @@ html, body { @apply hidden transition-all delay-100; } - &:hover { + &:hover, &:focus, &:focus-within { .elements { @apply grid; } @@ -39,7 +39,7 @@ html, body { > span { @apply transition-colors delay-300; - &:hover { + &:hover, &:focus-within, &:focus { @apply text-black bg-white; transition-delay: 0s; }