fix: another try at images in next.js

This commit is contained in:
Rotimi Best
2024-02-07 21:29:07 +01:00
parent 5af8cb0340
commit ee3e446db7
12 changed files with 90 additions and 50 deletions
@@ -40,14 +40,16 @@ For this step you need to have signed up for supabase and create an account, jus
Once you have an account just click on the _New Project_ on your dashboard. After that you should see a similar screen to the below, fill in the fields. Once you have an account just click on the _New Project_ on your dashboard. After that you should see a similar screen to the below, fill in the fields.
<Image <div className="nx-w-full nx-flex nx-items-center nx-justify-center">
src="/docs/new-project.webp" <Image
alt="New project in supabase" src={`${process.env.imagePath}/supabase-cloud/new-project.webp`}
quality="100" alt="New project in supabase"
width={500} quality="100"
height={500} width={500}
className="nx-rounded-md nx-my-4" height={500}
/> className="nx-rounded-md nx-my-4"
/>
</div>
<Callout> <Callout>
Make sure you save your database password somewhere, else you won't be able to get it back Make sure you save your database password somewhere, else you won't be able to get it back
@@ -68,14 +70,16 @@ Follow the instruction in your terminal to generate your access token. Paste the
- Go to the supabase dashboard, go to your project, click on the settings icon on the left side bar - Go to the supabase dashboard, go to your project, click on the settings icon on the left side bar
<Image <div className="nx-w-full nx-flex nx-items-center nx-justify-center">
src="/docs/db-url.webp" <Image
alt="DB URL in the supabase dashboard" src={`${process.env.imagePath}/supabase-cloud/db-url.webp`}
quality="100" alt="DB URL in the supabase dashboard"
width={500} quality="100"
height={500} width={500}
className="nx-rounded-md nx-my-4" height={500}
/> className="nx-rounded-md nx-my-4"
/>
</div>
- Copy the URL in the image above for your `db url` - Copy the URL in the image above for your `db url`
- Paste it somewhere - Paste it somewhere
@@ -93,27 +97,31 @@ pnpm supabase db push --db-url "URL HERE"
#### Result #### Result
<Image <div className="nx-w-full nx-flex nx-items-center nx-justify-center">
src="/docs/db-push-result.webp" <Image
alt="Result of supabase db push" src={`${process.env.imagePath}/supabase-cloud/db-push-result.webp`}
quality="100" alt="Result of supabase db push"
width={500} quality="100"
height={500} width={500}
className="nx-rounded-md nx-my-4" height={500}
/> className="nx-rounded-md nx-my-4"
/>
</div>
### Configure Auth in your Supabase project ### Configure Auth in your Supabase project
Here we will update our email configurations, to prevent supabase from sending confirmation emails on signup. This is because we don't have email confirmation setup on ClassroomIO, this feature will come later. If you don't disable it, you won't be able to signup into the application. Here we will update our email configurations, to prevent supabase from sending confirmation emails on signup. This is because we don't have email confirmation setup on ClassroomIO, this feature will come later. If you don't disable it, you won't be able to signup into the application.
<Image <div className="nx-w-full nx-flex nx-items-center nx-justify-center">
src="/docs/auth-settings.webp" <Image
alt="Authentication configuration" src={`${process.env.imagePath}/supabase-cloud/auth-settings.webp`}
quality="100" alt="Authentication configuration"
width={500} quality="100"
height={500} width={500}
className="nx-rounded-md nx-my-4" height={500}
/> className="nx-rounded-md nx-my-4"
/>
</div>
### Add configurations to your environment variables ### Add configurations to your environment variables
@@ -127,14 +135,16 @@ PUBLIC_SUPABASE_ANON_KEY=
To get the correct environment variables, follow the instructions in this image To get the correct environment variables, follow the instructions in this image
<Image <div className="nx-w-full nx-flex nx-items-center nx-justify-center">
src="/docs/match-env.webp" <Image
alt="Source of supabase environment variables" src={`${process.env.imagePath}/supabase-cloud/match-env.webp`}
quality="100" alt="Source of supabase environment variables"
width={500} quality="100"
height={500} width={500}
className="nx-rounded-md nx-my-4" height={500}
/> className="nx-rounded-md nx-my-4"
/>
</div>
### Tada - That's all ### Tada - That's all
+40 -10
View File
@@ -1,10 +1,5 @@
import Image from 'next/image'; import Image from 'next/image';
import { Steps } from 'nextra/components'; import { Steps } from 'nextra/components';
import DashboardHomePageSignedin from './images/dashboard-homepage-signedin.webp';
import DashboardHomePageSignedout from './images/dashboard-homepage-signedout.webp';
import DashboardOnboardingPage1 from './images/onboarding-page1.webp';
import DashboardOnboardingPage2 from './images/onboarding-page2.webp';
import DashboardSignupPage from './images/signup-page.webp';
# Signing Up for ClassroomIO # Signing Up for ClassroomIO
@@ -15,25 +10,60 @@ Signing up is currently disabled on production. Potential customers can only boo
Got to [app.classroomio.com](https://app.classroomio.com). Click on the signup button on the top right to take you to the Sign up page. Got to [app.classroomio.com](https://app.classroomio.com). Click on the signup button on the top right to take you to the Sign up page.
<Image src={DashboardHomePageSignedout} alt="Dashboard before signin" quality="100" /> <Image
src={`${process.env.imagePath}/signup/dashboard-homepage-signedout.webp`}
alt="Dashboard before signin"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
### Create an account ### Create an account
Once you are on the signup page, enter your email and a password made up of 6 or more characters. Once you are on the signup page, enter your email and a password made up of 6 or more characters.
<Image src={DashboardSignupPage} alt="Dashboard signin page" quality="100" /> <Image
src={`${process.env.imagePath}/signup/signup-page.webp`}
alt="Dashboard signin page"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
### Complete the onboarding ### Complete the onboarding
Upon completing the signup flow, you will be redirected to the onboarding page. Here you can enter your fullname and your organization details and next you would share how you heard of ClassroomIO Upon completing the signup flow, you will be redirected to the onboarding page. Here you can enter your fullname and your organization details and next you would share how you heard of ClassroomIO
<Image src={DashboardOnboardingPage1} alt="Dashboard onboarding page 1" quality="100" /> <Image
<Image src={DashboardOnboardingPage2} alt="Dashboard onboarding page 2" quality="100" /> src={`${process.env.imagePath}/signup/onboarding-page1.webp`}
alt="Dashboard onboarding page 1"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
<Image
src={`${process.env.imagePath}/signup/onboarding-page2.webp`}
alt="Dashboard onboarding page 2"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
### Welcome to the dashboard ### Welcome to the dashboard
After you go through the onboarding, you are successfully signed up and you are ready to start using the platform. After you go through the onboarding, you are successfully signed up and you are ready to start using the platform.
<Image src={DashboardHomePageSignedin} alt="Dashboard after signing in" quality="100" /> <Image
src={`${process.env.imagePath}/signup/dashboard-homepage-signedin.webp`}
alt="Dashboard after signing in"
quality="100"
width={500}
height={500}
className="nx-rounded-md nx-my-4"
/>
</Steps> </Steps>

Before

Width:  |  Height:  |  Size: 100 KiB

After

Width:  |  Height:  |  Size: 100 KiB

Before

Width:  |  Height:  |  Size: 55 KiB

After

Width:  |  Height:  |  Size: 55 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 29 KiB

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

Before

Width:  |  Height:  |  Size: 89 KiB

After

Width:  |  Height:  |  Size: 89 KiB

Before

Width:  |  Height:  |  Size: 32 KiB

After

Width:  |  Height:  |  Size: 32 KiB

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB