initial commit - code moved to separate repo

This commit is contained in:
Dobromir Popov
2024-02-22 04:19:38 +02:00
commit 560d503219
240 changed files with 105125 additions and 0 deletions

9
styles/calendar.scss Normal file
View File

@ -0,0 +1,9 @@
// <td style="overflow-block: ;"><ul>
// <li>String: <code>"Sample"</code>
// </li>
// <li>React element: <code>&lt;TileContent /&gt;</code>
// </li>
// <li>Function: <code>({ activeStartDate, date, view }) =&gt; view === 'month' &amp;&amp; date.getDay() === 0 ? &lt;p&gt;It's Sunday!&lt;/p&gt; : null</code>
// </li>
// </ul></td>

View File

@ -0,0 +1,6 @@
This favicon was generated using the following font:
- Font Title: League Spartan
- Font Author: Copyright 2020 The League Spartan Project Authors (https://github.com/theleagueof/league-spartan)
- Font Source: http://fonts.gstatic.com/s/leaguespartan/v6/kJEnBuEW6A0lliaV_m88ja5Twtx8BWhtkDVmjZvM_oTpBMdcFguczA.ttf
- Font License: SIL Open Font License, 1.1 (http://scripts.sil.org/OFL))

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 508 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -0,0 +1 @@
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

14
styles/footer.module.css Normal file
View File

@ -0,0 +1,14 @@
.footer {
margin-top: 2rem;
}
.navItems {
margin-bottom: 1rem;
padding: 0;
list-style: none;
}
.navItem {
display: inline-block;
margin-right: 1rem;
}

58
styles/global.css Normal file
View File

@ -0,0 +1,58 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
body {
@apply bg-gray-100;
}
.max-w-250 {
max-width: 250px;
}
.min-w-250 {
min-width: 250px;
}
@layer base {
.sidemenu-item {
@apply: flex items-center px-4 py-2 mt-5 text-gray-600 transition-colors duration-300 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-200 hover:text-gray-700;
}
}
@layer components {
/* .custom-outline {
@apply outline outline-2 outline-offset-2 focus:outline-none focus:shadow-outline;
} */
.button {
@apply m-2 text-white font-bold py-2 px-4 rounded bg-blue-500 hover:bg-blue-700;
}
.panel-actions {
@apply flex justify-end items-center justify-between;
}
.action-button {
@apply inline-block align-baseline font-bold text-blue-500 hover:text-blue-800;
}
.label {
@apply block mb-5 text-gray-700 dark:text-white text-sm font-bold mb-2;
}
.checkbox {
@apply appearance-none h-4 w-4 border border-gray-300 rounded-sm bg-white checked:bg-blue-600 checked:border-blue-600 focus:outline-none transition duration-200 mt-1 align-top bg-no-repeat bg-center bg-contain float-left mr-2 cursor-pointer;
}
.textbox {
/* shadow appearance-none border rounded w-full py-2 px-3 text-gray-700 leading-tight focus:outline-none focus:shadow-outline */
@apply appearance-none block w-full bg-gray-200 text-gray-700 border border-gray-200 rounded py-2 px-4 leading-tight focus:outline-none focus:bg-white focus:border-gray-500;
}
.form {
@apply flex flex-col p-5 max-w-2xl mx-auto mt-2 mb-10 bg-white dark:bg-gray-800 shadow-md rounded;
}
.form-caption {
@apply text-gray-600 dark:text-gray-400 text-sm font-bold mb-2;
}
.sidemenu-item {
@apply flex items-center px-4 py-2 mt-5 text-gray-600 transition-colors duration-300 transform rounded-md dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-800 dark:hover:text-gray-200 hover:text-gray-700;
}
.sidemenu-item:hover .sub-menu {
display: block; /* display the sub-menu when the menu item is hovered over */
}
}

93
styles/header.module.css Normal file
View File

@ -0,0 +1,93 @@
/* Set min-height to avoid page reflow while session loading */
.signedInStatus {
display: block;
min-height: 4rem;
width: 100%;
}
.loading,
.loaded {
position: relative;
top: 0;
opacity: 1;
overflow: hidden;
border-radius: 0 0 0.6rem 0.6rem;
padding: 0.6rem 1rem;
margin: 0;
background-color: rgba(0, 0, 0, 0.05);
transition: all 0.2s ease-in;
}
.loading {
top: -2rem;
opacity: 0;
}
.signedInText,
.notSignedInText {
position: absolute;
padding-top: 0.8rem;
left: 1rem;
right: 6.5rem;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
display: inherit;
z-index: 1;
line-height: 1.3rem;
}
.signedInText {
padding-top: 0rem;
left: 4.6rem;
}
.avatar {
border-radius: 2rem;
float: left;
height: 2.8rem;
width: 2.8rem;
background-color: white;
background-size: cover;
background-repeat: no-repeat;
}
.button,
.buttonPrimary {
float: right;
margin-right: -0.4rem;
font-weight: 500;
border-radius: 0.3rem;
cursor: pointer;
font-size: 1rem;
line-height: 1.4rem;
padding: 0.7rem 0.8rem;
position: relative;
z-index: 10;
background-color: transparent;
color: #555;
}
.buttonPrimary {
background-color: #346df1;
border-color: #346df1;
color: #fff;
text-decoration: none;
padding: 0.7rem 1.4rem;
}
.buttonPrimary:hover {
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.2);
}
.navItems {
margin-bottom: 2rem;
padding: 0;
list-style: none;
}
.navItem {
display: inline-block;
margin-right: 1rem;
}

269
styles/styles.css Normal file
View File

@ -0,0 +1,269 @@
/* * {
box-sizing: border-box;
} */
body {
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
padding: 0 1rem 1rem 1rem;
max-width: 768px;
margin: 0 auto;
background: #fff;
color: #333;
}
main {
/* padding: 1rem;
margin: 13rem */
}
li,
p {
line-height: 1.5rem;
}
a {
font-weight: 500;
}
hr {
border: 1px solid #ddd;
}
iframe {
background: #ccc;
border: 1px solid #ccc;
height: 10rem;
width: 100%;
border-radius: 0.5rem;
filter: invert(1);
}
.modal-content {
z-index: 1002; /* or a higher value if necessary */
}
.modal-overlay {
z-index: 1001;
}
.publisher {
position: relative;
cursor: pointer;
}
.publisher:hover .publisher-tooltip {
display: block;
}
.publisher-tooltip {
display: none;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
padding: 5px;
background-color: #333;
color: #fff;
border-radius: 3px;
white-space: nowrap;
transition: opacity 0.3s, color 0.3s;
}
/* genral tooltip * /
/* Tooltip Container * /
[tooltip] {
position: relative;
cursor: pointer;
}
/* Tooltip Text * /
[tooltip]::after {
content: attr(tooltip);
display: none;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
padding: 5px;
background-color: #333;
color: #fff;
border-radius: 3px;
white-space: nowrap;
transition: opacity 0.3s, color 0.3s;
}
/* Show the Tooltip Text on Hover * /
[tooltip]:hover::after {
display: block;
}
/* -- genral tooltip -- */
.customCalendar {
width: 400px !important;
/* Add any additional styles you need */
}
.disabled {
opacity: 0.6;
pointer-events: none;
}
.loading-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
}
@media (max-width: 768px) {
.sidebar {
display: none; /* Hide sidebar on small screens */
}
.main-content {
margin-left: 0; /* Use full width */
}
}
*,
*::before,
*::after {
box-sizing: border-box;
}
.flex-item {
flex-grow: 1;
flex-shrink: 1;
flex-basis: auto; /* Adjust as needed */
}
.container {
overflow-x: hidden; /* Hide horizontal overflow */
overflow-y: auto; /* Vertical scroll only when needed */
}
/* CALENDAR */
.icon-large {
font-size: 16px; /* Example size, adjust as needed */
}
.rbc-calendar {
font-family: sans-serif;
font-size: 18px;
}
.rbc-toolbar-label {
font-size: 18px; /* Increased font size */
font-weight: 600; /* Making the font weight bolder */
color: #2c3e50; /* Using a darker color for better contrast */
padding: 8px 12px; /* Adding some padding */
margin: 0 10px; /* Adding margin for spacing */
border-radius: 4px; /* Optional: rounding the corners for a softer look */
background-color: #ecf0f1; /* Light background color to make it stand out */
box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Optional: adding a subtle shadow for depth */
display: inline-block; /* To apply padding and background color correctly */
/* Adding glow to the text */
/* text-shadow: 0 0 2px rgba(252, 252, 252, 0.8); Adjust color and glow size as needed */
}
.mobile-calendar .rbc-btn-group button {
padding: 4px 6px; /* Smaller buttons */
font-size: 16px; /* Smaller button text */
}
@media (max-width: 768px) {
.rbc-calendar {
font-size: 14px; /* Smaller text on mobile */
}
.mobile-calendar .rbc-calendar {
font-size: 12px; /* Even smaller text for calendar elements in mobile-calendar class */
}
}
/* .rbc-month-view .rbc-event {
position: absolute;
}
.rbc-month-view .rbc-event .custom-event {
position: absolute;
}
*/
/* .rbc-month-view
.rbc-event
.custom-event
.rbc-event-label
.rbc-event-content
.rbc-event-content {
display: none;
} */
/* .rbc-calendar .rbc-month-view .rbc-event {
border: 0;
padding: 0;
margin: 0;
background-color: transparent;
color: #fff;
font-size: 0.75rem;
font-weight: 500;
line-height: 1;
text-align: center;
border-radius: 0.25rem;
box-shadow: none;
cursor: pointer;
transition: all 0.3s;
} */
.rbc-calendar .rbc-month-view .rbc-event
{
padding: 2;
margin: 2;
background-color: transparent;
line-height: 1.8;
}
/* .rbc-month-row {
display: inline-table !important;
flex: 0 0 0 !important;
/* min-height:150px !important; * /
} */
.react-responsive-carousel .control-arrow {
width: 25%;
}
/* Custom CSS for responsive table */
@media (max-width: 768px) {
/* Hide table headers on small screens */
thead tr {
display: none;
}
/* Make table rows behave like cards/rows */
tbody tr {
display: block;
margin-bottom: 1rem;
border-bottom: none;
}
/* Make table cells display as block */
td {
display: block;
text-align: right;
position: relative;
padding-left: 50%;
border-bottom: 1px solid #e5e7eb;
}
/* Add pseudo-element for labels from data-label attribute */
td::before {
content: attr(data-label);
position: absolute;
left: 0;
width: 50%;
padding-left: 15px;
font-weight: bold;
text-align: left;
}
}