-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Pushkar Mishra <pushkarmishra029@gmail.com>
- Loading branch information
1 parent
f2a877e
commit 9f44f5b
Showing
11 changed files
with
1,180 additions
and
350 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: 'export', | ||
images: { unoptimized: true }, | ||
} | ||
|
||
export default nextConfig; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import React from 'react'; | ||
import AppBar from '@mui/material/AppBar'; | ||
import Box from '@mui/material/Box'; | ||
import Toolbar from '@mui/material/Toolbar'; | ||
import Typography from '@mui/material/Typography'; | ||
import IconButton from '@mui/material/IconButton'; | ||
import MenuIcon from '@mui/icons-material/Menu'; | ||
|
||
const Navbar = () => { | ||
return ( | ||
<Box sx={{ flexGrow: 1 }}> | ||
<AppBar position="static"> | ||
<Toolbar> | ||
<Typography variant="h6" noWrap component="div"> | ||
Root folder >name> seleted | ||
</Typography> | ||
<Box sx={{ display: 'flex', justifyContent: 'flex-end' }}> | ||
{/* Add your icons here */} | ||
<IconButton color="inherit"> | ||
{/* Your Icon 1 */} | ||
</IconButton> | ||
<IconButton color="inherit"> | ||
{/* Your Icon 2 */} | ||
</IconButton> | ||
<IconButton color="inherit"> | ||
{/* Your Icon 3 */} | ||
</IconButton> | ||
<IconButton color="inherit"> | ||
{/* Your Icon 4 */} | ||
</IconButton> | ||
</Box> | ||
</Toolbar> | ||
</AppBar> | ||
</Box> | ||
); | ||
}; | ||
|
||
export default Navbar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
'use client' | ||
import { Box, Typography } from '@mui/material'; | ||
import ExploreIcon from '@mui/icons-material/Explore'; | ||
import FolderIcon from '@mui/icons-material/Folder'; | ||
import SettingsIcon from '@mui/icons-material/Settings'; | ||
import { useState} from 'react'; | ||
|
||
export default function Sidebar() { | ||
const [openNav, setOpenNav] = useState(false); | ||
return ( | ||
<Box sx={{ | ||
width: "auto", | ||
backgroundColor: "#5900f5", | ||
}}> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: '5px 0px 5px 0px', | ||
margin: '10px 10px', | ||
}}> | ||
<ExploreIcon fontSize="medium" sx={{ | ||
margin: '5px', | ||
}} /> | ||
{openNav && | ||
<Typography | ||
sx={{ | ||
padding: '0px 7px' | ||
}} | ||
>Navigate data</Typography> | ||
} | ||
</Box> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: '5px 0px 5px 0px', | ||
margin: '10px 10px', | ||
}}> | ||
<FolderIcon fontSize="medium" sx={{ | ||
margin: '5px', | ||
}} /> | ||
{openNav && | ||
<Typography | ||
sx={{ | ||
padding: '0px 7px' | ||
}} | ||
>Manage folders</Typography> | ||
} | ||
</Box> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
padding: '5px 0px 5px 0px', | ||
margin: '10px 10px', | ||
}}> | ||
<SettingsIcon fontSize="medium" sx={{ | ||
margin: '5px', | ||
}} /> | ||
{openNav && | ||
<Typography | ||
sx={{ | ||
padding: '0px 7px' | ||
}} | ||
>Settings</Typography> | ||
} | ||
</Box> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { Grid, Box, Typography } from '@mui/material'; | ||
import dummyData from "./../mock_data.json"; | ||
|
||
function shortLabel(label:string) { | ||
if(label.length < 17) return label; | ||
const labelpo = label.substring(0, 7); | ||
const labelpl = label.substring(label.length - 7, label.length); | ||
return labelpo + "..." + labelpl; | ||
} | ||
|
||
interface ExplorerProps { | ||
no_of_boxes: number; | ||
} | ||
|
||
export default function Explorer({no_of_boxes}: ExplorerProps) { | ||
const mdN = 12/no_of_boxes; | ||
console.log(mdN); | ||
return ( | ||
<Box sx={{ | ||
backgroundColor: "white", | ||
width: "75%", | ||
overflowY: "scroll", | ||
}}> | ||
<Grid container spacing={2} sx={{ | ||
padding: '15px', | ||
}}> | ||
{dummyData.map((item, index) => ( | ||
<Grid item xs={12} md={mdN} key={index}> | ||
<Box sx={{ | ||
width: "100%", | ||
display: 'flex', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
height: '120px', | ||
border: '1px solid black', | ||
pt: '7px', | ||
justifyContent: 'space-between', | ||
}}> | ||
<img src={item.imageUrl} alt={shortLabel(item.title)} width="auto" height="85px"></img> | ||
<Typography fontSize="15px" color="black" align="center" margin="3px">{shortLabel(item.title)}</Typography> | ||
</Box> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Box> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
[ | ||
{ "tag": "Goldenrod" }, | ||
{ "tag": "Turquoise" }, | ||
{ "tag": "Indigo" }, | ||
{ "tag": "Aquamarine" }, | ||
{ "tag": "Blue" }, | ||
{ "tag": "Green" }, | ||
{ "tag": "Purple" }, | ||
{ "tag": "Turquoise" }, | ||
{ "tag": "Teal" }, | ||
{ "tag": "Maroon" }, | ||
{ "tag": "Khaki" }, | ||
{ "tag": "Crimson" }, | ||
{ "tag": "Red" }, | ||
{ "tag": "Maroon" }, | ||
{ "tag": "Pink" }, | ||
{ "tag": "Goldenrod" }, | ||
{ "tag": "Yellow" }, | ||
{ "tag": "Goldenrod" }, | ||
{ "tag": "Mauv" }, | ||
{ "tag": "Turquoise" }, | ||
{ "tag": "Crimson" }, | ||
{ "tag": "Goldenrod" }, | ||
{ "tag": "Maroon" }, | ||
{ "tag": "Indigo" }, | ||
{ "tag": "Turquoise" }, | ||
{ "tag": "Green" }, | ||
{ "tag": "Aquamarine" }, | ||
{ "tag": "Puce" }, | ||
{ "tag": "Pink" }, | ||
{ "tag": "Crimson" } | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
import {Grid, Box, Typography } from '@mui/material'; | ||
import SortIcon from '@mui/icons-material/Sort'; | ||
import FormControlLabel from '@mui/material/FormControlLabel'; | ||
import Switch from '@mui/material/Switch'; | ||
import dummyData from "./mock_tags.json"; | ||
|
||
interface TaggerProps { | ||
no_of_boxes: number; | ||
} | ||
|
||
export default function Tagger({no_of_boxes}: TaggerProps) { | ||
const mdN = 12/no_of_boxes; | ||
return ( | ||
<Box sx={{ | ||
backgroundColor: "grey", | ||
width: "25%", | ||
overflowY:"scroll", | ||
}}> | ||
<Box sx={{ | ||
margin: '10px 10px', | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
}}> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
}}> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
}}> | ||
<Typography variant="h6">Sort</Typography> | ||
<FormControlLabel | ||
sx={{ | ||
display: 'block', | ||
}} | ||
control={ | ||
<Switch | ||
// checked={} | ||
// onChange={} | ||
name="loading" | ||
color="primary" | ||
/> | ||
} | ||
label="" | ||
/> | ||
</Box> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
}}> | ||
<Typography variant="h6">Kinds</Typography> | ||
<FormControlLabel | ||
// sx={{ | ||
// display: 'block', | ||
// }} | ||
control={ | ||
<Switch | ||
// checked={} | ||
// onChange={} | ||
name="loading" | ||
color="primary" | ||
/> | ||
} | ||
label="" | ||
/> | ||
</Box> | ||
</Box> | ||
<Box sx={{ | ||
display: 'flex', | ||
alignItems: 'center', | ||
}}> | ||
<SortIcon fontSize="medium" /> | ||
<Typography variant="h6">X</Typography> | ||
</Box> | ||
</Box> | ||
{/* <Typography variant="h1">Hello</Typography> */} | ||
<Box sx={{ | ||
display: 'flex', | ||
flexWrap: 'wrap', | ||
alignItems: 'center', | ||
margin: '10px 10px', | ||
}}> | ||
<Grid container spacing={1}> | ||
{/* map here */} | ||
{dummyData.map((item, index) => ( | ||
<Grid item xs={12} md={mdN} key={index}> | ||
<Box sx={{ | ||
// width: "100%", | ||
// display: 'flex', | ||
// alignItems: 'center', | ||
// flexDirection: 'column', | ||
// height: '15vh', | ||
// border: '1px solid black', | ||
// pt: '7px', | ||
// justifyContent: 'space-between', | ||
backgroundColor: "blue", | ||
// padding: "6px 9px", | ||
borderRadius: "20px", | ||
// mr: "6px", | ||
}}> | ||
<Typography fontSize="15px" color="white" align="center" margin="3px">{item.tag}</Typography> | ||
</Box> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Box> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.