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

Working on Css #19

Closed
wants to merge 1 commit into from
Closed
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
61 changes: 47 additions & 14 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@

.hero-image {

height: 50%;
background-position: center;
background-repeat: no-repeat;
Expand All @@ -15,7 +13,6 @@
left: 50%;
transform: translate(-50%, -50%);
color: white;

}

.hero-text button {
Expand All @@ -33,17 +30,18 @@
background-color: blue;
color: white;
}
.modal-header, h4, .close {
.modal-header,
h4,
.close {
background-color: #5cb85c;
color:white !important;
color: white !important;
text-align: center;
font-size: 30px;
}

.img{
width:100%;
height:50%

.img {
width: 100%;
height: 50%;
}
.fixarRodape {
width: 100%;
Expand All @@ -68,11 +66,46 @@
color: white;
}

.list-group-flush{




.hero-image-buy {
height: 40%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
.hero-text-buy {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: rgb(0, 51, 102);
}
.img-buy-house {
width: 40%;
height: 20%;
}

.hero-image-rent {
width: 60%;
}

.hero-text-rent {
text-align: center;
position: absolute;
top: 30%;
left: 80%;
transform: translate(-50%, -50%);
color: rgb(0, 51, 102);
}
.form-control-nav {
position: absolute;
top: 50%;
width: 100%;
}
.textAd{
text-align: center;
color: rgb(0, 51, 102);
padding: 20px;

}
Binary file added src/Img/buyphoto.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/Img/rentphoto.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/Img/rentpic.jpeg
Binary file not shown.
15 changes: 15 additions & 0 deletions src/StyleCss/Login.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,18 @@ justify-content: flex-end;
margin-right: 10px;
}

.btn-login{
position: absolute;
top: 15%;
left: 90%;
cursor: pointer;
border: 0;
border-radius: 2px;
font-weight: 700;
margin: 0 10px;
width: 100px;
height: 55px;
padding: 5px 0;
box-shadow: 0 0 10px rgba(0, 51, 102);
transition: 0.2s;
}
7 changes: 5 additions & 2 deletions src/components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,19 @@ import { FaGithub } from "react-icons/fa";

const Footer = () => {
return (
<footer className="fixarRodape">
<footer className="fixarRodape text-center justify-content:space-between">
<div ClassName="social">
<a href="https://github.com/keniakfa">
<a href="https://github.com/keniakfa" >
<FaGithub color="#fff9c4" size="35" />
</a>
<a href="https://github.com/Henrique-Portela">
<FaGithub color="#fff9c4" size="35" />
</a>
</div>
<p className="copyright">Made by Kênia Araújo and Henrique Portela</p>
<p className= "data" color="white">
&copy;{new Date().getFullYear()} All rights reserved
</p>
</footer>
);
};
Expand Down
9 changes: 5 additions & 4 deletions src/components/HouseDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ import AuthContext from "../context/AuthContext";


function HouseDetail(props) {
const [house, setHouse] = useState({});
const [house, setHouse] = useState();
const { id } = useParams();


const token = localStorage.getItem('token')
const headers = {
'Authorization': 'Bearer ' + token
Expand All @@ -20,7 +21,7 @@ function HouseDetail(props) {
async function fetchHouse() {
try {
const response = await axios.get(
`${process.env.REACT_APP_API_URL}/viewhouse/${id}`,{headers:headers}
`${process.env.REACT_APP_API_URL}/viewhouse/${id}`,{headers}
)
console.log(response)
setHouse(response.data)
Expand All @@ -30,7 +31,7 @@ function HouseDetail(props) {
}
}
fetchHouse();
}, [id,headers]);
}, [id]);



Expand All @@ -47,7 +48,7 @@ function HouseDetail(props) {
<Card style={{ width: "15rem" }}>
<Card.Img style= {{height: "19np8.81px" }} variant="top" src={house.picture} />
<div className="card-title">
<h3>{house.address}</h3>
<h3>{house.address.street}</h3>
</div>
<ListGroup className="list-group-flush">

Expand Down
58 changes: 44 additions & 14 deletions src/components/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,55 @@ import Nav from "react-bootstrap/Nav";
import Navbar from "react-bootstrap/Navbar";

function NavBar() {

return (
<nav className="nav flex space-x-10">
<nav className="navbar navbar-expand-lg navbar-light bg-light">
<a className="navbar-brand" href="#">
Navbar
</a>
<button
class="navbar-toggler"
type="button"
data-toggle="collapse"
data-target="#navbarNavDropdown"
aria-controls="navbarNavDropdown"
aria-expanded="false"
aria-label="Toggle navigation"
>
<span className="navbar-toggler-icon"></span>
</button>
<div className="collapse navbar-collapse" id="navbarNavDropdown">
<ul className="navbar-nav">
<li className="nav-item active">
<a className="nav-link" href="/">
Home<span class="sr-only">(current)</span>
</a>
</li>
<li className="nav-item">
<a className="nav-link" href="/buyhouse">
Buy
</a>
</li>

<Nav.Link href="/">Home</Nav.Link>
<Nav.Link href="/buyhouse">Buy</Nav.Link>
<Nav.Link href="/renthouse">Rent</Nav.Link>



<Nav.Link href="/login">Login</Nav.Link>
<Nav.Link href="/adcreate">AdCreate</Nav.Link>
<li className="nav-item">
<a className="nav-link" href="/renthouse">
Rent
</a>
</li>



<li class="nav-item">
<a className="nav-link" href="/adcreate">
Advertise
</a>
</li>
<button className="btn-login">
<a className="nav-link" href="/login">
Login
</a>
</button>
</ul>
</div>
</nav>
);
}

export default NavBar;


Loading