Skip to content

Commit

Permalink
Merge branch 'timezone-aware' of github.com:conda-incubator/conda-dot…
Browse files Browse the repository at this point in the history
…-org into timezone-aware
  • Loading branch information
jaimergp committed Nov 6, 2024
2 parents 88835b4 + 4ae8b04 commit 1bdc8f0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/Calendar/index.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { React, useEffect, useState } from "react";
import { useColorMode } from '@docusaurus/theme-common';
import { useColorMode } from "@docusaurus/theme-common";

export default function Calendar() {
const [firstDay, setFirstDay] = useState(1);
Expand All @@ -17,7 +17,11 @@ export default function Calendar() {
src={`https://calendar.google.com/calendar/embed?height=500&wkst=${firstDay}&ctz=${timezone}&showTitle=0&showTz=1&showPrint=0&src=ODgwNTU3MGE0ZTFjYTIzMTk4NDI5NzFkYjQzODBlZDUxOGM0OTA1NzdjMDY0NTRhZGYyMzAzNzM0NTA2ZjM5N0Bncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%2333b679`}
width="100%"
height="500"
style={ colorMode === "dark" ? {filter: "invert(95%) brightness(95%) hue-rotate(180deg)"} : {}}
style={
colorMode === "dark"
? { filter: "invert(95%) brightness(95%) hue-rotate(180deg)" }
: {}
}
></iframe>
);
}

0 comments on commit 1bdc8f0

Please sign in to comment.