Skip to content

Commit

Permalink
feat: jeston page fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lisha committed Sep 20, 2024
1 parent 1631bf9 commit 7a9a2fe
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 7 deletions.
1 change: 1 addition & 0 deletions docs/Edge/NVIDIA_Jetson/RecomputerPage.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
description: NVIDIA® Jetson™ Powered Edge Devices
title: NVIDIA® Jetson™ Powered Edge AI Devices Guide
hide_table_of_contents: true
keywords:
- Edge
- reComputer
Expand Down
96 changes: 95 additions & 1 deletion src/components/jeston/config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,98 @@
export const hadwareList = [
export const listData = [
{
id: 1,
name: 'reComputer',
img: '17.png',
brands: [
{
name: 'reComputer J10 SerieseComputer J10 Series',
img: '17.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '18.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '17.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '18.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '17.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '18.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '17.png',
href: 'https://www.seeedstudio.com/',
},
{
name: 'reComputer J10 Series',
img: '18.png',
href: 'https://www.seeedstudio.com/',
},
],
},
{
id: 3,
name: 'Mini AI PC',
img: '17.png',
brands: [
{
name: 'reComputer J10 Series',
img: '18.png',
},
{
name: 'reComputer J10 Series',
img: '17.png',
},
],
},
{
id: 3,
name: 'Mini AI PC',
img: '17.png',
brands: [
{
name: 'reComputer J10 Series',
img: '17.png',
},
{
name: 'reComputer J10 Series',
img: '18.png',
},
],
},
{
id: 3,
name: 'Mini AI PC',
img: '17.png',
brands: [
{
name: 'reComputer J10 Series',
img: '17.png',
},
{
name: 'reComputer J10 Series',
img: '17.png',
},
],
},
]
export const listData1 = [
{
id: 1,
name: 'reComputer',
Expand Down
12 changes: 7 additions & 5 deletions src/components/jeston/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from 'react';
import clsx from 'clsx'
import styles from './index.module.scss'
import { hadwareList, communityList } from './config'
import { listData,listData1, communityList } from './config'
import {
useThemeConfig,
useColorMode,
Expand Down Expand Up @@ -72,7 +72,7 @@ const usageRender = (obj) => {
</div>
<div className={clsx(styles.com_wrapper, styles.flex, styles.section_wrapper)}>
<div className={styles.left_container}>
{hadwareList.map((item,index) => {
{obj.list.map((item,index) => {
return (
<div className={clsx( styles.flex, styles.tab,activeIndex==index&&styles.active)} onClick={()=>{
setActiveIndex(index)
Expand All @@ -86,7 +86,7 @@ const usageRender = (obj) => {
<div className={styles.right_container}>
<div className={styles.right_wrapper}>

{hadwareList[activeIndex].brands.map((item) => {
{obj.list[activeIndex].brands.map((item) => {
return (
<div className={clsx( styles.prod_item,styles.cursor)} onClick={()=>toUrl(item.URL)}>
<img src={require(`../../../assets/recomputer/${item.img}`).default} alt="" />
Expand All @@ -113,14 +113,16 @@ const computerPageA = () => {
title: 'Jetpack Flash and Hardware Usage',
desc: `
Most of our reComputer Jetson products come with NVIDIA JetPack system pre-installed on the device. However, if you want to flash these devices again or flash other devices which do not come with JetPack system, you can follow the below links for step-by-step guidance. We have also included guidance on how to use different hardware peripherals on these NVIDIA Jetson powered devices.
`
`,
list:listData
})}
{usageRender({
class:styles.gray,
title: 'Jetpack Flash and Hardware Usage',
desc: `
Most of our reComputer Jetson products come with NVIDIA JetPack system pre-installed on the device. However, if you want to flash these devices again or flash other devices which do not come with JetPack system, you can follow the below links for step-by-step guidance. We have also included guidance on how to use different hardware peripherals on these NVIDIA Jetson powered devices.
`
`,
list:listData1
})}
{communityRender()}

Expand Down
2 changes: 1 addition & 1 deletion src/theme/DocItem/Layout/styles.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

@media (min-width: 997px) {
.docItemCol {
/* max-width: 75% !important; */
max-width: 75% !important;
}
}

0 comments on commit 7a9a2fe

Please sign in to comment.