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

Updates to UI design #54

Merged
merged 23 commits into from
Mar 21, 2024
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
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
13,308 changes: 13,308 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@
"mongodb": "^6.1.0",
"next": "13.4.17",
"next-auth": "^4.23.1",
"next-nprogress-bar": "^2.3.4",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^5.0.1",
"realm": "^12.1.0",
"styled-components": "^6.1.8",
"typescript": "5.1.6",
Expand Down
81 changes: 81 additions & 0 deletions public/alternate-logo-icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
85 changes: 85 additions & 0 deletions public/alternate-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
66 changes: 66 additions & 0 deletions public/landing-page-feature-image-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 25 additions & 25 deletions src/app/custom.css
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
.logo {
margin-top: -20px !important;
}
.admin-logo {
/* .admin-logo {
height: 100px;
background-color: #264463 !important;
}
} */

.landing-page-container {
background-color: #faf8f4 !important;
/* background-color: #faf8f4 !important; */
background-image: url('https://img.freepik.com/free-vector/handdrawn-style-line-doodle-pattern_1409-3949.jpg?t=st=1708706966~exp=1708710566~hmac=20506a50dab787eeb4d62c1e106d3995e7e0367db13f7d86fcd31ce2045dabbe&w=1800');
background-position: center;
}

.nav-bar {
/* .nav-bar {
background-color: #031525 !important;
color: white;
}
} */

.landing-page-main-card-container {
margin-top: 120px;
Expand Down Expand Up @@ -55,9 +55,9 @@
margin: 0 auto;
}

.active-menu-item {
/* .active-menu-item {
background-color: white;
}
} */

.table-action-item {
margin: 10px;
Expand All @@ -67,7 +67,7 @@
margin: 20px 0 20px 0 !important;
width: 99%;
}

/*
.ant-table-thead > tr > th {
background-color: #031525 !important;
color: white !important;
Expand All @@ -88,27 +88,27 @@
.ant-table-row.ant-table-row-selected
> .ant-table-cell {
background: #1b68b5;
}
} */

.ant-table-tbody > tr:nth-child(2n) {
/* .ant-table-tbody > tr:nth-child(2n) {
background-color: #031525 !important;
color: white !important;
}
} */

.table-action-buttons {
/*.table-action-buttons {
margin: 0 10px 10px 0;
background-color: #264463 !important;
color: white;
}
}*/

.admin-table {
/* .admin-table {
margin: 0 10px 10px 0;
}
} */

.admin-menu {
/* .admin-menu {
background-color: #264463 !important;
padding: 10px;
}
} */

.sidebar-menu-item {
color: white !important;
Expand All @@ -120,24 +120,24 @@
background-color: gray !important;
}

.navbar-menu-item {
/* .navbar-menu-item {
color: white !important;
font-size: 15px;
margin: 10px;
}

} */
/*
.admin-breadcrumbs {
margin: 10px;
color: white !important;
}
} */

.admin-active-breadcrumb-item {
color: gray !important;
}

/*
.admin-breadcrumb-item {
color: white !important;
}
} */

.form-card {
background-color: #031525 !important;
Expand Down Expand Up @@ -191,13 +191,13 @@
opacity: 0;
}

.admin-content-page {
/* .admin-content-page {
background-color: #264463;
}

.admin-page-title {
color: white !important;
}
} */

.library-container {
background-color: #264463;
Expand Down
Binary file modified src/app/favicon.ico
Binary file not shown.
38 changes: 22 additions & 16 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
"use client";
'use client';

import { SessionProvider } from "next-auth/react";
import { Inter } from "next/font/google";
import "./custom.css";
import "./globals.css";
import "utils/intl";
import {ConfirmDialog} from "@components/modals";
import { Session } from "next-auth";
import { ReactNode } from "react";
import { SessionProvider } from 'next-auth/react';
import { Inter } from 'next/font/google';
import './custom.css';
import './globals.css';
import 'utils/intl';
import { Session } from 'next-auth';
import { ReactNode } from 'react';
import { Flowbite, ThemeModeScript } from 'flowbite-react';
import { AppProgressBar as ProgressBar } from 'next-nprogress-bar';

const inter = Inter({ subsets: ["latin"] });
const inter = Inter({ subsets: ['latin'] });

interface RootLayoutProps {
children: ReactNode;
Expand All @@ -21,14 +22,19 @@ interface RootLayoutProps {
const RootLayout = ({ children, pageProps }: RootLayoutProps) => {
return (
<html lang="en">
<body className={inter.className}>
<SessionProvider session={pageProps?.session}>
<ConfirmDialog />
{children}
</SessionProvider>
<head>
<ThemeModeScript />
</head>
<body className={`${inter.className} dark:bg-gray-800 dark:text-white`}>
<Flowbite>
<SessionProvider session={pageProps?.session}>
{children}
<ProgressBar color="#3584e4" height="4px" options={{ showSpinner: false }} />
</SessionProvider>
</Flowbite>
</body>
</html>
);
};

export default RootLayout;
export default RootLayout;
7 changes: 3 additions & 4 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
"use client";
'use client';

import WelcomePage from "@components/welcomePage";
import React from "react";
import WelcomePage from '@components/welcomePage';
import React from 'react';

const Home: React.FC = (props) => {

return <WelcomePage />;
};

Expand Down
Loading