Skip to content

Fade scroll animations added. #354

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.3.2",
"@docusaurus/types": "^3.3.2",
"dotenv": "^16.4.5"
"dotenv": "^16.4.5",
"framer-motion": "^11.2.10"
},
"browserslist": {
"production": [
Expand Down
74 changes: 65 additions & 9 deletions src/components/Aboutpage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from "react";
import clsx from "clsx";
import Heading from "@theme/Heading";
import styles from "./styles.module.css";

import { motion } from "framer-motion";
const aboutImg = "/img/svg/about_me.svg";

export default function AboutUsSection() {
Expand All @@ -11,21 +11,77 @@ export default function AboutUsSection() {
<div className="container">
<div className="row">
<div className="col col--6">
<motion.div
initial={{ opacity: 0, x: -150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.2,
}}
>
<Heading as={"h1"}>About Us</Heading>
<p className={styles.aboutUsDescription}>
</motion.div>
<motion.p
initial={{ opacity: 0, y: -150 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.aboutUsDescription}
>
Welcome to Code Harbor Hub, your go-to destination for quality tech education. At Code Harbor Hub, we are passionate about empowering individuals with the knowledge and skills needed to thrive in the ever-evolving world of technology.
</p>
<p className={styles.aboutUsDescription}>
</motion.p>
<motion.p
initial={{ opacity: 0, y: -150 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.aboutUsDescription}
>
Our mission is to provide accessible and comprehensive educational resources to learners of all levels, from beginners to advanced professionals. Whether you're looking to kickstart your career in web development, master a new programming language, or stay updated on the latest tech trends, we've got you covered.
</p>
<p className={styles.aboutUsDescription}>
</motion.p>
<motion.p
initial={{ opacity: 0, y: -150 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.aboutUsDescription}
>
With a team of experienced instructors and industry experts, we offer a diverse range of courses and learning paths tailored to meet your specific goals and interests. Join our community today and embark on your journey towards success in the tech industry!
</p>
</motion.p>
</div>
<div className={clsx("col", "col--6", styles.aboutUsImage)}>
<motion.div
initial={{ scale: 0, y: -150 }}
whileInView={{ scale: 0.8, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={clsx("col", "col--6", styles.aboutUsImage)}
>
{/* Placeholder for an about us image */}
<img src={aboutImg} alt="About Us" />
</div>
</motion.div>
</div>
</div>
</section>
Expand Down
63 changes: 54 additions & 9 deletions src/components/HomePage/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import React, { useEffect, useRef } from "react";
import "./header.css";
import Link from "@docusaurus/Link";
import VanillaTilt from "vanilla-tilt";
import { motion } from "framer-motion";

/**
* Renders the header component of the application.
Expand All @@ -12,25 +13,58 @@ import VanillaTilt from "vanilla-tilt";
const HeaderContent = () => {
return (
<div className="chh__header-content">
<h1 className="gradient__text">Level Up Skills with CodeHarborHub</h1>
<p>
<h1 className="gradient__text"
>Level Up Skills with CodeHarborHub</h1>
<motion.p
initial={{ opacity: 0, x: -150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.2,
}}
>
Tired of limitations? CodeHarborHub shatters them. We&apos;re the
exclusive platform offering a comprehensive tech curriculum, taught by
industry masters, completely free. Join our vibrant community, master
in-demand skills, and launch your dream tech career.
</p>
</motion.p>

<div className="chh__header-content__input">
<button type="button">
<motion.button
initial={{ opacity: 0, x: -150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
type="button"
>
<Link to="/docs" className="chh__header-content__input--link">
Get Started
</Link>
</button>
<button type="button">
</motion.button>
<motion.button
initial={{ opacity: 0, x: 150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
type="button"
>
<Link to="/courses" className="chh__header-content__input--link">
Courses
</Link>
</button>
</motion.button>
</div>
</div>
);
Expand Down Expand Up @@ -62,15 +96,26 @@ const HeaderImage = () => {
}, []);

return (
<div className="chh__header-image">
<motion.div
initial={{ scale: 0, x: 150 }}
whileInView={{ scale: 0.8, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className="chh__header-image"
>
<img
src="/img/hero-img.png"
alt="ai"
className="float-animation"
data-tilt
ref={imgRef}
/>
</div>
</motion.div>
);
};

Expand Down
73 changes: 63 additions & 10 deletions src/pages/contact/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Layout from "@theme/Layout";
import styles from "./Contact.module.css";
import React, { useState, ChangeEvent, FormEvent } from "react";
import { motion } from "framer-motion";

interface FormValues {
fullName: string;
Expand Down Expand Up @@ -46,15 +47,47 @@ export default function Contact(): JSX.Element {
<div className={styles.main__contact_contains_left}>
<div className={styles.main__contact_ud_wrapper}>
<div className={styles.ud_contact_title}>
<span className={styles.contact_us}>
<motion.span
initial={{ opacity: 0, x: -150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.2,
}}
className={styles.contact_us}
>
<b>CONTACT US</b>
</span>
<h2 className={styles.contact_heading}>
</motion.span>
<motion.h2
initial={{ opacity: 0, x: -150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.contact_heading}
>
Let's talk about your problem.
</h2>
</motion.h2>
</div>
<div className={styles.contact_info}>
<div className={styles.contact_info_item}>
<motion.div
initial={{ opacity: 0, y: 150 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.contact_info_item}>
<div className={styles.icon}>
<svg
width="29"
Expand All @@ -72,8 +105,18 @@ export default function Contact(): JSX.Element {
Mandsaur, Madhya Pradesh, India - 458002
</p>
</div>
</div>
<div className={styles.contact_info_item}>
</motion.div>
<motion.div
initial={{ opacity: 0, y: 150 }}
whileInView={{ opacity: 1, y: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.contact_info_item}>
<div className={styles.icon}>
<svg
width="34"
Expand All @@ -90,11 +133,21 @@ export default function Contact(): JSX.Element {
ajaydhyangar49@gmail.com
</p>
</div>
</div>
</motion.div>
</div>
</div>
</div>
<div className={styles.main__contact_contains_right}>
<motion.div
initial={{ opacity: 0, x: 150 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 1,
type: "spring",
stiffness: 100,
delay: 0.5,
}}
className={styles.main__contact_contains_right}>
<div className={styles.form_container}>
<h3 className={styles.form_heading}>Send us a Message</h3>
<form onSubmit={handleSubmit}>
Expand Down Expand Up @@ -157,7 +210,7 @@ export default function Contact(): JSX.Element {
</div>
</form>
</div>
</div>
</motion.div>
</div>
</div>
</section>
Expand Down
Loading