Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove tag lines from features
Browse files Browse the repository at this point in the history
leandroiohk committed Aug 9, 2024
1 parent bd76f23 commit 3d0542b
Showing 2 changed files with 1 addition and 37 deletions.
24 changes: 0 additions & 24 deletions docs/docs/homepage/features.tsx
Original file line number Diff line number Diff line change
@@ -19,10 +19,6 @@ export const FeatureList = [
message:
"Transaction finality is only bounded by Head network latency, resulting in near-instant settlement",
}),
tagLine: translate({
id: "homepage.featureList.lowLatency.perk",
message: "Fast and cheap transactions",
}),
},
{
title: translate({
@@ -35,10 +31,6 @@ export const FeatureList = [
message:
"Transactions are replicated only among protocol participants, reducing data processing and increasing throughput",
}),
tagLine: translate({
id: "homepage.featureList.highThroughput.perk",
message: "Fast and cheap transactions",
}),
},
{
title: translate({
@@ -51,10 +43,6 @@ export const FeatureList = [
message:
"Low processing needs by protocol participants and configurable protocol parameters enable even zero-fee use cases",
}),
tagLine: translate({
id: "homepage.featureList.lowFees.perk",
message: "Fast and cheap transactions",
}),
},
{
title: translate({
@@ -67,10 +55,6 @@ export const FeatureList = [
message:
"Cardano transactions are processed off-chain using the exact same battle-tested Cardano ledger",
}),
tagLine: translate({
id: "homepage.featureList.isomorphicStateChannels.perk",
message: "Native security",
}),
},
{
title: translate({
@@ -83,10 +67,6 @@ export const FeatureList = [
message:
"Participants of a Hydra head cannot lose any funds that they have not explicitly authorized",
}),
tagLine: translate({
id: "homepage.featureList.censorshipResistance.perk",
message: "Native security",
}),
},
{
title: translate({
@@ -99,9 +79,5 @@ export const FeatureList = [
message:
"The Hydra protocols have been peer-reviewed and implementations are heavily tested resulting in high-security standards",
}),
tagLine: translate({
id: "homepage.featureList.basedOnThoroughResearch.perk",
message: "Native security",
}),
},
];
14 changes: 1 addition & 13 deletions docs/src/components/homepage/Features.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { FC } from "react";
import clsx from "clsx";
import { motion } from "framer-motion";
import { FeatureList } from "../../../docs/homepage/features";
import useMediaQuery from "../../hooks/useMediaQuery";
@@ -9,11 +8,10 @@ type Props = {
icon: React.JSX.Element;
title: string;
description: string;
tagLine: string;
index: number;
};

const Feature: FC<Props> = ({ icon, title, description, tagLine, index }) => {
const Feature: FC<Props> = ({ icon, title, description, index }) => {
const isTabletUp = useMediaQuery(forTablet);
return (
<motion.div
@@ -32,16 +30,6 @@ const Feature: FC<Props> = ({ icon, title, description, tagLine, index }) => {
<h6 className="text-2xl">{title}</h6>
</div>
<p>{description}</p>
<span
className={clsx(
"p-2 w-fit text-sm",
tagLine === "Fast and cheap transactions"
? "text-teal bg-[#F3F6F8]"
: "text-darkRed bg-[#F8F4F6]"
)}
>
{tagLine}
</span>
</motion.div>
);
};

0 comments on commit 3d0542b

Please sign in to comment.