diff --git a/config/content/AboutUs.js b/config/content/AboutUs.js index 0fe4ab1..bfca221 100644 --- a/config/content/AboutUs.js +++ b/config/content/AboutUs.js @@ -1,6 +1,7 @@ /* eslint-disable max-len */ export default { title: 'Innovision 2k23', - desc: `Innovision stands as one of Eastern India's most prominent technical festivals. It offers an immersive exploration of science and technology, embodying key themes in innovation and advancement. Innovision, entirely driven by the NIT Rourkela student body, provides an expansive platform encompassing competitive events, illuminating guest lectures, hands-on technical workshops, and captivating exhibitions. This dynamic fest beckons technology enthusiasts to display their intelligence and ingenuity. As a collective, these elements contribute to the cultivation of advanced technologies that continually evolve, learn, and interact with their surroundings in ever more sophisticated ways.`, + desc: `Innovision stands as one of Eastern India's most prominent technical festivals. It offers an immersive exploration of science and technology, embodying key themes in innovation and advancement. Innovision, entirely driven by the NIT Rourkela student body, provides an expansive platform encompassing competitive events, illuminating guest lectures, hands-on technical workshops, and captivating exhibitions. This dynamic fest beckons technology enthusiasts to display their intelligence and ingenuity. As a collective, these elements contribute to the cultivation of advanced technologies that continually evolve, learn, and interact with their surroundings in ever more sophisticated ways. + `, link: 'https://www.youtube.com/embed/DrIwRpGM35I', }; diff --git a/config/content/Navigation.js b/config/content/Navigation.js index 20f1a0c..4c19953 100644 --- a/config/content/Navigation.js +++ b/config/content/Navigation.js @@ -12,7 +12,7 @@ export default { }, { name: 'Events', - id: 'events', + link: '/events', }, { name: 'Sponsors', @@ -23,4 +23,24 @@ export default { id: 'faq', }, ], + otherPagesNavItems: [ + { + name: 'Home', + link: '/', + }, + { + name: 'Events', + link: '/events', + }, + { + name: 'Register', + link: '/register', + authenticated: false, + }, + { + name: 'Profile', + link: '/profile', + authenticated: true, + }, + ], }; diff --git a/config/content/payment.js b/config/content/payment.js index ef4b6c2..c3a99ef 100644 --- a/config/content/payment.js +++ b/config/content/payment.js @@ -4,7 +4,7 @@ export const PaymentDetails = ({ email, name, mobile }) => { return { purpose: 'INNOVISION 2023 | Registration Fee', date: date.toDateString(), - amount: 750, + amount: 899, email, buyerName: name, phone: mobile, @@ -16,8 +16,34 @@ export const PaymentContent = { description: 'Pay the registration fee to complete your registration.', warning: 'Note: Registration fee is non-refundable.', info: 'Check your details before proceeding to payment.', - endNote: 'For any queries, contact us at: +91 1234567890', + endNote: 'For any queries, contact us at: reachus.inno@gmail.com', + caption: 'Early Bird Registration Fee', proceed: 'Proceed to Payment', cancel: 'Cancel', - termsLink: 'https://www.google.com/', + terms: [ + { + id: 'privacy', + term: 'I have read and agree to the ', + linkText: 'Privacy Policy', + link: 'https://www.google.com', + }, + { + id: 'code', + term: 'I have read and agree to the ', + linkText: 'Code of Conduct', + link: 'https://www.google.com', + }, + { + id: 'refund', + term: 'I have read and agree to the ', + linkText: 'Refund Policy', + link: 'https://www.google.com', + }, + { + id: 'terms', + term: 'I have read and agree to the ', + linkText: 'Terms and Conditions', + link: 'https://www.google.com', + }, + ], }; diff --git a/config/content/sponsors.js b/config/content/sponsors.js index 3eb937b..b0077d9 100644 --- a/config/content/sponsors.js +++ b/config/content/sponsors.js @@ -1,9 +1,9 @@ export default { title: 'Past Sponsors', - footer: 'Want to sponsor us?', + footer: 'Want to sponsor us? ', link: - 'https://docs.google.com/forms/d/e/' + - '1FAIpQLSfV6ZclXiO7K5vVWFjR6_ZtqjrQ1HpTQ4-Lk9WAu4VA9PuI_g/viewform?usp=sharing', + 'https://docs.google.com/forms/d/e/1FAIpQLSfV6ZclXiO7K5vVWFjR6_' + + 'ZtqjrQ1HpTQ4-Lk9WAu4VA9PuI_g/viewform?usp=sharing', id: 'sponsors', titleSponsor: [ diff --git a/config/content/tempCodeRunnerFile.js b/config/content/tempCodeRunnerFile.js new file mode 100644 index 0000000..bfca221 --- /dev/null +++ b/config/content/tempCodeRunnerFile.js @@ -0,0 +1,7 @@ +/* eslint-disable max-len */ +export default { + title: 'Innovision 2k23', + desc: `Innovision stands as one of Eastern India's most prominent technical festivals. It offers an immersive exploration of science and technology, embodying key themes in innovation and advancement. Innovision, entirely driven by the NIT Rourkela student body, provides an expansive platform encompassing competitive events, illuminating guest lectures, hands-on technical workshops, and captivating exhibitions. This dynamic fest beckons technology enthusiasts to display their intelligence and ingenuity. As a collective, these elements contribute to the cultivation of advanced technologies that continually evolve, learn, and interact with their surroundings in ever more sophisticated ways. + `, + link: 'https://www.youtube.com/embed/DrIwRpGM35I', +}; diff --git a/gatsby-config.js b/gatsby-config.js index bde32cb..de6686b 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -19,7 +19,7 @@ module.exports = { // Add any options here }, }, - `gatsby-plugin-offline`, + // `gatsby-plugin-offline`, { resolve: `gatsby-plugin-google-analytics`, options: { diff --git a/src/components/EventCard/Card.jsx b/src/components/EventCard/Card.jsx index a285783..7c74d27 100644 --- a/src/components/EventCard/Card.jsx +++ b/src/components/EventCard/Card.jsx @@ -81,7 +81,6 @@ const EventCard = ({ event, registered }) => { {time} - {venue} @@ -118,7 +117,7 @@ const EventCard = ({ event, registered }) => { {desc} ))} - Contact: {contact?.join(', ')} + {contact ? Contact: {contact?.join(', ')} : null} { - const { events } = useEvents('Technical'); + const { events } = useEvents(); return ( + navigate(buttonLink)}> - REGISTER NOW + {buttonText} arrow Hero-Btn diff --git a/src/components/Payment/PaymentCard.jsx b/src/components/Payment/PaymentCard.jsx index 996e802..414392c 100644 --- a/src/components/Payment/PaymentCard.jsx +++ b/src/components/Payment/PaymentCard.jsx @@ -18,12 +18,23 @@ import Button from '../shared/Button'; const PaymentCard = () => { const { userData, token } = useContext(AuthContext); - const { title, description, endNote, info, proceed, termsLink, warning } = PaymentContent; - const [agreed, setAgreed] = useState(false); + const { title, description, endNote, info, proceed, terms, warning, caption } = PaymentContent; + const [checkboxValues, setCheckboxValues] = useState( + terms.reduce((acc, { id }) => ({ ...acc, [id]: false }), {}), + ); const api = Api.getInstance(); const details = useMemo(() => PaymentDetails(userData), [userData]); + const handleCheckboxChange = (event) => { + const { name, checked } = event.target; + setCheckboxValues((prev) => { + const newValues = { ...prev }; + newValues[name] = checked; + return newValues; + }); + }; + const handlePayment = () => { toast.promise( api.initiatePayment({ @@ -52,30 +63,52 @@ const PaymentCard = () => { ))} - - setAgreed((prev) => !prev)} - value={agreed} - /> - {/* eslint-disable-next-line jsx-a11y/label-has-associated-control */} - - + +
    + {terms.map(({ id, term, linkText, link }) => ( + + + + + ))} +
{warning} + {/* TODO: Remove afterwards */} + + {caption}: ₹1000 + + ₹750 + +