Skip to content
5 changes: 3 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,11 @@ const config = {
announcementBar: {
id: "announcementBar",
content:
'🔗 Check out our latest post: <a target="_blank" href="https://www.linkedin.com/posts/ajay-dhangar_docusaurus-webdevelopment-opensource-activity-7227962677250207745-6rBB?utm_source=share&utm_medium=member_desktop">Docusaurus 3.5 Released</a>! Like, comment, and share! 🚀',
'🐐 Check out our latest project <a target="_blank" href="https://eco-farm-hub.github.io/goat-farming/">Goat Farming</a>! Learn more about sustainable farming practices. 🌱',
isCloseable: true,
backgroundColor: "var(--ifm-color-primary)",
backgroundColor: "#4d5061",
},


metadata: [
{
Expand Down
14 changes: 14 additions & 0 deletions src/components/popup/popup.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import React from "react";
import styles from "./style.module.css";

const Popup = ({ status, message }) => {
return (
<div className={styles.popup_message}>
<p className={message === "Success" ? styles.success : styles.error}>
<span className={styles.span}>{status}</span>
{message}
</p>
</div>
);
};
export default Popup;
38 changes: 38 additions & 0 deletions src/components/popup/style.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
.popup_message {
position: fixed;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
top: 15%;
z-index: 1;
}
.popup_message .success,
.popup_message .error {
padding: 1rem 3rem;
font-family: monospace;
font-weight: 600;
border-radius: 0.6rem;
font-size: 0.8rem;
}
.popup_message .success {
background: rgba(6, 235, 6, 0.749);
color: #fff;
}
.popup_message .error {
background: rgba(235, 6, 6, 0.749);
color: #fff;
padding: 1rem 2.5rem;
}

.popup_message p{
font-family: monospace;
font-weight: 600;

}

.popup_message span {
position: relative;
top: 0.2rem;
margin-right: 0.3rem;
}
24 changes: 14 additions & 10 deletions src/css/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
--ifm-bg-color: #f8f9fa;
--image-filter:invert(0);
--site-color-svg-icon-favorite: #ff1100cb;
--ifm-text-color: #000;
}

[data-theme="dark"] {
Expand All @@ -48,6 +49,7 @@
--ifm-bg-color: #1a202c;
--image-filter:invert(1);
--site-color-svg-icon-favorite: #ff9100e5;
--ifm-text-color: #fff;
}

.header-github-link::before {
Expand All @@ -69,7 +71,6 @@
}

div[class^="announcementBar_"] {
background: #06e06fb4;
color: #fff;
border-bottom: 1.8px dotted rgb(37, 184, 11);
font-weight: bold;
Expand All @@ -84,24 +85,25 @@ div[class^="announcementBar_"] {
div[class^="announcementBar_"] a {
font-size: 1.2em;
padding: 1px 4px;
background: linear-gradient(
/* background: linear-gradient(
90deg,
rgb(252 176 69 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(131 58 180 / 100%) 100%
rgb(229, 223, 232) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 2px #ff00de, 0 0 1px #ff00de;
-webkit-text-fill-color: transparent; */
text-decoration: none;
color: #48df84;
}

div[class^="announcementBar_"] a:hover {
font-size: 1.2em;
padding: 1px 4px;
background: linear-gradient(
90deg,
rgb(131 58 180 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(235, 244, 243) 0%,
#7ab3c8 50%,
rgb(252 176 69 / 100%) 100%
);
background-clip: text;
Expand All @@ -111,14 +113,16 @@ div[class^="announcementBar_"] a:hover {
[data-theme="dark"] div[class^="announcementBar_"] a {
font-size: 1.2em;
padding: 1px 4px;
background: linear-gradient(
/* background: linear-gradient(
90deg,
rgb(131 58 180 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(252 176 69 / 100%) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
-webkit-text-fill-color: transparent; */
text-decoration: none;
color: #48df84;
}

[data-theme="dark"] div[class^="announcementBar_"] a:hover {
Expand All @@ -128,7 +132,7 @@ div[class^="announcementBar_"] a:hover {
90deg,
rgb(252 176 69 / 100%) 0%,
rgb(253 29 29 / 100%) 50%,
rgb(131 58 180 / 100%) 100%
rgb(220, 203, 232) 100%
);
background-clip: text;
-webkit-text-fill-color: transparent;
Expand Down
17 changes: 11 additions & 6 deletions src/pages/contact/Contact.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
}

.contact_info .icon .fill_current {
fill: #816bd1;
fill: var(--ifm-color-primary);
}

.contact_info .contact_info_item .location_heading, .contact_info .contact_info_item .help_heading {
Expand Down Expand Up @@ -122,10 +122,13 @@
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 5px;
background: transparent;
color: var(--ifm-text-color);
}

.main__contact_contains_right .form_container .form_group .phone_input {
background-color: transparent;
background-color: transparent;
color: var(--ifm-text-color);
}

.main__contact_contains_right .form_container .form_group .form_select {
Expand All @@ -140,22 +143,24 @@
padding: 0.5rem;
border: 1px solid #ccc;
border-radius: 5px;
background: transparent;
color: var(--ifm-text-color);
}

.main__contact_contains_right .form_container .form_group .form_button {
width: 100px;
padding: 0.5rem;
border: none;
border-radius: 5px;
background-color: #816bd1;
background-color: var(--ifm-color-primary);
color: #fff;
font-size: 1rem;
font-weight: 600;
cursor: pointer;
}

.main__contact_contains_right .form_container .form_group .form_button:hover{
background-color: #816bd1b5;
background-color: var(--ifm-color-primary-dark);
}

@media screen and (max-width: 768px) {
Expand All @@ -169,7 +174,7 @@
}

.social_media_icons{
color: #816bd1 !important;
color: var(--ifm-color-primary) !important;
font-size: 34px;
display: flex;
flex-direction: row;
Expand All @@ -181,7 +186,7 @@

.social_media_icons a{
list-style: none;
color: #816bd1 !important;
color: var(--ifm-color-primary) !important;
}

.social_media_heading{
Expand Down
14 changes: 6 additions & 8 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PhoneInput from "react-phone-input-2";
import "react-phone-input-2/lib/style.css";
import { FaYoutube, FaDiscord, FaLinkedin } from "react-icons/fa";
import { FaXTwitter } from "react-icons/fa6";
import Popup from "../popup/popup";
import Popup from "../../components/popup/popup";
import axios from 'axios'
// import useDocusaurusContext from "@docusaurus/useDocusaurusContext";
import { log } from "console";
Expand Down Expand Up @@ -77,7 +77,7 @@ export default function Contact(): JSX.Element {
},
{
headers: {
"Content-Type": "application/json", // Ensuring JSON format
"Content-Type": "application/json",
},
}
);
Expand All @@ -90,9 +90,8 @@ export default function Contact(): JSX.Element {
message: "",
feedbackType: "Question",
otherFeedback: "",
});

// Handling response based on the server's reply
});

if (response.data.ok) {
setChecker((prev) => ({
...prev,
Expand All @@ -110,7 +109,6 @@ export default function Contact(): JSX.Element {
}
} catch (error) {
console.error("Error submitting the form:", error);
// Set error state if request fails
setChecker((prev) => ({
...prev,
popup: true,
Expand Down Expand Up @@ -237,7 +235,7 @@ export default function Contact(): JSX.Element {
<div>
<h5 className={styles.help_heading}>How Can We Help?</h5>
<p className={styles.help_text}>
ajaydhyangar49@gmail.com
codeharborhub@gmail.com
</p>
</div>
</motion.div>
Expand Down Expand Up @@ -339,7 +337,7 @@ export default function Contact(): JSX.Element {
name="feedbackType"
value={formValues.feedbackType}
onChange={handleInputChange}
className={styles.form_select}
className={styles.form_select}
required
>
<option value="Question">Question</option>
Expand Down
28 changes: 0 additions & 28 deletions src/pages/popup/popup.module.css

This file was deleted.

10 changes: 0 additions & 10 deletions src/pages/popup/popup.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {StaleWhileRevalidate} from 'workbox-strategies';

export default function swCustom(params) {
if (params.debug) {
console.log('[CodeMastermindHQ-PWA][SW]: running swCustom code', params);
console.log('[CodeHarborHub-PWA][SW]: running swCustom code', params);
}

// Cache responses from external resources
Expand Down
Loading