-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Make landing page "connection creator" image smaller for small screens
- Move "coming soon" to Dataline column in comparison table
- Loading branch information
1 parent
777077a
commit c02ce9b
Showing
3 changed files
with
123 additions
and
81 deletions.
There are no files selected for viewing
89 changes: 52 additions & 37 deletions
89
text2sql-frontend/src/components/Landing/FeatureComparisonTable.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,56 @@ | ||
|
||
import features from "@components/Landing/features.json" | ||
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@catalyst/table" | ||
import features from "@components/Landing/features.json"; | ||
import { | ||
Table, | ||
TableBody, | ||
TableCell, | ||
TableHead, | ||
TableHeader, | ||
TableRow, | ||
} from "@catalyst/table"; | ||
import { CheckCircleIcon } from "@heroicons/react/24/solid"; | ||
|
||
const FeatureComparisonTable = () => { | ||
return ( | ||
<div className="flex justify-center"> | ||
<div className="bg-gray-800 w-fit rounded-xl border border-gray-700 overflow-x-scroll sm:overflow-hidden"> | ||
<Table dense bleed grid striped className="[--gutter:theme(spacing.4)] w-fit pl-4 sm:px-4"> | ||
<TableHead> | ||
<TableRow> | ||
<TableHeader>Feature</TableHeader> | ||
<TableHeader>DataLine</TableHeader> | ||
<TableHeader>ChatGPT Plus</TableHeader> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{features.features.map(({ feature, dataline, chatgpt }) => ( | ||
<TableRow key={feature}> | ||
<TableCell className="text-zinc-400">{feature}</TableCell> | ||
<TableCell className="text-zinc-400">{ | ||
dataline && | ||
<CheckCircleIcon className="text-emerald-500 w-8 h-8 mx-auto"></CheckCircleIcon> | ||
|
||
}</TableCell> | ||
<TableCell className="text-zinc-400">{ | ||
chatgpt && | ||
<CheckCircleIcon className="text-emerald-500 w-8 h-8 mx-auto"></CheckCircleIcon> | ||
|
||
}</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</div> | ||
</div> | ||
) | ||
} | ||
const renderEntry = (input: true | string) => { | ||
return input === true ? ( | ||
<CheckCircleIcon className="text-emerald-500 w-8 h-8 mx-auto"></CheckCircleIcon> | ||
) : ( | ||
input | ||
); | ||
}; | ||
return ( | ||
<div className="flex justify-center"> | ||
<div className="bg-gray-800 w-fit rounded-xl border border-gray-700 overflow-x-scroll sm:overflow-hidden"> | ||
<Table | ||
dense | ||
bleed | ||
grid | ||
striped | ||
className="[--gutter:theme(spacing.4)] w-fit pl-4 sm:px-4" | ||
> | ||
<TableHead> | ||
<TableRow> | ||
<TableHeader className="text-center">Feature</TableHeader> | ||
<TableHeader className="text-center">DataLine</TableHeader> | ||
<TableHeader className="text-center">ChatGPT Plus</TableHeader> | ||
</TableRow> | ||
</TableHead> | ||
<TableBody> | ||
{features.features.map(({ feature, dataline, chatgpt }) => ( | ||
<TableRow key={feature}> | ||
<TableCell className="text-zinc-400">{feature}</TableCell> | ||
<TableCell className="text-zinc-400"> | ||
{dataline && renderEntry(dataline)} | ||
</TableCell> | ||
<TableCell className="text-zinc-400"> | ||
{chatgpt && renderEntry(chatgpt)} | ||
</TableCell> | ||
</TableRow> | ||
))} | ||
</TableBody> | ||
</Table> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default FeatureComparisonTable; | ||
export default FeatureComparisonTable; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters