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

fixed:#1887 Event and Holiday Calendar View #2608

Closed
Show file tree
Hide file tree
Changes from 15 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: 1 addition & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
if: steps.changed-files.outputs.only_changed != 'true'
env:
CHANGED_FILES: ${{ steps.changed-files.outputs.all_changed_files }}
run: npx eslint ${CHANGED_FILES} && python .github/workflows/eslint_disable_check.py
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
run: npx eslint ${CHANGED_FILES} --no-ignore --quiet || true
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved

- name: Check for TSDoc comments
run: npm run check-tsdoc # Run the TSDoc check script
Expand Down
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"


gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
npm run format:fix
# npm run lint:fix
Expand Down
170 changes: 167 additions & 3 deletions src/components/EventCalendar/EventCalendar.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@
padding: 5px;
width: fit-content;
display: flex;
flex-direction: row;
align-items: center;
gap: var(--indicator-spacing);
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
}

.event_list_hour {
Expand Down Expand Up @@ -316,7 +317,8 @@
flex-grow: 1;
}

@media only screen and (max-width: 700px) {
@media only screen and (max-width: var(--mobile-breakpoint)) {
/* --mobile-breakpoint: 768px */
.event_list {
display: none;
}
Expand All @@ -331,7 +333,7 @@
}
}

@media only screen and (max-width: 500px) {
@media only screen and (max-width: var(--small-mobile-breakpoint)) {
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
.btn__more {
font-size: 12px;
}
Expand All @@ -344,7 +346,22 @@
gap: 10px;
margin-top: 35px;
}
.base_card {
flex: 1;
padding: 20px;
border-radius: 10px;
box-shadow: var(--card-shadow);
}

.holidays_card {
composes: base_card;
background-color: var(--holiday-card-bg);
}

.events_card {
composes: base_card;
background-color: #ffffff;
}
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
.card__holidays {
background-color: rgba(246, 242, 229, 1);
display: flex;
Expand Down Expand Up @@ -420,4 +437,151 @@
width: 40px;
background: rgba(146, 200, 141, 0.5);
border-radius: 10px;
background-color: rgba(139, 195, 74, 1);
border-radius: 5px;
width: 20px;
height: 12px;
display: inline-block;
}

.baseIndicator {
border-radius: 5px;
width: 20px;
height: 12px;
display: inline-block;
}

.holidayText {
font-size: 14px;
color: #555555;
}
.eventsLegend {
display: flex;
align-items: center;
gap: 8px;
}

.listContainer {
width: fit-content;
display: flex;
align-items: center;
gap: 8px;
}

.holidayIndicator {
composes: baseIndicator;
background-color: rgba(0, 0, 0, 0.15);
}

.holidayText {
font-size: 14px;
color: #555555;
}
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
.eventsLegend {
display: flex;
align-items: center;
gap: 8px;
}
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
:root {
/* Holiday colors */
--color-holiday-indicator: rgba(0, 0, 0, 0.15);
--color-holiday-date: rgba(255, 152, 0, 1);
--mobile-breakpoint: 700px;
--small-mobile-breakpoint: 480px;
--color-text-primary: rgba(51, 51, 51, 1);
--color-text-secondary: rgba(85, 85, 85, 1);
/* Card styles */
--card-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
--holiday-card-bg: #f6f2e5;
--holiday-date-color: #ea7b56;
--indicator-spacing: 8px;
}
gurramkarthiknetha marked this conversation as resolved.
Show resolved Hide resolved
.organizationIndicator {
composes: baseIndicator;
background-color: rgba(82, 172, 255, 0.5);
}

.legendText {
font-size: 14px;
color: #555555;
}
@media only screen and (max-width: var(--mobile-breakpoint)) {
.listContainer,
.eventsLegend {
gap: 4px;
}

.holidayIndicator,
.organizationIndicator {
width: 16px;
height: 10px;
}

.holidayText,
.legendText {
font-size: 12px;
}
}
.card_title {
font-size: 16px;
font-weight: 600;
color: var(--text-color-primary);
margin-bottom: 15px;
}

.card_list {
list-style: none;
padding: 0;
margin: 0;
}

.card_list_item {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 10px;
font-size: 14px;
color: var(--text-color-secondary);
}

.holiday_date {
font-weight: 500;
color: var(--holiday-date-color);
}

.calendar_infocards {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
padding: 20px;
background-color: var(--grey-bg-color);
}

.holidays_card,
.events_card {
flex: 1;
padding: 20px;
border-radius: 10px;
box-shadow: var(--card-shadow);
}

.holidays_card {
background-color: var(--holiday-card-bg);
}

.events_card {
background-color: white;
}

.legend {
display: flex;
flex-direction: column;
gap: 12px;
}

.userEvents__color {
composes: baseIndicator;
background-color: rgba(139, 195, 74, 1);
}
Loading
Loading