Skip to content

Commit ed0c577

Browse files
authored
Remove arrow and finetune styles (#468)
1 parent c444b20 commit ed0c577

File tree

2 files changed

+9
-23
lines changed

2 files changed

+9
-23
lines changed

src/components/pages/home/section/getting-started.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type LinkButtonProps = {
3030
const LinkButton = ({ url, logo: Logo }: LinkButtonProps) => (
3131
<Link
3232
to={url}
33-
className="group flex items-center justify-center border-gray-600 border-solid rounded-sm border-2 px-6 py-3 w-[200px] h-[70px] transition-all duration-200 hover:scale-110 hover:bg-gray-600"
33+
className="group flex items-center justify-center border-gray-600 border-solid rounded-sm border-2 px-6 py-3 w-[180px] h-[70px] transition-all duration-200 hover:scale-110 hover:bg-gray-600"
3434
>
3535
<Logo className="fill-brand-text-light dark:fill-brand-text-dark group-hover:fill-white" />
3636
</Link>
@@ -39,11 +39,11 @@ const LinkButton = ({ url, logo: Logo }: LinkButtonProps) => (
3939
const GettingStarted = () => {
4040
return (
4141
<>
42-
<h2 className="text-center font-bold mb-4 text-3xl md:text-6xl text-primary-light dark:text-primary-dark">
42+
<h2 className="text-center font-bold mb-4 text-2xl md:text-4xl text-primary-light dark:text-primary-dark">
4343
Get Started Using:
4444
</h2>
4545

46-
<ul className="list-none px-0 w-full mt-6 inline-flex gap-10 flex-col md:flex-row items-center justify-center pb-16">
46+
<ul className="list-none px-0 w-full m-0 md:mt-6 inline-flex gap-5 md:gap-10 flex-col md:flex-row items-center justify-center">
4747
{list.map(({ url, name, logo }) => (
4848
<li key={name}>
4949
<LinkButton url={url} logo={logo} />

src/components/pages/home/section/opening-section.tsx

+6-20
Original file line numberDiff line numberDiff line change
@@ -8,42 +8,28 @@ import GettingStarted from './getting-started';
88
const OpeningSection = () => {
99
const ref = createRef<HTMLDivElement>();
1010

11-
const scrollToNextSection = () => {
12-
const element = ref.current.getBoundingClientRect();
13-
window.scrollTo({ top: element.height, behavior: 'smooth' });
14-
};
15-
1611
return (
17-
<Section ref={ref} className="!py-0 !px-4 !min-h-[calc(100vh-60px)]">
12+
<Section ref={ref} className="!pt-0 !pb-8 !px-4 !min-h-[calc(100vh-60px)]">
1813
<FadeIntoView>
19-
<h1>
14+
<h1 className="m-0">
2015
<span className="invisible absolute w-0 h-0">GameCI</span>
21-
<GameCiLogoLight className="block dark:hidden select-none w-full max-w-[320px] h-auto" />
22-
<GameCiLogo className="hidden dark:block select-none w-full max-w-[320px] h-auto" />
16+
<GameCiLogoLight className="block dark:hidden select-none w-full max-w-[280px] h-auto" />
17+
<GameCiLogo className="hidden dark:block select-none w-full max-w-[280px] h-auto" />
2318
</h1>
2419
</FadeIntoView>
2520

2621
<FadeIntoView delay={150}>
27-
<h2 className="text-base md:text-2xl text-center w-full max-w-[500px]">
22+
<h2 className="text-base md:text-2xl text-center w-full max-w-[500px] m-0">
2823
The fastest and <strong>easiest</strong> way to automatically test and build your game
2924
projects
3025
</h2>
3126
</FadeIntoView>
3227

3328
<FadeIntoView delay={200}>
34-
<div className="mt-8 md:mt-12">
29+
<div className="mt-4 md:mt-8">
3530
<GettingStarted />
3631
</div>
3732
</FadeIntoView>
38-
39-
<button
40-
type="button"
41-
onClick={scrollToNextSection}
42-
className="hidden md:block bg-transparent border-none cursor-pointer text-7xl absolute bottom-0 mb-2 focus-visible:outline focus-visible:outline-2"
43-
aria-label="Click to scroll to the next section"
44-
>
45-
46-
</button>
4733
</Section>
4834
);
4935
};

0 commit comments

Comments
 (0)