diff --git a/events.css b/events.css new file mode 100644 index 00000000..e05f98d3 --- /dev/null +++ b/events.css @@ -0,0 +1,204 @@ +.timeline { + position: relative; + max-width: 1200px; + margin: 0 auto; + padding: 40px 0; +} + +.timeline::after { + content: ''; + position: absolute; + width: 6px; + background-color: #333; + top: 0; + bottom: 0; + left: 50%; + margin-left: -3px; +} + +.timeline-item { + padding: 10px 40px; + position: relative; + width: calc(50% - 40px); + box-sizing: border-box; +} + +.timeline-item::after { + content: ''; + position: absolute; + width: 25px; + height: 25px; + background-color: #333; + border: 4px solid #555; + border-radius: 50%; + z-index: 1; + top: 20px; +} + +.timeline-item:nth-child(odd) { + left: 0; + width: calc(50%); +} + +.timeline-item:nth-child(even) { + left: 50%; + width: calc(50%); +} + +.timeline-item:nth-child(odd)::after { + right: -17px; +} + +.timeline-item:nth-child(even)::after { + left: -17px; +} + +.timeline-content { + padding: 20px 30px; + background-color: #fff; + position: relative; + border-radius: 6px; + box-shadow: 0 4px 8px rgba(0,0,0,0.1); +} + +.timeline-item:nth-child(odd) .timeline-content::after { + content: ''; + position: absolute; + top: 15px; + right: -15px; + width: 0; + height: 0; + border-top: 15px solid transparent; + border-bottom: 15px solid transparent; + border-left: 15px solid #fff; +} + +.timeline-item:nth-child(even) .timeline-content::after { + content: ''; + position: absolute; + top: 15px; + left: -15px; + width: 0; + height: 0; + border-top: 15px solid transparent; + border-bottom: 15px solid transparent; + border-right: 15px solid #fff; +} + +.event-title { + color: #333; + font-size: 24px; + margin-bottom: 10px; +} + +.event-date { + font-style: italic; + color: #888; + margin-bottom: 10px; +} + +.event-description { + margin-bottom: 15px; +} + +.event-link { + display: inline-block; + background-color: #333; + color: #fff; + padding: 8px 15px; + border-radius: 4px; + text-decoration: none; + transition: background-color 0.3s; +} + +.event-link:hover { + background-color: #555; +} + +/* Dark mode styles */ +body.dark-mode .timeline::after{ + background-color: #f0f0f0; +} + +body.dark-mode .timeline-item::after{ + background-color: #ccc; + border: 4px solid #999; +} + +body.dark-mode .timeline-content { + background-color: #444; + color: #f0f0f0; +} + +body.dark-mode .timeline-item:nth-child(odd) .timeline-content::after { + border-left-color: #444; +} + +body.dark-mode .timeline-item:nth-child(even) .timeline-content::after { + border-right-color: #444; +} + +body.dark-mode .event-title { + color: #f0f0f0; +} + +body.dark-mode .event-date { + color: #ccc; +} + +body.dark-mode .event-link { + background-color: #f0f0f0; + color: #333; +} + +body.dark-mode .event-link:hover { + background-color: #ccc; +} + +body.dark-mode .navbar-text{ + color: #fff; +} + + +/* Responsive design */ +@media screen and (max-width: 768px) { + .timeline::after { + left: 31px; + } + + .timeline-item { + width: 100%; + padding-left: 70px; + padding-right: 25px; + } + + .timeline-item::after { + left: 15px; + } + + .timeline-item:nth-child(odd) { + width: 100%; + } + + .timeline-item:nth-child(even) { + left: 0; + width: 100%; + } + + .timeline-item:nth-child(odd)::after, + .timeline-item:nth-child(even)::after { + left: 15px; + } + + .timeline-item:nth-child(odd) .timeline-content::after, + .timeline-item:nth-child(even) .timeline-content::after { + left: -15px; + border-right: 15px solid #fff; + border-left: none; + } + + body.dark-mode .timeline-item:nth-child(odd) .timeline-content::after, + body.dark-mode .timeline-item:nth-child(even) .timeline-content::after { + border-right-color: #444; + } +} \ No newline at end of file diff --git a/events.html b/events.html new file mode 100644 index 00000000..bfc18cd3 --- /dev/null +++ b/events.html @@ -0,0 +1,118 @@ + + + + + + Events | Recode Hive + + + + + + + +
+

Events Timeline

+ +
+ +
+
+

Event Title 1

+

Date: TBA

+

Description of the event goes here.

+ Learn More +
+
+ + +
+
+

Event Title 2

+

Date: TBA

+

Description of the event goes here.

+ Learn More +
+
+ + +
+
+

Event Title 3

+

Date: TBA

+

Description of the event goes here.

+ Learn More +
+
+ + +
+
+ + + + + + + \ No newline at end of file diff --git a/githubbadge.css b/githubbadge.css new file mode 100644 index 00000000..6e765b26 --- /dev/null +++ b/githubbadge.css @@ -0,0 +1,185 @@ +/* Base styles */ +body { + font-family: Arial, sans-serif; + background-color: #f4f4f4; + color: #333; + margin: 0; + padding: 0; + line-height: 1.6; +} + +.wrapper { + max-width: 1200px; + margin: auto; + padding: 20px; + background: #fff; + border-radius: 8px; + box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); +} + +.title { + text-align: center; + font-size: 3em; + font-weight: bold; + color: #f67621; + margin-bottom: 20px; + text-decoration: underline; + text-underline-offset: 8px; +} + +/* Chrono component styles */ +.chrono { + margin: 0 auto; + width: 100%; +} + +.event-container { + display: flex; + flex-direction: column; + align-items: center; +} + +.event { + background-color: #f67621; + color: white; + border-radius: 8px; + margin: 20px 0; + padding: 20px; + max-width: 600px; + text-align: center; +} + +.event img { + width: 100%; + max-width: 600px; + height: auto; + border-radius: 8px; +} + +.event figcaption { + font-size: 2em; + font-weight: bold; + margin-top: 10px; +} + +.event p { + font-size: 1em; + margin: 10px 0; +} + +.event .link { + color: #fff; + font-size: 1.2em; + font-weight: bold; + text-decoration: none; + border-bottom: 2px solid #fff; +} + +.event .link:hover { + text-decoration: underline; +} + +/* Dark mode styles */ +body.theme-dark { + background-color: #121212; + color: #e0e0e0; +} + +body.theme-dark .wrapper { + background: #1e1e1e; +} + +body.theme-dark .title { + color: #f67621; +} + +body.theme-dark .event { + background-color: #474747; +} + +body.theme-dark .event .link { + color: #f67621; + border-bottom: 2px solid #f67621; +} + +body.theme-dark .container{ + background-color: black !important; +} +body.theme-dark .center { + background-color: black !important; +} +/* Light Mode Styles */ +.darkmodeimg { + display: none; +} + +/* Dark Mode Styles */ +.dark-mode .darkmodeimg { + display: block !important; +} +.lightmodeimg{ + display: block; +} +.dark-mode .lightmodeimg { + display: none !important; +} +.dark-mode .container h1,.dark-mode .container h2{ + color: white !important; +} +.table-container { + width: 100% !important; /* Set width to 90% of the viewport width */ + overflow-x: auto; /* Enable horizontal scrolling */ + margin: 0 auto; /* Center the container */ +} + +.header, .row { + display: flex; + + flex-wrap: wrap; /* Prevent wrapping */ +} + +.cell { + flex: auto; /* Allow cells to expand and fill the row */ + padding: 8px; + border: 1px solid #ddd; /* Add border */ + text-align: left; /* Align text to the left */ + /* min-width: 100px; */ +} + +.header { + background-color: #f2f2f2; /* Light gray background for header */ + font-weight: bold; +} + +.inner-table { + display: flex; + flex-direction: column; + width: 100%; +} + +.inner-table .header, .inner-table .rows { + display: flex; + flex-wrap: wrap; /* Prevent wrapping */ +} + +.inner-table .header .cell { + flex: auto !important; + background-color: #f2f2f2; /* Light gray background for inner table header */ +} + +.inner-table .rows { + overflow-x: auto; /* Allow horizontal scrolling */ +} + +.inner-table .row { + display: flex; + flex-wrap: nowrap; /* Prevent wrapping */ +} + +.inner-table .row .cell { + flex: 1; + border: 1px solid #ddd; /* Add border */ +} +.dark-mode .header,.dark-mode .cell{ + background-color: black !important; +} diff --git a/githubbadge.html b/githubbadge.html index 2b06bec3..8995747f 100644 --- a/githubbadge.html +++ b/githubbadge.html @@ -79,7 +79,8 @@ href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap" rel="stylesheet" /> - + + @@ -89,8 +90,8 @@ Recode Hive