Repository navigation
feat: new homepage #1858
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: new homepage #1858
Changes from all commits
e6f2c8a
c2edc37
ddace29
2cf09a2
75bb4c4
38d7824
aadacca
9404e7e
7f4de6f
56ec9a1
a9b0882
6be0637
60505c1
909389d
b60342d
958c1f8
fc4daec
f1fcfd5
d53a459
434e551
da15433
629a67f
b4766f5
a4df24c
df29ddb
67267af
ab1629c
cc60d7b
0e69701
b89144f
84b8401
c1933b1
d382b96
7831a11
5d0c60b
3f9378b
4b833dd
9040969
f4078b3
b51f98e
9516260
b15b3a2
fd00a90
029da25
06a0882
84a591f
6799167
ee767e8
d47d819
f083bc5
4365677
30d2ae3
840cd31
23c16e1
b7b7e8e
2255a82
5e5fc09
4272629
a9f75c9
a7eb6c2
d8f4bc4
d9d71ba
56d32c6
bbff7fd
cbbea19
5589eb8
670b707
765eb00
32cf766
798b43f
00e2890
57451c6
c36fc05
5b926b7
2c2b0e6
14ff7db
6847c28
65a0863
ccacdca
b170f21
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
lursz marked this conversation as resolved.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, it basically means that the example failed to load. Should happen pretty seldom tho
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, it happened to me at least 3 times while testing, one of which was on my first ever hover after a refresh. I don't think we can ignore this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's really difficult to reproduce, this might be a race condition, will look into it
lursz marked this conversation as resolved.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we get rid of this loading text? Screen.Recording.2026-01-23.at.16.45.17.mov
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's a feature not a bug! xd
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we at least center it? Right now it definitely does not look intended
lursz marked this conversation as resolved.
lursz marked this conversation as resolved.
lursz marked this conversation as resolved.
lursz marked this conversation as resolved.
lursz marked this conversation as resolved.
lursz marked this conversation as resolved.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch. I just assumed this line is some figma overlay, my mistake
lursz marked this conversation as resolved.
|
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,148 @@ | ||
| --- | ||
| import { Image } from "astro:assets"; | ||
| import as_a_foundation from "../assets/hero/as_a_foundation.svg"; | ||
| import as_a_puzzle_piece from "../assets/hero/as_a_puzzle_piece.svg"; | ||
| import for_libraries from "../assets/hero/for_libraries.svg"; | ||
| --- | ||
|
|
||
| <div class="gap-8 grid grid-cols-1 md:grid-cols-3"> | ||
|
lursz marked this conversation as resolved.
|
||
| <!-- Backlog Column --> | ||
| <div class="p-5 bg-accent-100/40 dark:bg-[#30354A]"> | ||
| <div class="flex justify-between items-center mb-6"> | ||
| <h2 class="font-bold text-blue-950 dark:text-white text-lg">Backlog</h2> | ||
| <div | ||
| class="flex justify-center items-center bg-white dark:bg-[#272B3C] shadow-sm w-8 h-8" | ||
| > | ||
| <Image | ||
| src={for_libraries} | ||
| alt="For libraries icon" | ||
| class="w-5 h-5 fill-black" | ||
| /> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="space-y-4"> | ||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Imperative code</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| </div> | ||
| <div class="p-4 border-2 border-accent-300/80"> | ||
| <h3 class="text-blue-950 dark:text-white">Need something?</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Let us know about your improvement ideas, maybe they will land here! | ||
| </p> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- In Progress Column --> | ||
| <div class="p-5 bg-accent-100/40 dark:bg-[#30354A]"> | ||
| <div class="flex justify-between items-center mb-6"> | ||
| <h2 class="text-blue-950 dark:text-white text-lg">In progress</h2> | ||
| <div | ||
| class="flex justify-center items-center bg-white dark:bg-[#272B3C] shadow-sm w-8 h-8" | ||
| > | ||
| <Image | ||
| src={as_a_puzzle_piece} | ||
| alt="As a puzzle piece icon" | ||
| class="w-5 h-5 fill-black" | ||
| /> | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="space-y-4"> | ||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Pipelines</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| <div class="mt-4"> | ||
| <span class="font-medium text-slate-500 dark:text-white text-xs" | ||
| >Planned for late 2025</span | ||
| > | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
| <!-- Shipped Column --> | ||
| <div class="p-5 bg-accent-100/40 dark:bg-[#30354A]"> | ||
| <div class="flex justify-between items-center mb-6"> | ||
| <h2 class="text-blue-950 dark:text-white text-lg">Shipped</h2> | ||
| <div | ||
| class="flex justify-center items-center dark:bg-[#272B3C] shadow-sm w-8 h-8" | ||
| > | ||
| <Image | ||
| src={as_a_foundation} | ||
| alt="As a foundation icon" | ||
| class="w-5 h-5 fill-black" | ||
| /> | ||
| </div> | ||
| </div> | ||
| <div class="space-y-4"> | ||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Data structures & buffers</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| <div class="flex justify-between items-center mt-4"> | ||
| <span class="text-slate-500 dark:text-white text-xs">May 2024</span> | ||
| <span | ||
| class="bg-slate-100 px-2 py-1 font-semibold text-slate-600 text-xs" | ||
| >v0.1</span | ||
| > | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Bind groups</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| <div class="flex justify-between items-center mt-4"> | ||
| <span class="text-slate-500 dark:text-white text-xs">Oct 2024</span> | ||
| <span | ||
| class="bg-slate-100 px-2 py-1 font-semibold text-slate-600 text-xs" | ||
| >v0.2</span | ||
| > | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Linker</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| <div class="flex justify-between items-center mt-4"> | ||
| <span class="text-slate-500 dark:text-white text-xs">Feb 2025</span> | ||
| <span | ||
| class="bg-slate-100 px-2 py-1 font-semibold text-slate-600 text-xs" | ||
| >v0.3</span | ||
| > | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="bg-white dark:bg-[#272B3C] shadow-sm p-4"> | ||
| <h3 class="text-blue-950 dark:text-white">Functions</h3> | ||
| <p class="mt-1 text-slate-500 dark:text-white text-sm"> | ||
| Perform multiple background tasks at the same time and improve the | ||
| every... | ||
| </p> | ||
| <div class="flex justify-between items-center mt-4"> | ||
| <span class="text-slate-500 dark:text-white text-xs">Feb 2025</span> | ||
| <span | ||
| class="bg-slate-100 px-2 py-1 font-semibold text-slate-600 text-xs" | ||
| >v0.3</span | ||
| > | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| interface Props { | ||
| title: string; | ||
| message: string; | ||
| icon: ((_props: astroHTML.JSX.SVGAttributes) => any) & ImageMetadata; | ||
| } | ||
|
|
||
| const { title, message, icon } = Astro.props as Props; | ||
| --- | ||
|
|
||
| <div | ||
| class="bg-position-[100%_100%] bg-gradient-to-tl from-gradient-blue via-gradient-purple to-[#f8f7dd] p-0.5 bg-size-[200%_200%] aspect-square" | ||
| > | ||
| <div class="flex flex-col items-start dark:bg-[#30354A] p-8 aspect-square bg-accent-50"> | ||
| <div | ||
| class="flex justify-center items-center bg-position-[100%_100%] bg-gradient-to-tl from-gradient-blue via-gradient-purple to-[#f8f7dd] mb-6 w-16 h-16 bg-size-[200%_200%]" | ||
| > | ||
| {icon && <img src={icon.src} alt="Icon" class="w-8 h-8" />} | ||
| </div> | ||
|
|
||
| <h3 class="mb-4 font-semibold text-gray-800 dark:text-white sm:text-lg md:text-2xl"> | ||
| {title} | ||
| </h3> | ||
|
|
||
| <p class="text-base text-gray-600 dark:text-white leading-relaxed"> | ||
| {message} | ||
| </p> | ||
| </div> | ||
| </div> |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| --- | ||
| import { Code } from "astro/components"; | ||
|
|
||
| type SupportedLanguages = | ||
| | "typescript" | ||
| | "javascript" | ||
| | "jsx" | ||
| | "tsx" | ||
| | "html" | ||
| | "css" | ||
| | "json" | ||
| | "yaml" | ||
| | "markdown" | ||
| | "bash" | ||
| | "shell"; | ||
|
|
||
| interface Props { | ||
| code: string; | ||
| language?: SupportedLanguages; | ||
| } | ||
|
|
||
| const { code, language = "typescript" } = Astro.props as Props; | ||
|
|
||
| const formattedCode = code.trim(); | ||
| --- | ||
|
|
||
| <div class="w-full"> | ||
| <div class:list={["overflow-x-auto", "text-[0.5rem] md:text-sm font-mono"]}> | ||
| <Code | ||
| code={formattedCode} | ||
| lang={language} | ||
| theme="github-dark" | ||
| class={"p-4"} | ||
| /> | ||
| </div> | ||
| </div> | ||
| <!-- one-dark-pro, github-dark, github-light, dracula, nord, monokai, solarized-light, solarized-dark --> | ||
| <style> | ||
| code { | ||
| counter-reset: line; | ||
| font-family: "JetBrains Mono", monospace; | ||
| } | ||
|
|
||
| :global(code) { | ||
| counter-reset: step; | ||
| counter-increment: step 0; | ||
| } | ||
|
|
||
| :global(code .line::before) { | ||
| content: counter(step); | ||
| counter-increment: step; | ||
| width: 1rem; | ||
| margin-right: 1rem; | ||
| display: inline-block; | ||
| } | ||
| </style> |



There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes in this file are forcing code snippets in the docs to be dark mode. Also, I think the code snippets on the landing page should respect the light/dark mode settings, or it's at least something we should explore.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I've just noticed, it replaced the theme for all code snippets. Would we like to have the exact same theme everywhere (homepage + docs) or keep them separated?