Skip to content
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

changes homepage #168

Merged
merged 1 commit into from
Sep 25, 2023
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
7 changes: 6 additions & 1 deletion uniEmpleos/src/components/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
padding: 10px;
font-size: 14px;
border: 2px solid #ccc;
border-radius: 10px;
border-radius: 12px;
background-color: #fff;
color: #000;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
Expand All @@ -19,4 +19,9 @@
border-color: #a08ae5;
box-shadow: 0 0 0 3px rgba(160, 138, 229, 0.25);
outline: none;
}

.buttonContainer button:hover {
border-color: #a08ae5;
outline: none;
}
9 changes: 9 additions & 0 deletions uniEmpleos/src/components/LottieAnimation/LottieAnimation.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Lottie from "lottie-react"
import React from "react"
import StudentAnimation from "./student.json"

const LottieAnimation = () => {
return <Lottie animationData={StudentAnimation} />
}

export default LottieAnimation
1 change: 1 addition & 0 deletions uniEmpleos/src/components/LottieAnimation/student.json

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion uniEmpleos/src/pages/Home/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import styles from "./Home.module.css"
import Infocontainer from "../../components/Infocontainer/Infocontainer"
import Button from "../../components/Button/Button"
import { navigate } from "../../store"
import LottieAnimation from "../../components/LottieAnimation/LottieAnimation"

const Home = () => {
const handleNav = (path) => {
Expand Down Expand Up @@ -40,7 +41,8 @@ const Home = () => {
</div>
</div>
<div className={styles.image}>
<img src="/images/Uniempleos.png" alt="Uniempleos" />
<h1>UniEmpleos</h1>
<LottieAnimation />
</div>
<div className={styles.info}>
<Infocontainer
Expand Down
51 changes: 16 additions & 35 deletions uniEmpleos/src/pages/Home/Home.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: flex;
flex-direction: column;
width: 100%;
background-color: #f5f5f5;
background-color: #fff;
}

.homeContent{
Expand All @@ -27,13 +27,24 @@
margin-right: 20px;
}

.image h1{
font-size: 80px;
font-family: 'Poppins', sans-serif;
font-weight: 700;
color: #a08ae5;
margin: 20px 0;
}

.image{
width: 100%;
}

.topcontent{
display: flex;
gap: 20px;
background-color: #fff;
align-items: center;
width: 100%;
border-bottom: 2px solid #ccc;
}

.image img{
Expand All @@ -49,28 +60,6 @@
background-color: transparent;
}

.wave{
width: 100%;
height: 180px;
}

.wave img {
width: 100%;
height: 100%;
object-fit: cover;
}

.waveup{
width: 100%;
height: 300px;
}

.waveup img {
width: 100%;
height: 100%;
object-fit: cover;
}

.infobutton{
width: 800px;
}
Expand All @@ -95,7 +84,7 @@ span.text{
display: flex;
flex-direction: column;
width: 100%;
background-color: #f5f5f5;
background-color: #fff;
}

.button{
Expand All @@ -111,16 +100,8 @@ span.text{
flex-direction: column;
}

.wave, .waveup{
height: 150px;

.infobutton{
width: 100%;
.image h1{
font-size: 40px;
}

.button{
flex-direction: column;
align-items: center;
}
}
}