Skip to content

Commit

Permalink
chore: add IOT (#1366)
Browse files Browse the repository at this point in the history
  • Loading branch information
k-deepak04 authored Jul 27, 2023
1 parent 488aefb commit 5404949
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 4 deletions.
4 changes: 1 addition & 3 deletions components/Searchbar/Searchbar.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import React, { useState, useRef } from 'react'
import SearchIcon from 'assets/icons/SearchIcon'
import { useRouter } from 'next/router'
// import type { ISidebar, SubCategories, subcategoryArray } from '../../types'
import { subcategoryArray } from '../../types'

interface SearchbarProps {
setSearch: (search: string) => void
}



export const Searchbar: React.FC<SearchbarProps> = ({ setSearch }) => {
const router = useRouter()
const query = router.query.query
Expand Down
9 changes: 9 additions & 0 deletions database/IOT/coursera.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[
{
"name": "An Introduction to Programming the Internet of Things (IoT) Specialization",
"description": "Design, create, and deploy a fun IoT device using Arduino and Raspberry Pi platforms. This course covers embedded systems, the Raspberry Pi Platform, and the Arduino environment for building devices that can control the physical world. In the final Capstone Project, you’ll apply the skills you learned by designing, building, and testing a microcontroller-based embedded system, producing a unique final project suitable for showcasing to future employers.",
"url": "https://www.coursera.org/specializations/iot",
"category": "internet of things",
"subcategory": "coursera"
}
]
10 changes: 9 additions & 1 deletion database/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,17 @@ export const sidebarData: ISidebar[] = [
{
category: 'artificial intelligence',
subcategory: [
{ name: 'Artificial Int.', url: '/artificial-intelligence', resources: DB.artificialIntelligence },
{
name: 'Artificial Int.',
url: '/artificial-intelligence',
resources: DB.artificialIntelligence,
},
],
},
{
category: 'internet of things',
subcategory: [{ name: 'coursera', url: '/coursera', resources: DB.coursera }],
},
{
category: 'resources',
subcategory: [
Expand Down
2 changes: 2 additions & 0 deletions database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export { default as cpp } from './languages/cpp.json'
export {default as dart} from './languages/dart.json'
//artificial intelligence
export { default as artificialIntelligence } from './artificial_intelligence/artificial-intelligence.json'
//internet of things
export { default as coursera } from './IOT/coursera.json'
//machine learning
export { default as ml } from './machine_learning/machine-learning.json'
export { default as dataScience } from './machine_learning/data-science.json'
Expand Down
6 changes: 6 additions & 0 deletions types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export type Category =
| 'backend'
| 'languages'
| 'artificial intelligence'
| 'internet of things'
| 'machine learning'
| 'open source'
| 'resources'
Expand Down Expand Up @@ -175,6 +176,11 @@ export const subcategoryArray = [
'typescript',
//artificial intelligence
'artificial-intelligence',
//Internet of Things
'coursera',
'Esp-32',
'Sensors',
'Raspberry pi',
// machin learning
'data-science',
'deep-learning',
Expand Down

1 comment on commit 5404949

@vercel
Copy link

@vercel vercel bot commented on 5404949 Jul 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.