Skip to content

Commit

Permalink
Merge pull request #12 from AI4Bharat/homepage
Browse files Browse the repository at this point in the history
homepage
  • Loading branch information
ishvindersethi22 authored Dec 12, 2023
2 parents 19b426b + 2b8127c commit 9f87ebe
Show file tree
Hide file tree
Showing 10 changed files with 920 additions and 14 deletions.
691 changes: 686 additions & 5 deletions package-lock.json

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,13 @@
"react-dom": "^18"
},
"devDependencies": {
"autoprefixer": "^10.4.16",
"eslint": "^8",
"eslint-config-next": "14.0.3",
"eslint-config-prettier": "^9.0.0",
"gh-pages": "^6.1.0",
"prettier": "3.1.0"
"postcss": "^8.4.32",
"prettier": "3.1.0",
"tailwindcss": "^3.3.6"
}
}
}
6 changes: 6 additions & 0 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
3 changes: 3 additions & 0 deletions src/app/home/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
122 changes: 122 additions & 0 deletions src/app/home/page.js

Large diffs are not rendered by default.

15 changes: 8 additions & 7 deletions src/app/organizations/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import { Button, Grid, Typography, Card, Tab, Tabs, Box } from "@mui/material"
import { useState } from 'react'
import DatasetStyle from "@/styles/Dataset";
import MUIDataTable from "mui-datatables";
import CustomButton from "../components/common/Button";
import Link from "next/link";

function TabPanel(props) {
const { children, value, index, ...other } = props;
Expand Down Expand Up @@ -139,13 +141,12 @@ export default function Organization() {
return manager.username
}).join(", "),
el.created_by && el.created_by.username,
<div key={i}>view</div>
// <Link to={`/workspaces/${el.id}`} style={{ textDecoration: "none" }}>
// <CustomButton
// sx={{ borderRadius: 2 }}
// label="View"
// />
// </Link>
<Link key={i} href={`/workspaces/${el.id}`} style={{ textDecoration: "none" }}>
<CustomButton
sx={{ borderRadius: 2 }}
label="View"
/>
</Link>
]
}) : [];

Expand Down
1 change: 1 addition & 0 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export default function Home() {
return (
<main>
<h1>Anudesh</h1>
<h3><Link href="/home">Home</Link></h3>
<h3><Link href="/organizations">Organization</Link></h3>
<h3><Link href="/login">Login</Link></h3>
<h3><Link href="/invite">Sign-Up</Link></h3>
Expand Down
74 changes: 74 additions & 0 deletions src/assets/image1.js

Large diffs are not rendered by default.

Binary file added src/assets/logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
'./src/app/home/page.js',
],
theme: {
extend: {
colors: {
"orange-dark": "#ee6633",
"orange-light": "#edc9bc"
}
},
},
plugins: [],
}

0 comments on commit 9f87ebe

Please sign in to comment.