-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
Open
lursz
wants to merge
63
commits into
main
Choose a base branch
from
feat/homepage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
feat: new homepage #1858
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
e6f2c8a
header
lursz c2edc37
hero init
lursz ddace29
footer init
lursz 2cf09a2
gradient button
lursz 75bb4c4
code editor init
lursz 38d7824
created code switch buttons
lursz aadacca
code switch
lursz 9404e7e
complete code editors
lursz 7f4de6f
cleanup
lursz 56ec9a1
pc styling
lursz a9b0882
example gallery init
lursz 6be0637
gif
lursz 60505c1
🦕
lursz 909389d
buttons for code buttons
lursz b60342d
thumbnails
lursz 958c1f8
backlog init
lursz fc4daec
canvas full width
lursz f1fcfd5
backlog complete
lursz d53a459
resize canvas
lursz 434e551
videos section
lursz da15433
video title inset
lursz 629a67f
mobile 🦕
lursz b4766f5
dark theme
lursz a4df24c
example labels
lursz df29ddb
complete content
lursz 67267af
on hover on mobile
lursz ab1629c
hint box
lursz cc60d7b
better buttons
lursz 0e69701
layout changes
lursz b89144f
🦕
lursz 84b8401
Merge branch 'main' into feat/homepage
lursz c1933b1
jelly in, perlin out
lursz d382b96
🦕🦕
lursz 7831a11
Merge branch 'main' into feat/homepage
lursz 5d0c60b
theme switcher fix
lursz 3f9378b
consistent bg-dark
lursz 4b833dd
layout squeeze
lursz 9040969
Merge branch 'main' into feat/homepage
lursz f4078b3
Merge branch 'main' into feat/homepage
lursz b51f98e
pixel perfect ligma
lursz 9516260
whole example button is clickable
lursz b15b3a2
video reformat
lursz fd00a90
finished layout polishing
lursz 029da25
Merge branch 'main' into feat/homepage
lursz 06a0882
homepage mobile layout
lursz 84a591f
all webp
lursz 6799167
hscroll fix:
lursz ee767e8
solid baseline
lursz d47d819
done
lursz f083bc5
working
lursz 4365677
using atom to hold active example
lursz 30d2ae3
refactor
lursz 840cd31
md fixes
lursz 23c16e1
Merge branch 'main' into feat/homepage
lursz b7b7e8e
new code snippets
lursz 2255a82
Merge branch 'main' into feat/homepage
lursz 5e5fc09
🦕🦕🦕
lursz 4272629
Merge remote-tracking branch 'refs/remotes/origin/feat/homepage' into…
lursz a9f75c9
🦕🦕
lursz a7eb6c2
maybe github dark pro is bundled bruh
lursz d8f4bc4
bundled theme
lursz d9d71ba
no transition gg
lursz 56d32c6
width 🦕
lursz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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"> | ||
| <!-- 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

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.