From 3941ef4aa22aba3aeaaf90aa1f001834c7f0a992 Mon Sep 17 00:00:00 2001 From: Rebecca Le Date: Thu, 2 Feb 2023 12:19:26 +0800 Subject: [PATCH] chore: Extract testimonials to shared function component A lot of the classes were subtly different - now the only thing that needs to change is the margin that creates the overlapping effect --- lib/ash_hq_web/pages/home.ex | 136 ++++++++++++++--------------------- 1 file changed, 55 insertions(+), 81 deletions(-) diff --git a/lib/ash_hq_web/pages/home.ex b/lib/ash_hq_web/pages/home.ex index a862694..20ca35e 100644 --- a/lib/ash_hq_web/pages/home.ex +++ b/lib/ash_hq_web/pages/home.ex @@ -165,92 +165,41 @@ defmodule AshHqWeb.Pages.Home do
-
-
-

- "Through its declarative extensibility, Ash delivers more than you'd expect: Powerful APIs with filtering/sorting/pagination/calculations/aggregations, pub/sub, authorization, rich introspection, GraphQL... It's what empowers this solo developer to build an ambitious ERP!" -

+ <.testimonial + text="Through its declarative extensibility, Ash delivers more than you'd expect: Powerful APIs with filtering/sorting/pagination/calculations/aggregations, pub/sub, authorization, rich introspection, GraphQL... It's what empowers this solo developer to build an ambitious ERP!" + author="Frank Dugan III" + title="System Specialist, SunnyCor Inc." + /> -

-

- Frank Dugan III -
-
- System Specialist, SunnyCor Inc. -
-

-
-
+ <.testimonial + text="I’m constantly blown away with the quality of work and support the Ash community has put into this project. It’s gotten to the point that I can’t imagine starting a new Elixir project that doesn’t use Ash." + author="Brett Kolodny" + title="Full stack engineer, MEW" + class_overrides="md:-mt-20" + /> -
-
-

- "I’m constantly blown away with the quality of work and support the Ash community has put into this project. It’s gotten to the point that I can’t imagine starting a new Elixir project that doesn’t use Ash." -

+ <.testimonial + text="Ash is an incredibly powerful idea that gives Alembic a massive competitive advantage. It empowers us to build wildly ambitious applications for our clients with tiny teams, while consistently delivering the high level of quality that our customers have come to expect." + author="Josh Price" + title="Technical Director, Alembic" + class_overrides="md:-mt-4" + /> -

-

- Brett Kolodny -
-
- Full stack engineer, MEW -
-

-
-
+ <.testimonial + text="Ash Framework enabled us to build a robust platform for delivering financial services using bitcoin. Ash proved itself to our team by handling innovative use cases with ease and it continues to evolve ahead of our growing list of needs." + author="Yousef Janajri" + title="CTO & Co-Founder, Coinbits" + class_overrides="md:-mt-20" + /> -
-
-

- "Ash is an incredibly powerful idea that gives Alembic a massive competitive advantage. It empowers us to build wildly ambitious applications for our clients with tiny teams, while consistently delivering the high level of quality that our customers have come to expect." -

- -

-

- Josh Price -
-
- Technical Director, Alembic -
-

-
-
- -
-
-

- "Ash Framework enabled us to build a robust platform for delivering financial services using bitcoin. Ash proved itself to our team by handling innovative use cases with ease and it continues to evolve ahead of our growing list of needs." -

- -

-

- Yousef Janajri -
-
- CTO & Co-Founder, Coinbits -
-

-
-
- -
-
-

- "The more I’ve used Ash, the more blown away I am by how much I get out of it – and how little boilerplate I have to write. I’m yet to encounter a situation where I would need to fight the “Ash way” of doing things, but the framework still allows me to choose how I build my software." -

- -

-

- Juha Lehtonen -
-
- Senior Software Developer -
-

-
-
+ <.testimonial + text="The more I’ve used Ash, the more blown away I am by how much I get out of it – and how little boilerplate I have to write. I’m yet to encounter a situation where I would need to fight the “Ash way” of doing things, but the framework still allows me to choose how I build my software." + author="Juha Lehtonen" + title="Senior Software Developer" + class_overrides="md:-mt-4" + />
@@ -403,6 +352,31 @@ defmodule AshHqWeb.Pages.Home do """ end + attr(:class_overrides, :string, default: "") + + def testimonial(assigns) do + ~F""" +
+

+ "{@text}" +

+ +

+ {@author} +

+ +

+ {@title} +

+
+ """ + end + def mount(socket) do {:ok, assign(