Skip to content

Commit

Permalink
FixesAdding Animations #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Devashish-Mishra-2003 committed Oct 27, 2024
1 parent 1748766 commit c70e437
Show file tree
Hide file tree
Showing 7 changed files with 320 additions and 42 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"preview": "vite preview"
},
"dependencies": {
"framer-motion": "^11.11.10",
"prop-types": "^15.8.1",
"react": "^18.3.1",
"react-dom": "^18.3.1",
Expand Down
29 changes: 25 additions & 4 deletions src/pages/about/index.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Link } from "react-router-dom";
import {Motion} from "../framer-motion";// For Motion in Text

export function AboutPage() {
return (
Expand All @@ -11,11 +12,31 @@ export function AboutPage() {
</Link>
&gt; About
</div>
<div className="font-bold lg:text-[48px] md:text-[32px] sm:text-[24px] text-[16px] mt-4">
<Motion.div
initial={{ opacity: 0, x: -100 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 0.8,
type: "spring",
stiffness: 110,
delay: 0,
}}
className="font-bold lg:text-[48px] md:text-[32px] sm:text-[24px] text-[16px] mt-4">
Tentang Komunitas Lombok Tengah Developer (Loteng Dev)
</div>
</Motion.div>
<hr className="border-1 border-grey w-full rounded-3xl md:mt-6 mt-2" />
<div className="mt-5 mb-16 text-justify text-[18px]">
<Motion.div
initial={{ opacity: 0, x: -100 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{
duration: 0.8,
type: "spring",
stiffness: 110,
delay: 0,
}}
className="mt-5 mb-16 text-justify text-[18px]">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Ex molestiae quos veritatis nemo sit praesentium aperiam quasi voluptatum quisquam unde delectus mollitia eveniet rem quia, saepe aliquam, consequuntur similique? Vitae.
<br />
<br />
Expand All @@ -25,7 +46,7 @@ export function AboutPage() {
<br />
Lorem ipsum, dolor sit amet consectetur adipisicing elit. Eius temporibus vitae at. Consequatur reiciendis sit quidem, impedit, facere aperiam nostrum delectus dolore dolor quibusdam harum animi amet repellendus, sunt
voluptatibus.
</div>
</Motion.div>
</div>
</div>
</div>
Expand Down
Loading

0 comments on commit c70e437

Please sign in to comment.