Skip to content

New information architecture #1194

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

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
9fa2e26
Change sidebar names
valeriahhdez Nov 18, 2024
46a4492
Change sidebar names
valeriahhdez Nov 18, 2024
c373ea5
Change structure of reference content bucket
valeriahhdez Dec 17, 2024
e2a423e
Merge branch 'json-schema-org:main' into new-information-architecture
valeriahhdez Dec 20, 2024
63b59cf
Create Guides content bucket, add overview pages to every bucket
valeriahhdez Dec 20, 2024
6f8c248
Modify type.md to provide context about to readers
valeriahhdez Dec 21, 2024
8676fc2
[obsolete-implementations]: Merge abandoned/obsolete tools data (#1091)
DarhkVoyd Dec 21, 2024
6dd9ed4
Update on Dockerfile Implementation for Windows Users
Adi-204 Dec 23, 2024
2e769f0
Revert "Update on Dockerfile Implementation for Windows Users"
Adi-204 Dec 26, 2024
98fe449
Update INSTALLATION.md
benjagm Dec 26, 2024
c4c6a9a
Add protoc-gen-jsonschema
Adi-204 Dec 27, 2024
f46a771
Merge pull request #1213 from Adi-204/improve
Relequestual Dec 27, 2024
ab500e8
chore(deps): bump slate from 0.110.2 to 0.112.0 (#1203)
dependabot[bot] Dec 27, 2024
11a66ee
chore(deps): bump codecov/codecov-action from 5.1.1 to 5.1.2 (#1198)
dependabot[bot] Dec 27, 2024
f3cb1b8
improve Specification page design (#1207)
techmannih Dec 27, 2024
7e80c14
Update conventions.md (#1107)
soukigabriel Dec 27, 2024
5114356
Add next prev button in Docs-->Overview (#1084)
RonakSurana-2001 Dec 27, 2024
6d73f73
blog post for an update on the spec
gregsdennis Jan 5, 2025
e49bf99
update publish date
gregsdennis Jan 5, 2025
918f76b
fix typo
gregsdennis Jan 5, 2025
b02e20a
updates from re-reading it after I've slept
gregsdennis Jan 5, 2025
a01a0bc
Remove unsed import
valeriahhdez Jan 6, 2025
d6edadb
Fix: Consistent Card Heights on Ambassadors Page and Update Twitter L…
Karan-Palan Jan 7, 2025
711a462
Added proper links for jsonschema-core.md and jsonschema-validation.m…
shantanu2107 Jan 7, 2025
ceb509c
fix : remove dummy text present on https://json-schema.org/overview/c…
DevanjoyDas Jan 7, 2025
ccf7bcf
Added the JSV Elixir library to the avaiable tools (#1235)
abhayymishraa Jan 7, 2025
a5db705
[Feat]-Add json schema editor tool (#1231)
MadhavDhatrak Jan 7, 2025
4cd13ac
chore(deps): bump babel-loader from 9.1.3 to 9.2.1 (#1226)
dependabot[bot] Jan 7, 2025
ac73c34
chore(deps): bump node-ical from 0.19.0 to 0.20.1 (#1227)
dependabot[bot] Jan 7, 2025
475eb59
feat/Liquid JSON Schema Editor (#1230)
MadhavDhatrak Jan 7, 2025
0caf296
add swift-json-schema in tooling data (#1222)
heysujal Jan 7, 2025
8f2c85f
Update regular_expressions.md (#1115)
Vaent Jan 7, 2025
72ae168
Added navigation buttons in other sections of website (#1218)
Utkarsh-123github Jan 7, 2025
931d13b
addres pr comments
gregsdennis Jan 10, 2025
087d54b
Create a `/pro-help` page to promote the Contractors program (#1015)
jviotti Jan 10, 2025
950e960
Docs: Improve format documentation (#963)
nikhilkalburgi Jan 10, 2025
7b65f8f
🐛 Bug #1248 fixed , [bold text harder to read] (#1271)
adityajha2005 Jan 10, 2025
e7706e2
fixed SearchIcon (#1215)
abhayymishraa Jan 10, 2025
4fe7488
Feat: Automating copyright year updation (#1270)
DhairyaMajmudar Jan 10, 2025
ab3b5bb
update date and fix a couple typos
gregsdennis Jan 13, 2025
e181398
Merge pull request #1244 from json-schema-org/gregsdennis/spec-update…
gregsdennis Jan 14, 2025
d2ae9ea
feat: add gsoc24 blogpost (#1253)
Honyii Jan 17, 2025
9ddaa2b
Update gsoc24-wrapup.md
benjagm Jan 17, 2025
700f404
Add 2 new sponsors (#1321)
benjagm Jan 17, 2025
c701374
Fix problems with table rendering (#1145)
benjagm Jan 18, 2025
d1040c5
Fix: Sidebar position sticky (#1086)
techmannih Jan 18, 2025
ee7f95a
Fixed #824 - img tags replaced by Image (#1197)
29deepanshutyagi Jan 18, 2025
ae460d9
Added transitions to dropdowns (#1265)
bhat-shubham Jan 18, 2025
27c63e5
typos fixed (#1284)
DevanjoyDas Jan 18, 2025
8b4b3eb
fix[lib]:Update to filter brackets ({, }, [, ]) that appear inside s…
Karan-Palan Jan 18, 2025
4ecd4b8
Add tooling java json validator (#1212)
Sahil-Shadwal Jan 18, 2025
69c8c3c
Blog page Tab Improvement. (#1288)
cbum-dev Jan 18, 2025
54ae0bf
feat: add @imhonglu/json-schema tool (#1331)
Adi-204 Jan 19, 2025
ee9538b
Fix: URL color on homepage in dark-mode (#1286)
Adi-204 Jan 19, 2025
32c3265
CHANGE RxDB link and logo (#1373)
pubkey Jan 25, 2025
82fb9c7
Update the community repository to the latest version (#1370)
jviotti Jan 25, 2025
e981e56
Link-redirect-fix (#1187)
Yashwanth1906 Feb 1, 2025
ddad094
docs: fix Scehma/Schema typo for Next button label on json-schema-exa…
QSchulz Feb 1, 2025
4bfe726
fix (#1328)
thepiyush-303 Feb 1, 2025
0f44216
Update index.page.tsx (#1354)
cbum-dev Feb 1, 2025
91ad4a9
solve the dropdown issue (#1358)
arpitkuriyal Feb 1, 2025
5abdd7b
Change cypress-ajv-schema-validator from Javascript to JavaScript (#1…
Kiina Feb 1, 2025
32a4525
Fix - fix markdown render in tools page (#1351)
Karan-Palan Feb 1, 2025
b7028cc
add hover effects with cursor pointer (#1348)
AQIB-NAWAB Feb 1, 2025
1346905
Feature/bug#1355 (#1366)
shantanu2107 Feb 1, 2025
7b128df
Fix : pro help sidebar alignment and add buttons (#1310)
Karan-Palan Feb 1, 2025
42f23bd
chore(deps): bump codecov/codecov-action from 5.1.2 to 5.3.1 (#1378)
dependabot[bot] Feb 1, 2025
82c086f
Feat: Dynamic contributors' avatars in the Community page (#1364)
DhairyaMajmudar Feb 1, 2025
2fa79fd
chore(deps): bump @types/node from 22.4.2 to 22.10.10 (#1380)
dependabot[bot] Feb 1, 2025
a7a92da
docs: add note clarifying multipleOf implementation (#1206)
inclinedadarsh Feb 1, 2025
6bec791
fix: removed terminal errors from .eslintrs.js file (#1295)
DhairyaMajmudar Feb 1, 2025
652f396
Fix: correct vertical alignment issue in schema example (#1297)
Karan-Palan Feb 1, 2025
d7dbd1f
solve the bowtie loading error (#1353)
arpitkuriyal Feb 1, 2025
ce17bb2
chore(deps): bump next-themes from 0.3.0 to 0.4.4 (#1304)
dependabot[bot] Feb 1, 2025
57a3894
fix: community page avatars loading optimised (#1389)
DhairyaMajmudar Feb 1, 2025
9d54f06
Integrate feedback comments
valeriahhdez Feb 2, 2025
5a608ac
Oracle case study (#1386)
loiclefevre Feb 8, 2025
634ec47
Change sidebar names
valeriahhdez Nov 18, 2024
fe9c9b5
Change structure of reference content bucket
valeriahhdez Dec 17, 2024
76039fb
Change sidebar names
valeriahhdez Nov 18, 2024
04df433
Modify type.md to provide context about to readers
valeriahhdez Dec 21, 2024
4acde6a
Remove unsed import
valeriahhdez Jan 6, 2025
c9ee5b8
Integrate feedback comments
valeriahhdez Feb 2, 2025
15b431d
Fix navigation
benjagm Feb 9, 2025
6abb805
Merge branch 'new-information-architecture' of https://github.com/val…
benjagm Feb 9, 2025
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
7 changes: 5 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module.exports = {
es2021: true,
node: true,
browser: true,
"cypress/globals": true
'cypress/globals': true,
},
settings: {
react: {
Expand Down Expand Up @@ -34,7 +34,10 @@ module.exports = {

'react/jsx-curly-spacing': ['error', { when: 'never', children: true }],
indent: ['error', 2, { SwitchCase: 1 }],
'linebreak-style': ['error', process.platform === 'win32' ? 'windows' : 'unix'],
'linebreak-style': [
'error',
process.platform === 'win32' ? 'windows' : 'unix',
],
quotes: ['error', 'single'],

'jsx-quotes': ['error', 'prefer-single'],
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
run: yarn run test:coverage:all

- name: Upload coverage report to Codecov
uses: codecov/codecov-action@v5.1.1
uses: codecov/codecov-action@v5.3.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
name: ${{ env.CODECOV_UNIQUE_NAME }}
Expand Down
2 changes: 1 addition & 1 deletion INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This guide provides step-by-step instructions for installing the JSON Schema Web

## Table of Contents

1. [Setting Up the Project](#setting-up-the-project)
1. [Setting Up the Project](#setting-up-project)
- [Requirements](#requirements)
- [Cloning the Repository](#cloning-the-repository)
- [Setting Up Environment Variables](#setting-up-environment-variables)
Expand Down
14 changes: 7 additions & 7 deletions components/AmbassadorsCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ const SocialIcon = ({ platform }: { platform: SocialIcons }) => {
twitter: (
<svg
className='w-7 h-7 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-gray-100'
viewBox='0 0 24 24'
viewBox='0 0 20 16'
fill='currentColor'
xmlns='http://www.w3.org/2000/svg'
>
<path d='M23.954 4.569c-.885.389-1.83.654-2.825.775a4.932 4.932 0 0 0 2.163-2.723 9.85 9.85 0 0 1-3.127 1.195 4.916 4.916 0 0 0-8.374 4.482A13.936 13.936 0 0 1 1.64 3.161 4.916 4.916 0 0 0 3.195 9.86a4.897 4.897 0 0 1-2.229-.616v.061a4.919 4.919 0 0 0 3.946 4.827 4.897 4.897 0 0 1-2.224.085 4.923 4.923 0 0 0 4.604 3.42A9.869 9.869 0 0 1 .977 19.569a13.94 13.94 0 0 0 7.548 2.211c9.056 0 14.012-7.497 14.012-13.986 0-.213-.005-.425-.015-.636A9.936 9.936 0 0 0 24 4.59a9.94 9.94 0 0 1-2.046.561z' />
<path d='M12.6.75h2.454l-5.36 6.142L16 15.25h-4.937l-3.867-5.07-4.425 5.07H.316l5.733-6.57L0 .75h5.063l3.495 4.633L12.601.75Zm-.86 13.028h1.36L4.323 2.145H2.865z' />
</svg>
),
linkedin: (
Expand Down Expand Up @@ -114,15 +114,15 @@ const AmbassadorCard = ({ ambassador }: { ambassador: Ambassador }) => {
contributions = [],
} = ambassador;

const SocialIconss: SocialIcons[] = [
const SocialIcons: SocialIcons[] = [
'github',
'twitter',
'mastodon',
'linkedin',
];

return (
<div className='relative max-w-sm md:max-w-md lg:max-w-lg mx-auto bg-white dark:bg-gray-800 shadow-lg rounded-lg overflow-hidden my-4 transition-all duration-300 h-fit'>
<div className='relative flex flex-col max-w-sm md:max-w-md lg:max-w-lg mx-auto bg-white dark:bg-gray-800 shadow-lg rounded-lg overflow-hidden my-4 h-full'>
<div className='absolute top-0 right-0 w-1 h-20 bg-black dark:bg-gray-400'></div>
<div className='absolute bottom-100 right-0 w-20 h-1 bg-black dark:bg-gray-400'></div>
<div className='absolute bottom-0 left-0 w-1 h-20 bg-black dark:bg-gray-400'></div>
Expand All @@ -137,7 +137,7 @@ const AmbassadorCard = ({ ambassador }: { ambassador: Ambassador }) => {
onError={() => setImgSrc(`/img/ambassadors/${name}.jpg`)}
/>

<div className='p-6'>
<div className='flex flex-col flex-grow p-6'>
<h3 className='text-xl font-semibold mb-2 text-gray-900 dark:text-white'>
{name}
</h3>
Expand All @@ -157,8 +157,8 @@ const AmbassadorCard = ({ ambassador }: { ambassador: Ambassador }) => {
</p>
)}

<div className='flex justify-center mb-4'>
{SocialIconss.map((platform) => {
<div className='flex justify-center mb-4 mt-auto'>
{SocialIcons.map((platform) => {
const username = ambassador[platform];
return username ? (
<a
Expand Down
10 changes: 8 additions & 2 deletions components/Card.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import Link from 'next/link';
import TextTruncate from 'react-text-truncate';
import Image from 'next/image';
export interface CardProps {
title: string;
body: string;
Expand Down Expand Up @@ -36,8 +37,11 @@ const CardBody = ({
<div className='group relative h-full w-full rounded-lg border border-gray-200 bg-white p-6 px-12 shadow-3xl dark:shadow-2xl dark:shadow-slate-900 transition-colors ease-in-out hover:bg-slate-100 dark:bg-slate-800 hover:dark:bg-slate-900/30'>
<div className='flex justify-center '>
{image && (
<img
<Image
src={image}
alt={title}
width={384}
height={128}
className='h-32 p-2 object-contain'
data-test='card-image'
/>
Expand All @@ -46,9 +50,11 @@ const CardBody = ({
<div className='flex flex-row items-start mb-6'>
{icon && (
<span className='mr-6 flex h-14 w-14 flex-shrink-0 items-center justify-center rounded-lg border bg-blue-200 px-3 text-gray-900 dark:text-white'>
<img
<Image
src={icon}
alt={title}
width={56}
height={56}
className='h-full w-full'
data-test='card-icon'
/>
Expand Down
9 changes: 5 additions & 4 deletions components/DarkModeToggle.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { useTheme } from 'next-themes';
import { useEffect, useState } from 'react';
import React from 'react';
import Image from 'next/image';

function ListItem({
children,
Expand Down Expand Up @@ -52,7 +53,7 @@ export default function DarkModeToggle() {
className='dark-mode-toggle rounded-md dark:hover:bg-gray-700 p-1.5 hover:bg-gray-100 transition duration-150 '
data-test='dark-mode-toggle'
>
<img
<Image
src={activeThemeIcon}
alt='Dark Mode'
width={25}
Expand All @@ -77,7 +78,7 @@ export default function DarkModeToggle() {
onClick={() => setTheme('system')}
data-test='select-system-theme'
>
<img
<Image
src={'/icons/theme-switch.svg'}
alt='System theme'
width={18}
Expand All @@ -90,7 +91,7 @@ export default function DarkModeToggle() {
onClick={() => setTheme('light')}
data-test='select-light-theme'
>
<img
<Image
src={'/icons/sun.svg'}
alt='System theme'
width={18}
Expand All @@ -103,7 +104,7 @@ export default function DarkModeToggle() {
onClick={() => setTheme('dark')}
data-test='select-dark-theme'
>
<img
<Image
src={'/icons/moon.svg'}
alt='System theme'
width={18}
Expand Down
53 changes: 28 additions & 25 deletions components/DocTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,53 @@ import Link from 'next/link';
const DocTable = ({ frontmatter }: any) => {
return (
<>
<div className='max-w-full mx-auto overflow-auto'>
<table className='table-auto border-collapse w-full bg-slate-200 dark:bg-slate-900 text-slate-700 dark:text-slate-300'>
<div className='max-w-full mx-auto overflow-auto rounded-lg shadow-lg border-2 border-primary'>
<div className='h-14 bg-primary text-white flex items-center p-6 font-semibold text-xl'>
<h5>Specification Details</h5>
</div>
<table className='table-auto w-full bg-slate-200 dark:bg-slate-900 text-slate-700 dark:text-slate-300'>
<tbody>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Specification
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 border-b border-slate-300'>
<td className='p-4 text-start font-medium'>
<span className='font-semibold'>Specification</span>
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
<td className='p-4'>
<Link
href={frontmatter.Specification}
className='text-linkBlue'
className='text-linkBlue hover:underline'
target='_blank'
>
{' '}
{frontmatter.Specification}
</Link>
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Published
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
{frontmatter.Published}
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 border-b border-slate-300'>
<td className='p-4 text-start font-medium'>
<span className='font-semibold'>Published</span>
</td>
<td className='p-4'>{frontmatter.Published}</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 '>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Authors
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300 border-b border-slate-300'>
<td className='p-4 text-start font-medium'>
<span className='font-semibold'>Authors</span>
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2'>
{frontmatter.authors.map((author: string, index: number) => {
return <div key={index}>{author}</div>;
})}
<td className='p-4'>
{frontmatter.authors.map((author: string, index: number) => (
<span key={index}>
{author}
{index < frontmatter.authors.length - 1 ? ', ' : ''}
</span>
))}
</td>
</tr>
<tr className='dark:hover:bg-slate-950 hover:bg-slate-300'>
<td className='border border-slate-400 dark:border-slate-500 p-2 text-center font-semibold'>
Metaschema
<td className='p-4 text-start font-medium'>
<span className='font-semibold'>Metaschema</span>
</td>
<td className='border border-slate-400 dark:border-slate-500 p-2 '>
<td className='p-4'>
<Link
href={frontmatter.Metaschema}
className='text-linkBlue'
className='text-linkBlue hover:underline'
target='_blank'
>
{frontmatter.Metaschema}
Expand Down
70 changes: 44 additions & 26 deletions components/DocsHelp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,34 @@ import React, { FormEvent, useRef, useState } from 'react';
import extractPathWithoutFragment from '~/lib/extractPathWithoutFragment';

interface DocsHelpProps {
markdownFile?: string;
fileRenderType?: '_indexmd' | 'indexmd' | 'tsx' | '_md' | string;
showEditOption?: boolean;
}

export function DocsHelp({ markdownFile }: DocsHelpProps) {
export function DocsHelp({
fileRenderType,
showEditOption = true,
}: DocsHelpProps) {
const router = useRouter();
const path = encodeURIComponent(router.pathname);
const [isFormOpen, setIsFormOpen] = useState(false);
const [feedbackStatus, setFeedbackStatus] = useState('');
const [isSubmitting, setIsSubmitting] = useState(false);
const [error, setError] = useState('');
const feedbackFormRef = useRef<HTMLFormElement>(null);

let gitredirect = '';
if (
typeof fileRenderType === 'string' &&
fileRenderType.startsWith('https://')
) {
gitredirect = fileRenderType;
} else if (fileRenderType === 'tsx') {
gitredirect = `https://github.com/json-schema-org/website/blob/main/pages${extractPathWithoutFragment(router.asPath) + '/index.page.tsx'}`;
} else if (fileRenderType === '_indexmd') {
gitredirect = `https://github.com/json-schema-org/website/blob/main/pages${extractPathWithoutFragment(router.asPath) + '/_index.md'}`;
} else if (fileRenderType === 'indexmd') {
gitredirect = `https://github.com/json-schema-org/website/blob/main/pages${extractPathWithoutFragment(router.asPath) + '/index.md'}`;
} else {
gitredirect = `https://github.com/json-schema-org/website/blob/main/pages${extractPathWithoutFragment(router.asPath) + '.md'}`;
}
async function createFeedbackHandler(event: FormEvent) {
event.preventDefault();
const formData = new FormData(feedbackFormRef.current!);
Expand Down Expand Up @@ -296,28 +312,30 @@ export function DocsHelp({ markdownFile }: DocsHelpProps) {
type of contribution!
</p>
</div>
<div className='my-4 text-[14px]'>
<a
target='_blank'
rel='noreferrer'
className='px-[16px] py-[8px] cursor-pointer border-solid border-[#aaaaaa] border rounded-md hover:bg-gray-200 dark:hover:bg-gray-600'
href={`https://github.com/json-schema-org/website/blob/main/pages${markdownFile ? (markdownFile === '_indexPage' ? extractPathWithoutFragment(router.asPath) + '/_index.md' : extractPathWithoutFragment(router.asPath) + '.md') : `/${path}/index.page.tsx`}`}
data-test='edit-on-github-link'
>
<svg
className='inline-block select-none align-text-bottom mr-1'
aria-hidden='true'
role='img'
viewBox='0 0 16 16'
width='16'
height='16'
fill='currentColor'
{showEditOption && (
<div className='my-4 text-[14px]'>
<a
target='_blank'
rel='noreferrer'
className='px-[16px] py-[8px] cursor-pointer border-solid border-[#aaaaaa] border rounded-md hover:bg-gray-200 dark:hover:bg-gray-600'
href={gitredirect} // Ensure gitredirect is defined
data-test='edit-on-github-link'
>
<path d='M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z' />
</svg>
Edit this page on Github
</a>
</div>
<svg
className='inline-block select-none align-text-bottom mr-1'
aria-hidden='true'
role='img'
viewBox='0 0 16 16'
width='16'
height='16'
fill='currentColor'
>
<path d='M1.5 3.25a2.25 2.25 0 1 1 3 2.122v5.256a2.251 2.251 0 1 1-1.5 0V5.372A2.25 2.25 0 0 1 1.5 3.25Zm5.677-.177L9.573.677A.25.25 0 0 1 10 .854V2.5h1A2.5 2.5 0 0 1 13.5 5v5.628a2.251 2.251 0 1 1-1.5 0V5a1 1 0 0 0-1-1h-1v1.646a.25.25 0 0 1-.427.177L7.177 3.427a.25.25 0 0 1 0-.354ZM3.75 2.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm0 9.5a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Zm8.25.75a.75.75 0 1 0 1.5 0 .75.75 0 0 0-1.5 0Z' />
</svg>
Edit this page on Github
</a>
</div>
)}
<div className='my-2 text-[14px]'>
<a
target='_blank'
Expand Down
15 changes: 13 additions & 2 deletions components/GettingStarted.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { atomOneDark } from 'react-syntax-highlighter/dist/cjs/styles/hljs';
import Highlight from 'react-syntax-highlighter';
import JSZip from 'jszip';
import { saveAs } from 'file-saver';
import Image from 'next/image';

async function fetchData() {
const response = await fetch('/data/getting-started-examples.json');
Expand Down Expand Up @@ -237,9 +238,19 @@ const GettingStarted = () => {
<p>{details[0]}</p>

{details[1] ? (
<img src='/icons/green-tick.svg' alt='green tick' />
<Image
src='/icons/green-tick.svg'
alt='green tick'
width={24}
height={24}
/>
) : (
<img src='/icons/red-cross.svg' alt='red cross' />
<Image
src='/icons/red-cross.svg'
alt='red cross'
width={24}
height={24}
/>
)}
</div>
</div>
Expand Down
Loading
Loading