Skip to content

Commit

Permalink
Merge pull request #127 from eye-on-surveillance/AI/landing-page
Browse files Browse the repository at this point in the history
AI/landing-page
  • Loading branch information
ayyubibrahimi authored Nov 3, 2023
2 parents f9f1f9d + bada77f commit 9784905
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 15 deletions.
2 changes: 1 addition & 1 deletion packages/web/components/HomeBanner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default function HomeBanner() {
<div className="bg-blue px-6 py-5 text-center text-primary sm:px-16 md:flex">
<div className="md:grow"></div>
<div className="md:w-3/4 md:max-w-2xl">
<h1 className="text-lg">What New Orleans City Council is doing about</h1>
<h1 className="text-lg">What is New Orleans City Council is doing about</h1>
<h2 className="mt-3 text-4xl">
<span className="bg-brighter-blue text-secondary">{word}?</span>
</h2>
Expand Down
14 changes: 1 addition & 13 deletions packages/web/components/HomeResults.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { ABOUT_BETA_PATH } from "@/lib/paths";
import Link from "next/link";

import { useEffect, useRef, useState } from "react";
import { BeatLoader } from "react-spinners";
import CardLoading from "./CardLoading";
Expand Down Expand Up @@ -56,17 +55,6 @@ export default function HomeBanner() {
<div className="md:flex">
<div className="md:grow"></div>
<div className="md:w-3/4 md:max-w-2xl">
<div className="mb-3 space-y-2 rounded-lg bg-red-600 p-4 text-white">
<h1 className="text-2xl">Warning: Experimental</h1>
<p>
This tool is under active development. Responses have a tendency
to repeat false and misleading statements without fact checking.{" "}
<Link href={ABOUT_BETA_PATH} className="text-primary">
Learn more
</Link>{" "}
about the risks associated with this tool and AI generally.
</p>
</div>
{hasCards &&
cards.map((card) => <QueryResult key={card.id} card={card} />)}

Expand Down
11 changes: 10 additions & 1 deletion packages/web/components/NewQuery.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { faMagnifyingGlass } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useState } from "react";
import { useCardResults } from "./CardResultsProvider";
import { ABOUT_BETA_PATH } from "@/lib/paths";
import Link from "next/link";

function YouTubeEmbed({ url }: { url: string }) {
const videoId = url.split("v=")[1]?.split("&")[0];
Expand Down Expand Up @@ -151,7 +153,7 @@ export default function NewQuery() {
id="new-query"
type="text"
value={query}
placeholder={`Ask ${APP_NAME} a question`}
placeholder={`Ask ${APP_NAME} a question about New Orleans' City Council`}
autoFocus
disabled={isProcessing}
onChange={(e) => setQuery(e.currentTarget.value)}
Expand All @@ -165,6 +167,13 @@ export default function NewQuery() {
</div>
</form>

<p>
This tool is under active development. Responses may be inaccurate.{" "}
<Link href={ABOUT_BETA_PATH} className="underline">
Learn more
</Link>
</p>

<div className="mt-10">
{card?.citations?.map((citation, index) => (
<div key={index}>
Expand Down

0 comments on commit 9784905

Please sign in to comment.