From a3cd8ed268199d0553109adc39245aecffb7497c Mon Sep 17 00:00:00 2001 From: Dimitri POSTOLOV Date: Mon, 28 Oct 2024 16:30:02 +0300 Subject: [PATCH] fix images on mobile in `/docs/get-started/first-steps` (#5666) --- .../web/docs/src/components/screenshot.ts | 5 ++++ .../pages/docs/get-started/first-steps.mdx | 25 ++++--------------- 2 files changed, 10 insertions(+), 20 deletions(-) create mode 100644 packages/web/docs/src/components/screenshot.ts diff --git a/packages/web/docs/src/components/screenshot.ts b/packages/web/docs/src/components/screenshot.ts new file mode 100644 index 000000000..edf6f976b --- /dev/null +++ b/packages/web/docs/src/components/screenshot.ts @@ -0,0 +1,5 @@ +import { cloneElement, ReactElement } from 'react'; + +export function Screenshot({ children }: { children: ReactElement }) { + return cloneElement(children, { className: 'mt-6 rounded-lg drop-shadow-md' }); +} diff --git a/packages/web/docs/src/pages/docs/get-started/first-steps.mdx b/packages/web/docs/src/pages/docs/get-started/first-steps.mdx index f2a14872a..93ffd0c64 100644 --- a/packages/web/docs/src/pages/docs/get-started/first-steps.mdx +++ b/packages/web/docs/src/pages/docs/get-started/first-steps.mdx @@ -1,8 +1,5 @@ -import NextImage from 'next/image' import { Callout, Cards, Steps, Tabs } from '@theguild/components' -import orgImage from '../../../../public/docs/pages/first-steps/org.png' -import projectImage from '../../../../public/docs/pages/first-steps/project.png' -import signupImage from '../../../../public/docs/pages/first-steps/signup.png' +import { Screenshot } from '../../../components/screenshot' # First Steps with Hive Cloud @@ -13,11 +10,7 @@ import signupImage from '../../../../public/docs/pages/first-steps/signup.png' To get started with Hive, first sign up and create your Hive account if you haven't already. [You can use this page to login or sign up](https://app.graphql-hive.com/auth). - +![Login/Signup view](/docs/pages/first-steps/signup.png) At the moment, Hive Cloud supports GitHub and Google authentication, or you can use a plain @@ -33,11 +26,7 @@ GraphQL APIs. Hive organizations are used to manage access, integrations, and bi To create a new organization, [you use this page](https://app.graphql-hive.com/org/new). - +![Create Organization Form](/docs/pages/first-steps/org.png) Once you've successfully created your organization, you'll be able to expand your organization by inviting other members to join and collaborate on projects. @@ -143,13 +132,9 @@ Hive supports the following project types: To get started with your Hive **project**, click on **Create Project +** button from the organization's main page: - +![Create Project Form](/docs/pages/first-steps/project.png) -Continue with one of the following guidebased on the type of project you selected. +Continue with one of the following guide based on the type of project you selected.