add poppins

This commit is contained in:
nochill 2023-08-18 08:15:18 +07:00
parent 07c4421987
commit 0958cca574
6 changed files with 14 additions and 11 deletions

View File

@ -78,7 +78,9 @@ const DataTable = ({ columns, data, tabFilterData }) => {
{headerGroups.map((headerGroup) => (
<tr style={{ padding: 10 }} {...headerGroup.getHeaderGroupProps()}>
{headerGroup.headers.map((column) => (
<th className="p-2" style={{ color: 'white', textAlign: 'left' }} {...column.getHeaderProps()}>{column.render("Header")}</th>
<>
<th className="p-2" style={{ color: 'white', textAlign: 'left', width: column.Header == "No" ? '5%' : 0}} {...column.getHeaderProps()}>{column.render("Header")}</th>
</>
))}
<th style={{ color: 'white', textAlign: 'left', width: '5%' }}>Action</th>
</tr>

View File

@ -67,9 +67,9 @@ const Sidebar = ({ sidebarOpen, setSidebarOpen }) => {
>
{/* <!-- SIDEBAR HEADER --> */}
<div className="flex items-center justify-between gap-2 px-6 py-5.5 lg:py-6.5">
{/* <NavLink to="/">
<img src={Logo} alt="Logo" />
</NavLink> */}
<NavLink to="/dashboard">
<img src='https://pbs.twimg.com/profile_images/968321221912813568/ErvVO4Is_400x400.jpg' alt="Logo" className='w-32 h-32'/>
</NavLink>
<button
ref={trigger}

View File

@ -1,3 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
@tailwind base;
@tailwind components;
@tailwind utilities;
@ -7,3 +8,7 @@
@apply bg-whiten relative z-1;
}
}
:root {
font-family: 'Poppins', 'sans-serif';
}

View File

@ -48,8 +48,7 @@ const Login = () => {
}
useEffect(() => {
if(!auth == {}) {
console.log("BRUHH", auth);
if(auth != {}) {
navigate("/dashboard")
}
})

View File

@ -18,9 +18,9 @@ const News = () => {
const columns = useMemo(
() => [
{
Header: () => <span>No</span>,
Header: "No",
id: 'rowNumber',
width: 30,
width: 10,
},
{
Header: "Type",

View File

@ -5,9 +5,6 @@ module.exports = {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
darkMode: 'class',
theme: {
fontFamily: {
satoshi: ['Satoshi', 'sans-serif'],
},
colors: {
current: 'currentColor',
transparent: 'transparent',