Skip to content

Commit

Permalink
Added Strength indicators in Generate page (#771)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Feb 17, 2024
1 parent aa11806 commit b3daf7e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions pages/generate.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
import { useState } from "react"
import Head from "next/head"
import {
CheckmarkCircle20Filled,
CheckmarkStarburst20Filled,
DismissCircle20Filled,
Info16Filled,
Info20Regular,
Lightbulb20Regular,
LightbulbFilament48Regular,
LockClosed20Regular,
Password20Regular,
Warning20Filled,
} from "@fluentui/react-icons"
import { DialogClose } from "@radix-ui/react-dialog"
import useTranslation from "next-translate/useTranslation"
Expand Down Expand Up @@ -293,6 +297,14 @@ export default function IndexPage() {
step={1}
className="m-5 sm:w-[50%]"
/>
<div className="w-full sm:w-[50%]">
<div className="grid grid-cols-[1fr,1fr,1fr,auto]">
<DismissCircle20Filled color="red" />
<Warning20Filled color="#FF7B00" />
<CheckmarkCircle20Filled color="#68EA00" />
<CheckmarkStarburst20Filled color="#00BF07" />
</div>
</div>
<p
className="icon-f m-2 text-6xl"
style={{ color: strengthColor }}
Expand Down

0 comments on commit b3daf7e

Please sign in to comment.