Skip to content

Commit 5a12638

Browse files
authored
update: homepage
1 parent 76911b0 commit 5a12638

File tree

18 files changed

+403
-157
lines changed

18 files changed

+403
-157
lines changed

public/images/acc-fuel.png

666 KB
Loading

src/components/accelerate/footer.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import DarkModeToggle from "../dark-mode-toggle.astro";
2+
import DarkModeToggle from "../dark-mode-toggle";
33
import {
44
DiscordIcon,
55
GithubIcon,
@@ -128,7 +128,7 @@ import {
128128
<TelegramIcon />
129129
</a>
130130
</div>
131-
<div class="md:hidden"><DarkModeToggle footer /></div>
131+
<div class="md:hidden"><DarkModeToggle footer client:load /></div>
132132
</div>
133133
</div>
134134
<div class="h-px w-full bg-[#3E3E3E]"></div>
@@ -154,7 +154,7 @@ import {
154154
Privacy
155155
</p>
156156
</div>
157-
<div class="hidden md:block"><DarkModeToggle footer /></div>
157+
<div class="hidden md:block"><DarkModeToggle footer client:load /></div>
158158
</div>
159159
</footer>
160160
</div>

src/components/cards/FeatureCard.astro

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,33 @@ const { icon, card, className, autoHeight } = Astro.props as Props;
1515
---
1616

1717
<div class={clsx("flex flex-col items-start", className)}>
18-
<div
19-
class={"flex-shrink-0 rounded-lg border border-paraDark text-primary bg-background p-3"}
20-
>
21-
{
22-
icon ? (
23-
<div set:html={icon} />
24-
) : card.image ? (
25-
<svg class="h-6 w-6 " fill="currentColor" viewBox="0 0 24 24">
26-
<use
27-
xlink:href={`${card.image.src}#img`}
28-
href={`${card.image.src}#img`}
29-
/>
30-
</svg>
31-
) : null
32-
}
33-
</div>
34-
35-
<div class="mt-5 md:mt-6">
18+
<div class="flex flex-col items-start gap-3 md:flex-row">
19+
<div
20+
class={"flex-shrink-0 rounded-lg border border-paraDark text-primary bg-background p-2"}
21+
>
22+
{
23+
icon ? (
24+
<div set:html={icon} />
25+
) : card.image ? (
26+
<svg class="h-6 w-6 " fill="currentColor" viewBox="0 0 24 24">
27+
<use
28+
xlink:href={`${card.image.src}#img`}
29+
href={`${card.image.src}#img`}
30+
/>
31+
</svg>
32+
) : null
33+
}
34+
</div>
3635
<h3
37-
class={clsx("text-xl font-semibold ", autoHeight ? "" : "lg:h-14")}
36+
class={clsx("text-base font-semibold md:text-lg")}
3837
set:html={card.title}
3938
/>
39+
</div>
40+
41+
<div class="md:mt-0">
4042
<p
4143
set:html={card.description}
42-
class="mt-2 flex-shrink-0 text-xs text-paraDark md:mt-4 md:text-sm"
44+
class="mt-2 flex-shrink-0 text-sm text-paraDark md:mt-4 md:text-base"
4345
/>
4446
</div>
4547
</div>

src/components/dark-mode-toggle.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React, { useState, useEffect } from "react";
21
import { Sun, SunMoon } from "lucide-react";
2+
import { useEffect, useState } from "react";
33

4-
const DarkModeToggle = () => {
4+
const DarkModeToggle = ({ footer }: { footer?: boolean }) => {
55
const [theme, setTheme] = useState("light");
66

77
useEffect(() => {
@@ -22,9 +22,12 @@ const DarkModeToggle = () => {
2222
};
2323

2424
return (
25-
<button onClick={toggleTheme} id="header-toggle">
26-
<Sun className="h-5 w-5 text-para dark:hidden hover:text-primary" />
27-
<SunMoon className="hidden h-5 w-5 text-para dark:block hover:text-primary" />
25+
<button
26+
onClick={toggleTheme}
27+
id={footer ? "header-toggle-footer" : "header-toggle"}
28+
>
29+
<Sun className="h-5 w-5 text-para hover:text-primary dark:hidden" />
30+
<SunMoon className="hidden h-5 w-5 text-para hover:text-primary dark:block" />
2831
</button>
2932
);
3033
};

src/components/docs/header.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Logo from "@/components/ui/logo.astro";
3-
import DarkModeToggle from "../dark-mode-toggle.astro";
3+
4+
import DarkModeToggle from "../dark-mode-toggle";
45
import { DiscordIcon, GithubIcon, TwitterIcon } from "../header/icons";
56
import SpeakToExpert from "../pricing-page/SpeakToExpert";
67
import AlgoliaSearch from "./algolia-search.jsx";
@@ -19,7 +20,7 @@ import AlgoliaSearch from "./algolia-search.jsx";
1920
</div>
2021
<div class="hidden flex-shrink-0 md:flex md:gap-x-[14px]">
2122
<div class="hidden items-center gap-x-[14px] text-para md:flex">
22-
<DarkModeToggle />
23+
<DarkModeToggle client:load />
2324
<a
2425
class="cursor-pointer hover:text-primary"
2526
href="https://twitter.com/akashnet_"

src/components/footer/footer.astro

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import FooterLink from "@/components/footer/footer-link.astro";
33
import { socialLinks } from "@/lib/constants";
44
import { shouldHideCta } from "@/utils/hideCta";
55
import clsx from "clsx";
6-
import DarkModeToggle from "../dark-mode-toggle.astro";
6+
7+
import DarkModeToggle from "../dark-mode-toggle";
78
import {
89
DiscordIcon,
910
GithubIcon,
@@ -190,7 +191,7 @@ const shouldHide = shouldHideCta(pathname);
190191
shouldHide && "border-t mt-20",
191192
overrideClassName
192193
? overrideClassName
193-
: "bg-white dark:bg-background container",
194+
: "bg-white dark:bg-background container"
194195
)}
195196
>
196197
<div class="border-b pb-6 md:pb-20">
@@ -202,7 +203,7 @@ const shouldHide = shouldHideCta(pathname);
202203
{
203204
!hideDarkToggle && (
204205
<>
205-
<DarkModeToggle />
206+
<DarkModeToggle footer client:load />
206207
<div class="h-7 w-[1.5px] bg-[#3B3B3B]" />
207208
</>
208209
)
@@ -233,28 +234,36 @@ const shouldHide = shouldHideCta(pathname);
233234
>
234235
<path
235236
d="M17.1542 16.4897L21.1887 23.5858H13.039L8.96191 16.4897H17.1542Z"
237+
class="fill-foreground"
236238
fill="url(#paint0_linear_125_570)"></path>
237239
<path
238240
d="M21.1865 23.5869L25.2568 16.4909L17.1094 2.29541H8.96191L21.1865 23.5869Z"
239-
fill="white"></path>
241+
class="fill-foreground"
242+
fill="currentColor"></path>
240243
<path
241244
d="M4.88828 9.38965H13.0358L4.89167 23.5851L0.814575 16.4891L4.88828 9.38965Z"
242-
fill="white"></path>
245+
class="fill-foreground"
246+
fill="currentColor"></path>
243247
<path
244248
d="M41.669 9.39684L41.4662 11.5876C40.5975 9.88687 38.5994 8.96447 36.4565 8.96447C32.4313 8.96447 29.7382 11.8758 29.7382 16.3438C29.7382 20.7829 32.1707 24.0113 36.4275 24.0113C38.7442 24.0113 40.4527 22.8871 41.3504 21.417L41.5821 23.6366H44.8833V9.39684H41.669ZM41.2925 16.5167C41.2925 19.0822 39.6998 20.8405 37.2383 20.8405C34.7769 20.8405 33.2711 19.0533 33.2711 16.5167C33.2711 13.9801 34.8059 12.1641 37.2673 12.1641C39.7288 12.1641 41.2925 13.9512 41.2925 16.5167Z"
245-
fill="white"></path>
249+
class="fill-foreground"
250+
fill="currentColor"></path>
246251
<path
247252
d="M50.8944 23.6366V19.8028L52.9794 17.6409L56.715 23.6366H60.7691L55.4408 15.0466L60.885 9.39684H56.4544L50.8944 15.3637V2.60986H47.3904V23.6366H50.8944Z"
248-
fill="white"></path>
253+
class="fill-foreground"
254+
fill="currentColor"></path>
249255
<path
250256
d="M72.6334 9.39684L72.4307 11.5876C71.5619 9.88687 69.5638 8.96447 67.4209 8.96447C63.3957 8.96447 60.7026 11.8758 60.7026 16.3438C60.7026 20.7829 63.1351 24.0113 67.3919 24.0113C69.7086 24.0113 71.4171 22.8871 72.3148 21.417L72.5465 23.6366H75.8477V9.39684H72.6334ZM72.2569 16.5167C72.2569 19.0822 70.6642 20.8405 68.2028 20.8405C65.7413 20.8405 64.2355 19.0533 64.2355 16.5167C64.2355 13.9801 65.7703 12.1641 68.2317 12.1641C70.6932 12.1641 72.2569 13.9512 72.2569 16.5167Z"
251-
fill="white"></path>
257+
class="fill-foreground"
258+
fill="currentColor"></path>
252259
<path
253260
d="M77.6355 19.3128C77.6355 22.1088 79.8942 24.0113 83.4561 24.0113C86.989 24.0113 89.4504 22.2241 89.4504 19.3416C89.4504 17.1509 88.2342 16.0555 85.8307 15.5078L83.2534 14.9025C82.0371 14.6142 81.4001 14.0954 81.4001 13.2883C81.4001 12.2217 82.2109 11.5876 83.6009 11.5876C84.9619 11.5876 85.7727 12.3659 85.8017 13.5765H89.1609C89.1319 10.8093 86.96 8.96447 83.7457 8.96447C80.4444 8.96447 78.0699 10.6363 78.0699 13.4324C78.0699 15.7096 79.3151 16.9203 81.8923 17.4968L84.4696 18.1021C85.7438 18.3904 86.1202 18.9092 86.1202 19.6298C86.1202 20.6676 85.2225 21.3305 83.5719 21.3305C81.9503 21.3305 81.0236 20.5523 80.9946 19.3128H77.6355Z"
254-
fill="white"></path>
261+
class="fill-foreground"
262+
fill="currentColor"></path>
255263
<path
256264
d="M94.9515 23.6366V15.8537C94.9515 13.7206 96.2547 12.1641 98.4844 12.1641C100.28 12.1641 101.467 13.3171 101.467 15.7096V23.6366H105V14.8737C105 11.184 103.147 8.96447 99.6138 8.96447C97.5578 8.96447 95.8782 9.85805 94.9805 11.2417V2.60986H91.4186V23.6366H94.9515Z"
257-
fill="white"></path>
265+
class="fill-foreground"
266+
fill="currentColor"></path>
258267
<defs>
259268
<linearGradient
260269
id="paint0_linear_125_570"
@@ -264,9 +273,11 @@ const shouldHide = shouldHideCta(pathname);
264273
y2="16.2255"
265274
gradientUnits="userSpaceOnUse"
266275
>
267-
<stop stop-color="white"></stop>
268-
<stop offset="1" stop-color="white" stop-opacity="0.127613"
269-
></stop>
276+
<stop stop-color="currentColor"></stop>
277+
<stop
278+
offset="1"
279+
stop-color="currentColor"
280+
stop-opacity="0.127613"></stop>
270281
</linearGradient>
271282
</defs>
272283
</svg>
@@ -280,8 +291,8 @@ const shouldHide = shouldHideCta(pathname);
280291
{
281292
!hideDarkToggle && (
282293
<>
283-
<DarkModeToggle />
284-
<div class="h-7 w-[1.5px] bg-[#3B3B3B]" />
294+
<DarkModeToggle footer />
295+
<div class="h-7 w-[1.5px] bg-gray-300 dark:bg-[#3B3B3B] " />
285296
</>
286297
)
287298
}

src/components/footer/superclound.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ const { className } = Astro.props;
99

1010
<div
1111
class={clsx(
12-
" flex flex-col items-center justify-center gap-2.5 md:flex-row",
13-
className,
12+
" flex flex-col items-center text-foreground justify-center gap-2.5 md:flex-row",
13+
className
1414
)}
1515
>
1616
<div

src/components/header/header.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import Logo from "@/components/ui/logo.astro";
44
import { getYearToUse } from "@/utils/redirects";
55
import { getCollection } from "astro:content";
66
import clsx from "clsx";
7-
import DarkModeToggle from "../dark-mode-toggle.astro";
7+
8+
import DarkModeToggle from "../dark-mode-toggle";
89
import ButtonLink from "../ui/button-link.astro";
910
import TryAkashForm from "../ui/try-akash-form";
1011
import HamburgerMenu from "./hamburger-menu";
@@ -163,7 +164,7 @@ const navContainerClass = hideContainer ? "" : "container";
163164

164165
<TryAkashForm client:load type="header" />
165166
</div>
166-
{!hideDarkToggle && <DarkModeToggle nav />}
167+
{!hideDarkToggle && <DarkModeToggle client:load />}
167168
</div>
168169
</nav>
169170
</header>

src/components/home/ExpandedGpuPricing.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ const ExpandedGpu = () => {
251251
className={clsx(
252252
"flex flex-col",
253253
item.selected && " -mt-1 md:-mt-2",
254+
index !== gpuTypes.length - 1 && index !== 1 && "border-r",
254255
)}
255256
>
256257
<h3
@@ -312,9 +313,11 @@ const ExpandedGpu = () => {
312313
key={i}
313314
className={clsx(
314315
" py-2.5 text-center text-sm font-semibold md:py-4 md:text-xl ",
316+
i === 1 ? " border-t !border-[#DC1D28]" : "border-t",
315317
i === 1 && index !== 1
316-
? "bg-primary text-white"
318+
? "bg-primary text-white"
317319
: "bg-background",
320+
i !== item.length - 1 && i !== 1 && "border-r",
318321
)}
319322
>
320323
{item}

0 commit comments

Comments
 (0)