Skip to content

Commit

Permalink
Merge pull request #4 from culturecreates/feature/issue-108
Browse files Browse the repository at this point in the history
feat: calendar logo added
  • Loading branch information
SyamBabu-M authored Jan 12, 2024
2 parents ff1bbc3 + 2e4fe38 commit 0c15e69
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
data-calendar="tout-culture"
data-color="#e31818"
data-limit="9"
data-logo="https://cdn.footlight.io/iiif/3/tout-culture-logo.png/0,0,1620,1080/400,/0/default.png"
></div>
</body>
</html>
3 changes: 3 additions & 0 deletions src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ const Footer = () => {
<div className="provided-by-container">
<span className="text">{t('footer.providedBy')}</span>
<span className="calendar-name">{calendarName}</span>
<div className="calendar-logo">
<img src={widgetProps?.calendarLogo} />
</div>
</div>
</footer>
);
Expand Down
8 changes: 8 additions & 0 deletions src/components/footer/footer.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,11 @@
border-bottom: 1px solid var(--dynamic-color-700);
color: var(--dynamic-color-700);
}

#calendar-widget > .widget-layout .footer .provided-by-container .calendar-logo {
margin-left: 3px;
}

#calendar-widget > .widget-layout .footer .provided-by-container .calendar-logo > img {
width: 16px;
}
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ root.render(
calendar={calendarWidget.dataset.calendar}
color={calendarWidget.dataset.color}
limit={calendarWidget.dataset.limit}
calendarLogo={calendarWidget.dataset.logo}
/>
</React.StrictMode>,
);

0 comments on commit 0c15e69

Please sign in to comment.