Skip to content

Commit

Permalink
chore: align hero section
Browse files Browse the repository at this point in the history
  • Loading branch information
philix27 committed Oct 13, 2024
1 parent 4246b9c commit 54e1033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions web/app/(home)/_comps/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export function HeroSection(props: { title: string; subtitle: string; img: strin
>
<div
className={`
w-full
w-[75%] md:w-full
grid grid-cols-1
md:grid-cols-2
md:px-[5%]
md:px-[5%] items-center self-center
`}
>
{props.imgFirst ? (
Expand All @@ -44,9 +44,9 @@ export function HeroSection(props: { title: string; subtitle: string; img: strin
function TextBlock(props: { title: string; subtitle: string; img: string; imgFirst?: boolean }) {
return (
<div className="h-full flex flex-col items-start justify-center md:px-4 py-8 md:py-4">
<TextH className="text-[80px] font-extrabold">{props.title}</TextH>
<TextH className="text-[40px] md:text-[80px] font-extrabold md:text-center text-left">{props.title}</TextH>
<div className="mb-10" />
<p className={'text-xl font-extralight'}>{props.subtitle}</p>
<p className={'text-xl font-extralight md:text-center '}>{props.subtitle}</p>
</div>
);
}
6 changes: 3 additions & 3 deletions web/app/(home)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use client';

import React from 'react';
import { TextH, TextP } from '@/comps';
import { cn, useAppRouter } from '@/lib';
import { HeroCenter, HeroSection, JumbutronSection } from './_comps';
import { TextH } from '@/comps';
import { useAppRouter } from '@/lib';
import { HeroSection, JumbutronSection } from './_comps';
import { ContentBlock } from './_comps/content';

export default function Home() {
Expand Down

0 comments on commit 54e1033

Please sign in to comment.