Skip to content

Commit

Permalink
UI Improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankjaviya committed Nov 18, 2023
1 parent 9da9485 commit b3834d7
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 26 deletions.
21 changes: 21 additions & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
::-webkit-scrollbar {
width: 0px;
}

.navbar, .task-card{
background-color: #bcc0c3;
}

.text-success , .navbar-success ,body{
color: #237373 !important;
font-weight: 500;
}

.navbar-brand{
color: #237373 !important;
font-weight: bolder;
}

.main-container{
background-color: #b5c9d842;
}
Binary file added resources/images/Screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions resources/js/Layouts/Layout.jsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import React from "react";
import Navbar from "./Navbar";
import "../../css/app.css";

export default function Layout({children}) {
return (
<div className="">
<Navbar/>
<div className="main-content mt-5">{children}</div>
<div className="main-container">
<Navbar />
<div className="main-content mt-5">{children}</div>
</div>
)
);
}
2 changes: 1 addition & 1 deletion resources/js/Layouts/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from "react";
export default function Navbar() {

return (
<nav className="navbar navbar-expand-lg navbar-light bg-light sticky-top">
<nav className="navbar navbar-expand-lg navbar-light sticky-top">
<div className="container-fluid">
<a className="navbar-brand fs-3" href="/todo">
Inertia Reactive PMS
Expand Down
2 changes: 1 addition & 1 deletion resources/js/Pages/Todo/Theme1/Sections/Sections.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function Sections(props) {

return (
<div
className="my-2 shadow shadow-md py-3"
className="my-2 shadow shadow-md py-3 task-card"
onDrop={(event) => onDrop(event, section)}
onDragOver={(event) => onDragOver(event)}
>
Expand Down
1 change: 1 addition & 0 deletions resources/js/Pages/Todo/Theme1/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ export default function Task(props) {
style={
task.type && {
backgroundColor: task.type.color,
color: "#fff",
}
}
className="btn dropdown-toggle py-0"
Expand Down
14 changes: 1 addition & 13 deletions resources/js/Pages/Todo/Theme2/Task.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,12 @@ import {
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import React, { useState } from "react";
import { AllSection } from "../../Keys";
import { Link, router, usePage } from "@inertiajs/react";
import { faCircleCheck } from "@fortawesome/free-regular-svg-icons";

export default function Task(props) {
const { types } = usePage().props;
const { task, draggedTaskId } = props;
const changeStatus = (id, section) => {
router.put(
`/todo/${id}`,
{
section: section,
},
{
preserveScroll: true,
only: ["tasks"],
}
);
};

const [showCheck, setShowCheck] = useState({ id: null, show: false });

Expand Down Expand Up @@ -93,6 +80,7 @@ export default function Task(props) {
style={
task.type && {
backgroundColor: task.type.color,
color: "#fff",
}
}
className="btn dropdown-toggle py-0"
Expand Down
8 changes: 4 additions & 4 deletions resources/js/Pages/Todo/Theme2/Theme2.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function Theme2(props) {
} = props;
return (
<div className="row">
<div className="w-25 px-1 ">
<div className="col-sm-3 px-1 ">
<Sections
tasks={tasks}
setDraggedTaskId={setDraggedTaskId}
Expand All @@ -23,7 +23,7 @@ export default function Theme2(props) {
onDrop={onDrop}
/>
</div>
<div className="w-25 px-1">
<div className="col-sm-3 px-1">
<Sections
tasks={tasks}
setDraggedTaskId={setDraggedTaskId}
Expand All @@ -33,7 +33,7 @@ export default function Theme2(props) {
onDrop={onDrop}
/>
</div>
<div className="w-25 px-1">
<div className="col-sm-3 px-1">
<Sections
tasks={tasks}
setDraggedTaskId={setDraggedTaskId}
Expand All @@ -45,7 +45,7 @@ export default function Theme2(props) {
</div>

{/* Completed Task */}
<div className="w-25 px-1">
<div className="col-sm-3 px-1">
<Completed completedTasks={completedTasks} />
</div>
</div>
Expand Down
3 changes: 0 additions & 3 deletions resources/views/app.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
body{
font-family: 'Dosis', sans-serif;
}
h1,h2,h3,h4,h5,h6{
font-family: 'Young Serif', serif;
}
</style>
</head>
<body>
Expand Down

0 comments on commit b3834d7

Please sign in to comment.