Skip to content

Commit

Permalink
🔨 Working...
Browse files Browse the repository at this point in the history
  • Loading branch information
oitashg committed Nov 24, 2024
1 parent 90346a5 commit 007c02d
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 17 deletions.
32 changes: 26 additions & 6 deletions src/components/ContactPage/ContactUsForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ const ContactUsForm = () => {
name="firstname"
id="firstname"
placeholder="Enter first name"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("firstname", { required: true })}
/>
{errors.firstname && (
Expand All @@ -71,6 +74,7 @@ const ContactUsForm = () => {
</span>
)}
</div>

<div className="flex flex-col gap-2 lg:w-[48%]">
<label htmlFor="lastname" className="lable-style">
Last Name
Expand All @@ -80,7 +84,10 @@ const ContactUsForm = () => {
name="lastname"
id="lastname"
placeholder="Enter last name"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("lastname")}
/>
</div>
Expand All @@ -95,7 +102,10 @@ const ContactUsForm = () => {
name="email"
id="email"
placeholder="Enter email address"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("email", { required: true })}
/>
{errors.email && (
Expand All @@ -117,7 +127,10 @@ const ContactUsForm = () => {
name="firstname"
id="firstname"
placeholder="Enter first name"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("countrycode", { required: true })}
>
{CountryCode.map((ele, i) => {
Expand All @@ -129,13 +142,17 @@ const ContactUsForm = () => {
})}
</select>
</div>

<div className="flex w-[calc(100%-90px)] flex-col gap-2">
<input
type="number"
name="phonenumber"
id="phonenumber"
placeholder="12345 67890"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("phoneNo", {
required: {
value: true,
Expand Down Expand Up @@ -164,7 +181,10 @@ const ContactUsForm = () => {
cols="30"
rows="7"
placeholder="Enter your message here"
className="form-style"
style={{
boxShadow: "inset 0px -1px 0px rgba(255, 255, 255, 0.18)",
}}
className='w-full rounded-[0.5rem] bg-richblack-800 p-[12px] text-richblack-5'
{...register("message", { required: true })}
/>
{errors.message && (
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FooterLink2 } from "../../data/footer-links";
import { Link } from "react-router-dom";

// Images
import Logo from "../../assets/Logo/Logo-Full-Light.png";
import Logo from "../../assets/Logo/new_logo.png"

// Icons
import { FaFacebook, FaGoogle, FaTwitter, FaYoutube } from "react-icons/fa";
Expand All @@ -24,7 +24,7 @@ const Community = ["Forums", "Chapters", "Events"];

const Footer = () => {
return (
<div className="bg-richblack-800">
<div className="bg-black">
<div className="flex lg:flex-row gap-8 items-center justify-between w-11/12 max-w-maxContent text-richblack-400 leading-6 mx-auto relative py-14">
<div className="border-b w-[100%] flex flex-col lg:flex-row pb-5 border-richblack-700">
{/* Section 1 */}
Expand Down
6 changes: 3 additions & 3 deletions src/components/common/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useEffect, useState } from 'react'
import { Link, matchPath } from 'react-router-dom'
import logo from "../../assets/Logo/Logo-Full-Light.png"
import logo from "../../assets/Logo/new_logo.png"
import { NavbarLinks } from '../../data/navbar-links'
import { useLocation } from 'react-router-dom'
import { useSelector } from 'react-redux'
Expand Down Expand Up @@ -52,13 +52,13 @@ const Navbar = () => {

return (
<div className={`flex h-14 items-center justify-center border-b-[1px] border-b-richblack-700
${location.pathname !== "/" ? "bg-richblack-800" : ""} transition-all duration-200`}>
bg-black transition-all duration-200`}>

<div className='flex w-11/12 max-w-maxContent items-center justify-between'>

{/* Logo */}
<Link to="/">
<img src={logo} alt={"not found"} width={160} height={42} loading='lazy'/>
<img src={logo} alt={"not found"} width={150} height={42} loading='lazy'/>
</Link>

{/* Navbar Links */}
Expand Down
4 changes: 2 additions & 2 deletions src/components/common/ReviewSlider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ const ReviewSlider = () => {
<div className="text-white">
<div className="my-[50px] h-[184px] max-w-maxContentTab lg:max-w-maxContent">
<Swiper
slidesPerView={4}
spaceBetween={25}
slidesPerView={2}
spaceBetween={200}
loop={true}
freeMode={true}
autoplay={{
Expand Down
5 changes: 3 additions & 2 deletions src/pages/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import ContactFormSection from '../components/core/AboutPage/ContactFormSection'
import HighlightText from ".././components/core/HomePage/HighlightText"
import Footer from "../components/common/Footer"
import Stats from '../components/core/AboutPage/Stats'
import ReviewSlider from '../components/common/ReviewSlider'

const About = () => {
return (
Expand Down Expand Up @@ -113,9 +114,9 @@ const About = () => {
<h1 className="text-center text-4xl font-semibold mt-8">
Reviews from other learners
</h1>
{/* <ReviewSlider /> */}
{/* <ReviewSlider /> */}
<ReviewSlider />
</div>

{/* <Footer /> */}
<Footer />
</div>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/Contact.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react'
import ContactDetails from '../components/ContactPage/ContactDetails'
import ContactForm from '../components/ContactPage/ContactForm'
import Footer from "../components/common/Footer"
import ReviewSlider from '../components/common/ReviewSlider'

const Contact = () => {
return (
Expand All @@ -22,7 +23,7 @@ const Contact = () => {
<h1 className="text-center text-4xl font-semibold mt-8">
Reviews from other learners
</h1>
{/* <ReviewSlider /> */}
<ReviewSlider />
</div>
<Footer />
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/services/operations/studentFeaturesAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { studentEndpoints } from "../apis";
import { apiConnector } from "../apiconnector";
import { setPaymentLoading } from "../../slices/courseSlice";
import { resetCart } from "../../slices/cartSlice";
import rzpLogo from '../../assets/Logo/rzp_logo.png'
import rzpLogo from '../../assets/Logo/codeholic-logo.png'


const {COURSE_PAYMENT_API, COURSE_VERIFY_API, SEND_PAYMENT_SUCCESS_EMAIL_API} = studentEndpoints;
Expand Down

0 comments on commit 007c02d

Please sign in to comment.