@@ -9,9 +9,9 @@ import tauriSpectaLogo from "../../public/images/tauri-specta-logo.png";
9
9
export default function HomePage ( ) {
10
10
return (
11
11
< div className = "w-full h-full flex flex-col items-center justify-center" >
12
- < main className = "px-4 lg:px-12 flex flex-col lg:flex-row justify-center items-center h-full gap-16" >
12
+ < main className = "px-4 lg:px-12 grid grid-flow-row lg:grid-flow-col justify-center items-center h-full gap-16" >
13
13
< div className = "flex flex-col gap-4" >
14
- < h1 className = "text-6xl lg:text-8xl" > specta-rs</ h1 >
14
+ < h1 className = "text-6xl lg:text-8xl hidden sm:block " > specta-rs</ h1 >
15
15
< h2 className = "text-3xl lg:text-4xl" >
16
16
Rust crates for building better web apps
17
17
</ h2 >
@@ -60,7 +60,6 @@ export default function HomePage() {
60
60
logoHref = { tauriSpectaLogo . src }
61
61
logoAlt = "Tauri Specta Logo"
62
62
githubHref = "https://github.com/specta-rs/tauri-specta"
63
- // packageManagerHref="https://docs.rs/tauri-specta"
64
63
documentationHref = "/docs/tauri-specta"
65
64
packageManagerHref = "https://crates.io/crates/rspc"
66
65
>
@@ -85,7 +84,7 @@ function HeroItem(
85
84
} > ,
86
85
) {
87
86
return (
88
- < div className = "bg-[#171717] rounded-lg flex flex-row items-center p -6 gap-4 lg:p -8 lg:gap -8 focus-visible:scale-105 shadow" >
87
+ < div className = "bg-neutral-50 dark:bg- [#171717] rounded-lg flex flex-row items-center py -6 px-3 md:px-6 gap-4 md:gap -8 lg:p -8 focus-visible:scale-105 shadow" >
89
88
{ props . logoHref && (
90
89
< Image
91
90
src = { props . logoHref }
@@ -99,11 +98,11 @@ function HeroItem(
99
98
100
99
< div className = "flex flex-col flex-1 gap-2" >
101
100
< h2 className = "text-xl lg:text-3xl tracking-tight" > { props . name } </ h2 >
102
- < p className = "text-slate-200 font-semibold text-sm lg:text-base" >
101
+ < p className = "text-slate-800 dark:text-slate- 200 font-semibold text-sm lg:text-base" >
103
102
{ props . children }
104
103
</ p >
105
104
106
- < div className = "flex space-x-3" >
105
+ < div className = "flex space-x-3 md:space-x-3 justify-between md:justify-start " >
107
106
{ props . githubHref ? (
108
107
< a href = { props . githubHref } className = "hover:underline" >
109
108
GitHub
@@ -116,6 +115,8 @@ function HeroItem(
116
115
</ Link >
117
116
) : null }
118
117
118
+ { /* <div className="flex-1" /> */ }
119
+
119
120
{ props . packageManagerHref ? (
120
121
< a href = { props . packageManagerHref } className = "hover:underline" >
121
122
{ props . packageManager || "crates.io" }
0 commit comments