Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding code search section back #7331

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,91 @@ const Home: FunctionComponent = () => {
{/* code search ----------------------------------------------------------------- */}
{/* ------------------------------------------------------------------------------- */}
<div className="mt-28">
<div className="mx-auto max-w-6xl">
{/* header */}
<div className="flex items-center justify-center gap-4">
<img
className="h-[65px] w-[65px] rounded-t-2xl"
src="/home/branded-icons/Code-Search-squircle.svg"
alt="Code Search Product logo"
/>
<h2 className="text-3xl font-medium sm:text-5xl md:text-6xl">Code Search</h2>
</div>
{/* description */}
<p className="text-balance mx-auto mt-4 max-w-xl text-center text-sm text-gray-500 sm:text-base md:text-lg lg:mt-8">
Search your entire codebase—every code host and repository, at any scale—in a single place.
Code Search makes it easy for developers to onboard to new codebases, understand code
faster, and find & fix security risks.
</p>
{/* link */}
<div className="mt-4 text-center">
<Link
href="https://sourcegraph.com/code-search"
title="Code Search"
className="btn btn-link btn-link-icon"
>
Learn more about Code Search
<ChevronRightIcon className="link-icon" />
</Link>
</div>
{/* Find and fix code */}
<div className="relative mt-10 flex min-h-[220px] gap-10 overflow-hidden rounded-2xl border border-gray-200 bg-white px-6 pb-8 pt-8 md:px-10 lg:pt-4 lg:pb-0">
<div className="lg:pt-12">
<img
className="h-8 w-8"
src="/home/branded-icons/code-search-icon.svg"
alt="Completions Brand Icon"
/>
<h2 className="mt-4 text-2xl lg:text-3xl">Find and fix code</h2>
<p className="mt-2 mb-0 text-gray-500">
Find what you need in milliseconds across all of your code-no matter where it lives.
</p>
</div>
<div className="flex-grow">
<img
className="hidden w-[750px] lg:block"
src="/home/screens/find reusable implementations.svg"
alt="Find reusable implementations"
height={600}
width={600}
/>
</div>
</div>
{/* Code Search sections */}
<div className="mt-6 grid gap-4 md:grid-cols-2">
{/* Automate large-scale changes */}
<div className="rounded-2xl border border-gray-200 bg-white px-6 py-10 md:px-10">
<img
className="h-8 w-8"
src="/home/branded-icons/batch-changes-icon.svg"
alt="Batch Changes Icon"
/>
<h2 className="mt-4 text-2xl lg:text-3xl">Automate large-scale code changes</h2>
<p className="mt-2 mb-0 text-gray-500">
Find and make changes across your codebase in one go, whether a version change or a
vulnerability fix.
</p>
</div>
{/* Track trends */}
<div className="rounded-2xl border border-gray-200 bg-white px-6 py-10 md:px-10">
<img
className="h-8 w-8"
src="/home/branded-icons/Code-insights-icon.svg"
alt="Code Insights Icon"
/>
<h2 className="mt-4 text-2xl lg:text-3xl">Track trends in your codebase</h2>
<p className="mt-2 mb-0 text-gray-500">
Transform your code into a queryable database to create custom dashboards in
seconds.
</p>
</div>
</div>
</div>
</div>

{/* call to actions --------------------------------------------------------- */}
{/* ------------------------------------------------------------------------------- */}
<div className="mt-14">
<HomePageCta handleOpenModal={handleOpenModal} />
</div>

Expand Down
Loading