Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First commit #260

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions client/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import "./components/chatbot/chatbot.css"
import ActionProvider from "./components/chatbot/ActionProvider";
import config from "./components/chatbot/config";
import MessageParser from "./components/chatbot/MessageParser";
import {Notification } from './components/notification/notification';


// import ManagementHome from './pages/shift_management';

Expand Down
Empty file.
31 changes: 31 additions & 0 deletions client/src/components/notification/notification.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import React from 'react';
import './notification.css';

export const Notification = ({ show, close }) => {
return (

<div className="'modal-wrappers' w-4/5 max-w-screen-md mx-auto my-auto md:w-1/4"
style={{
opacity: show ? '1' : '0'
}}>
<div className="modal-header hover:-translate-y-0.5 transform transition bg-green-700 text-white p-2 mt-8 flex justify-between">
<p className="font-sans text-xl font-bold">Notifications</p>
<span onClick={close} className="close-modal-btn text-2xl cursor-pointer">x</span>
</div>
<div className="'modal-content' px-6 py-8 bg-gray-400">
<div className="pb-3 p-2 h-30 rounded-lg border border-green-400 bg-green-500 text-white divide-y-2 divide-solid divide-green-400 hover:bg-green-900 hover:-translate-y-0.5 transform transition">
<h2 className="font-bold text-xl pb-2">On Duty!</h2>
<p class="pt-2">This is to notify you about your shift resumption today.</p>
</div>
<div className="mt-6 pb-3 p-2 rounded-lg border border-red-400 bg-red-500 text-white divide-y-2 divide-solid divide-red-400 hover:bg-red-900 hover:-translate-y-0.5 transform transition">
<h2 className="font-bold text-xl pb-2">Off Duty!</h2>
<p class="pt-2">This is to notify you about your end shift resumption today.</p>

</div>
<div className="'modal-footer' mt-6 text-center flex justify-end">
<button onClick={close} className="btn-cancel px-5 py-1 rounded-lg shadow-lg bg-red-400 hover:bg-red-800 hover:-translate-y-0.5 transform transition focus:outline-none focus:ring focus:ring-offset-2 focus:ring-red-400 text-white">Close</button>
</div>
</div>
</div>
)
}
Binary file added images/Thumbs.db
Binary file not shown.