Skip to content

Commit

Permalink
Task #216354 - UI for Direct connection
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekta29yadav committed Mar 27, 2024
1 parent 6c7382e commit 95f3e59
Show file tree
Hide file tree
Showing 14 changed files with 1,141 additions and 9 deletions.
4 changes: 2 additions & 2 deletions module-template/src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body {
/* body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
Expand All @@ -10,4 +10,4 @@ body {
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
} */
2 changes: 1 addition & 1 deletion module-template/src/stories/button.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.storybook-button {
font-family: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
/* font-family: "Nunito Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; */
font-weight: 700;
border: 0;
border-radius: 3em;
Expand Down
2 changes: 1 addition & 1 deletion packages/nulp_elite/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
-->
<title>Shiksha</title>
</head>
<body style="background-color: rgb(248, 248, 249)">
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!--
Expand Down
5 changes: 4 additions & 1 deletion packages/nulp_elite/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
height: 40vmin;
pointer-events: none;
}

.PrivateTabIndicator-colorSecondary-5 {
background-color:' #004367' !important;
padding:'10px'
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
Expand Down
4 changes: 2 additions & 2 deletions packages/nulp_elite/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ function App() {
},
{
moduleName: "nulp_elite",
path: "/AddConnections",
path: "/connections/addConnections",
component: AddConnections,
},
{
moduleName: "nulp_elite",
path: "/MyConnections",
path: "/connections/myConnections",
component: MyConnections,
},
{
Expand Down
Binary file added packages/nulp_elite/src/assets/card-bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions packages/nulp_elite/src/components/Card.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import React from "react";
import Card from '@mui/material/Card';
import CardActions from '@mui/material/CardActions';
import CardContent from '@mui/material/CardContent';
import CardMedia from '@mui/material/CardMedia';
import Button from '@mui/material/Button';
import Typography from '@mui/material/Typography';
import { Opacity } from "@mui/icons-material";


export default function BoxCard({ }) {

return (
<Card sx={{ maxWidth: 345, position:'relative' }}>
<CardMedia
sx={{ height: 140,position: 'relative', opacity: 0.6 }}
image={require("../assets/card-bg.png")}
title="green iguana"
/>
<CardContent>
<Typography gutterBottom variant="h5" component="div" style={{position:'absolute',color:'#fff',fontWeight:'500',fontSize:'16px', top:'30px'}}>
Enable GIS monitoring for SWM
</Typography>
<Typography gutterBottom variant="h7" component="div" style={{position:'absolute',top:'50px',right:'10px'}}>
Courses
</Typography>
<Typography variant="body2" color="text.secondary">
Engineering Staff College India
</Typography>
</CardContent>
<CardActions>
<Button size="small">SWM</Button>
<Button size="small">Sanitation</Button>
</CardActions>
</Card>
);
}
13 changes: 13 additions & 0 deletions packages/nulp_elite/src/components/search.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import React from "react";
import { Button } from '@mui/base/Button';


export default function Search({ }) {

return (
<div style={{ display: 'flex', alignItems: 'center', marginBottom: '1rem' }}>
<input type="text" placeholder="Search..." style={{ flex: 1, marginRight: '0.5rem', padding: '0.5rem', borderRadius: '4px', border: '1px solid #CACACA' }} />
<Button style={{ padding:'11px 16px 11px 16px', borderRadius: '4px', backgroundColor: '#004367', color: 'white', border: '1px', cursor: 'pointer' ,fontSize:'12px'}}>Search</Button>
</div>
);
}
8 changes: 6 additions & 2 deletions packages/nulp_elite/src/index.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
body {
/* body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
"Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue",
Expand All @@ -10,4 +10,8 @@ body {
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New",
monospace;
}
} */

.css-132u4s-MuiFormControl-root-MuiTextField-root{
width:'100%',
}
Loading

0 comments on commit 95f3e59

Please sign in to comment.