Skip to content

Commit

Permalink
Merge pull request #32 from eriandev/main
Browse files Browse the repository at this point in the history
feat: hero responsive design
  • Loading branch information
afordigital authored Jul 23, 2024
2 parents 4b4ba47 + 780ecf0 commit 62f54e4
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/components/Nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Button } from "./ui/button";

export const Nav = () => {
return (
<nav className="relative w-full max-w-6xl h-16 mx-auto flex items-center justify-between">
<nav className="relative px-2 w-full max-w-6xl h-16 mx-auto flex items-center justify-between">
<a href="/" className="flex items-center gap-1 cursor-pointer">
<Image src="/logo.png" alt="logo image" width={28} height={28}></Image>
<h1 className="text-2xl text-white font-semibold">Aforshow</h1>
Expand Down
6 changes: 3 additions & 3 deletions app/components/WelcomeHero.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { Countdown } from "./common/Countdown";
import { Button } from "./ui/button";
import { Countdown } from "./common/Countdown";

export const WelcomeHero = () => {
return (
<section className="mx-auto max-w-6xl w-full h-full">
<div className="relative z-20 flex flex-col gap-12 items-center text-center">
<div className="flex flex-col ">
<h2 className="text-caTextSecondary text-[24px]">
<h2 className="text-caTextSecondary text-lg md:text-[24px]">
El evento de programación del año
</h2>
<p className="text-6xl font-semibold">
<p className="text-balance text-hero font-semibold lg:text-wrap">
Da tu primera charla de programación y aporta valor a la comunidad
en el{" "}
<span className="inline-block bg-gradient-to-r from-caPrimary-500 to-caSecondary-500 text-transparent bg-clip-text">
Expand Down
2 changes: 1 addition & 1 deletion app/components/common/Countdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const Countdown = ({
/* Use cn to override the wraper if need it */

return (
<div className={cn("flex gap-16", className)}>
<div className={cn("flex gap-6 md:gap-16", className)}>
{time.map(({ key, label }, index) => (
<section key={index} className="text-center text-shadow-sm">
<span className="font-bold text-3xl xl:text-6xl">
Expand Down
8 changes: 4 additions & 4 deletions app/shared-space.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function SharedSpace() {
const count = Object.keys(others).length + (self ? 1 : 0);

return (
<div className="flex flex-col gap-[72px] min-h-screen overflow-hidden pt-4">
<div className="flex min-h-screen flex-col gap-[72px] overflow-hidden">
<div className="z-10 absolute pointer-events-none top-0 left-0 w-full h-full overflow-clip">
{count > 0 && (
<div className="absolute top-4 left-4 pointer-events-none flex items-center">
Expand All @@ -51,9 +51,9 @@ export default function SharedSpace() {
)}
</div>

<div className="w-[300px] h-[300px] bg-caBlurBoxes absolute blur-[200px] left-[-100px] top-80"></div>
<div className="w-[300px] h-[300px] bg-caBlurBoxes absolute blur-[200px] right-[-100px] top-20"></div>
<div className="bg-pattern overflow-hidden relative gap-[74px] flex flex-col">
<div className="bg-caBlurBoxes absolute left-[-100px] top-80 h-[200px] w-[200px] blur-[200px] sm:h-[300px] sm:w-[300px]"></div>
<div className="bg-pattern relative flex w-full flex-col gap-[74px] overflow-hidden px-2 pt-4">
<div className="bg-caBlurBoxes absolute right-[-100px] top-20 h-[200px] w-[200px] blur-[200px] sm:h-[300px] sm:w-[300px]"></div>
<Nav />
<WelcomeHero />

Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ const config: Config = {
"pos-0": "0% 0%",
"pos-100": "100% 100%",
},
fontSize: {
hero: ['clamp(1.5rem, 5.5vw, 3.75rem)', '1.1'],
},
},
},
variants: {
Expand Down

0 comments on commit 62f54e4

Please sign in to comment.