Skip to content

Commit 7bd4abb

Browse files
committed
feat: add testimonials
1 parent f14cb71 commit 7bd4abb

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
lines changed

src/components/Layout.astro

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
import { Image } from '@astrojs/image/components';
3+
4+
interface Props {
5+
title: string;
6+
}
7+
38
const { title } = Astro.props;
49
---
510

@@ -10,7 +15,11 @@ const { title } = Astro.props;
1015
<meta name="viewport" content="width=device-width" />
1116
<meta name="generator" content="Rustular 0.0.0" />
1217
<title>{title} - Rustular</title>
13-
<script defer data-domain="rustular.pages.dev" src="https://ingest.tokia.dev/js/plausible.js"></script>
18+
<script
19+
defer
20+
data-domain="rustular.pages.dev"
21+
src="https://ingest.tokia.dev/js/plausible.js"
22+
></script>
1423
</head>
1524
<body class="bg-slate-950 font-sans text-white">
1625
<header class="mb-16 flex h-16 items-center border-b border-slate-700">

src/components/Testimonial.astro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
import { Image } from '@astrojs/image/components';
3+
4+
interface Props {
5+
name: string;
6+
profilePic: string;
7+
testimonial: string;
8+
}
9+
10+
const { name, profilePic, testimonial } = Astro.props;
11+
---
12+
13+
<div class="flex w-72 flex-col items-center rounded-md border p-2 border-slate-400 bg-slate-900">
14+
<div class="flex">
15+
<Image
16+
class="rounded-full"
17+
src={profilePic}
18+
alt={`${name}'s profile picture'`}
19+
width={48}
20+
height={48}
21+
/>
22+
<div class="my-auto ml-2 text-xl font-bold">{name}</div>
23+
</div>
24+
<div class="pt-2 font-light">{testimonial}</div>
25+
</div>

src/pages/index.astro

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import { Image } from '@astrojs/image/components';
33
import Layout from '../components/Layout.astro';
4+
import Testimonial from '../components/Testimonial.astro';
45
---
56

67
<Layout title="Home">
@@ -85,9 +86,8 @@ import Layout from '../components/Layout.astro';
8586
Rustular open-source. We want to empower developers to create amazing web
8687
experiences. The Rustular community is always growing, and we'd love for
8788
you to join us! Visit our{' '}
88-
<a class="underline" href="https://github.com/rustular">
89-
GitHub</a
90-
> to learn more.
89+
<a class="underline" href="https://github.com/rustular"> GitHub</a> to learn
90+
more.
9191
</div>
9292
<div class="text-2xl">The idea!</div>
9393
<div class="mx-auto max-w-xl font-thin">
@@ -102,6 +102,25 @@ import Layout from '../components/Layout.astro';
102102
element, you dont have to recompile your entire application -- just the
103103
individual WASM module.
104104
</div>
105+
<h2 class="text-5xl">Developers love Rustular!</h2>
106+
<div class="m-auto flex max-w-4xl flex-wrap justify-center gap-4">
107+
<Testimonial
108+
name="whatplan"
109+
profilePic="https://pbs.twimg.com/profile_images/1636134883767590914/nRoVdSdw_400x400.jpg"
110+
testimonial="Time to rewrite my entire application in Rustular"
111+
/>
112+
<Testimonial
113+
name="Tonya"
114+
profilePic="https://cdn.discordapp.com/avatars/366321360861003787/6bdb5ec4c0a6466c1334300dfcf97ae4.png?size=256"
115+
testimonial="I never thought I'd be able to build a website this fast!"
116+
/>
117+
<Testimonial
118+
name="Iyla Kiwa"
119+
profilePic="https://pbs.twimg.com/profile_images/1379090523831537665/hunTGLqy_400x400.jpg"
120+
testimonial="This is a monstrosity, all involved should be locked up"
121+
/>
122+
</div>
123+
105124
<div class="pb-8 text-5xl">Start building with Rustular today</div>
106125
<a
107126
class="rounded-full border-2 border-white bg-white px-8 py-4 text-fuchsia-600 hover:border-slate-200 hover:bg-slate-200"

0 commit comments

Comments
 (0)