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

feat: add quick start guides to front page #2327

Merged
4 commits merged into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from 3 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
1 change: 1 addition & 0 deletions src/components/DocsHome/AskAIWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export function AskAIWidget() {
data-project-logo="https://s3.coinmarketcap.com/static-gravity/image/2fb1bc84c1494178beef0822179d137d.png"
data-button-hide="true"
data-modal-override-open-class="ask-ai-widget-trigger"
data-modal-ask-ai-input-placeholder="Ask me a question about the Internet Computer Protocol"
/>
</Head>
<button
Expand Down
69 changes: 69 additions & 0 deletions src/components/DocsHome/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,75 @@ const DocsHomePage: FC = () => {
</div>
</section>

<section className="mt-10">
<div
className="
py-8 sm:p-10 border border-white border-solid rounded-lg bg-white/70
grid
grid-cols-1
sm:grid-cols-2
md:grid-cols-6
px-0
pb-5 sm:pb-10
"
>
<div className="border-0 border-b sm:border-b-0 md:border-r border-solid border-black/10 mx-6 sm:mx-0 md:pr-8 flex flex-col sm:flex-row md:flex-col sm:col-span-2 md:col-span-1 pb-10 sm:pb-10 md:pb-0">
<div className="h-[100px] md:h-[200px] flex-1">
<h3 className="tw-heading-6 mb-10 sm:mb-0">
Quick Start
<br />
Guides
</h3>
</div>
<div className="flex-1 flex flex-col">
<p className="tw-paragraph text-black/80 mb-6 flex-1">
Whether you're new to coding or an experienced developer, our
documentation portal has everything you need. We provide
easy-to-follow guides, tutorials, code samples, and API
references for multiple languages like JavaScript, Python, Java,
Go, Rust, C++ and more.
</p>
<p className="mb-0">
<Link
href="/docs/current/developer-docs/backend/choosing-language"
className="link-primary link-with-icon"
>
View all <LinkArrowRight />
</Link>
</p>
</div>
</div>
<div className="snap-x flex sm:contents overflow-auto scroll-m-10 pb-5 border-0 border-solid border-black/10 docs-home-languages-scrollbar">
<div className="snap-center min-w-[80vw] sm:min-w-0 border-0 border-r sm:border-t md:border-t-0 border-solid border-black/10 px-6 sm:pl-0 sm:pr-8 md:px-6 pt-10 sm:pb-10 md:pb-0 md:pt-0 flex flex-col">
<div className="mb-16 md:mb-0 md:h-[200px]">
<img
src="/img/docs/react.svg"
alt="React quick start"
className="w-10 h-10"
loading="lazy"
/>
</div>
<div className="flex-1 flex flex-col">
<h4 className="tw-heading-5 mb-6">React</h4>
<p className="tw-paragraph text-black/80 mb-6 flex-1">
Start here if you're coming to the Internet Computer Protocol
as a React developer.
</p>
<p className="mb-0">
<Link
href="/docs/current/developer-docs/setup/react-quickstart"
className="link-primary"
title="Go to Quickstart for React Devs"
>
<LinkArrowRight />
</Link>
</p>
</div>
</div>
</div>
</div>
</section>

<section className="mt-10">
<Blog></Blog>
</section>
Expand Down
9 changes: 9 additions & 0 deletions static/img/docs/react.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.