From 9f9c5fd59d505819642b7fc72e6e87190232a9e8 Mon Sep 17 00:00:00 2001 From: Nikita Tchayka Date: Tue, 5 Sep 2023 22:08:10 +0100 Subject: Update --- src/components/HomepageFeatures/index.tsx | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'src/components/HomepageFeatures/index.tsx') diff --git a/src/components/HomepageFeatures/index.tsx b/src/components/HomepageFeatures/index.tsx index 2191ea1..e1c42d3 100644 --- a/src/components/HomepageFeatures/index.tsx +++ b/src/components/HomepageFeatures/index.tsx @@ -2,6 +2,7 @@ import React from "react"; import clsx from "clsx"; import styles from "./styles.module.css"; import CodeFrame from "../CodeFrame"; +import Button from "../Button"; type ShowCase = | { code: string; language: string } @@ -11,6 +12,8 @@ type FeatureItem = { title: string; description: JSX.Element; showcase: ShowCase; + buttonText: string; + shadowColor?: string; }; const FeatureList: FeatureItem[] = [ @@ -21,10 +24,9 @@ const FeatureList: FeatureItem[] = [ NeoHaskell offers a clean and intuitive language design, complemented by a core library that provides all the tools you need to start creating amazing software right away. -
- START CODING ), + buttonText: "Start Coding", showcase: { language: "haskell", code: `processLogs rawLogs = @@ -43,10 +45,9 @@ const FeatureList: FeatureItem[] = [ multi-platform support a breeze. Whether you're compiling to native code or generating WebAssembly for browser compatibility, you'll enjoy error messages that guide, not hinder. -
- EMPOWER YOUR DEVELOPMENT ), + buttonText: "Empower your Development", showcase: { code: "", language: "" }, }, { @@ -57,10 +58,9 @@ const FeatureList: FeatureItem[] = [ them. Say goodbye to the cognitive overhead of managing state or wrestling with dependency injection. Your focus stays where it belongs: on solving problems and crafting solutions. -
- BEGIN YOUR JOURNEY ), + buttonText: "Begin your Journey", showcase: { code: "", language: "" }, }, { @@ -70,15 +70,14 @@ const FeatureList: FeatureItem[] = [ Relish the ease of crafting full-stack applications in a unified language environment. NeoHaskell takes care of frontend-backend communication, allowing you to focus solely on your application's logic. -
- EXPERIENCE NATURAL FULL-STACK DEVELOPMENT ), + buttonText: "Experience Bliss", showcase: { code: "", language: "" }, }, ]; -function Feature({ title, showcase, description }: FeatureItem) { +function Feature({ title, showcase, description, buttonText }: FeatureItem) { const showcaseComponent = "code" in showcase ? ( {showcase.code} @@ -88,9 +87,12 @@ function Feature({ title, showcase, description }: FeatureItem) { return (
{showcaseComponent} -
-

{title}

-

{description}

+
+

{title}

+

{description}

+
); -- cgit