Skip to content

Commit

Permalink
Style Projekt Movie
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanChiosa committed Jan 29, 2024
1 parent 7cfb8ce commit cfe685e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 17 deletions.
28 changes: 17 additions & 11 deletions frontend/src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,23 @@
color: white;
}

@media screen and (min-width: 1025px) {
.movie-poster {
height: 300px;
}

.movie-detail {
flex-direction: row;
align-items: center;
top: 30px;
}
}
/*@media screen and (min-width: 1025px) {*/
/* .movie-poster {*/
/* height: 300px;*/
/* }*/

/* .movie-detail {*/
/* flex-direction: row;*/
/* align-items: center;*/
/* top: 30px;*/
/* }*/
/* !*.movie-poster {*!*/
/* !* height: 300px;*!*/
/* !* border: 1px solid gold;*!*/
/* !* border-radius: 10px;*!*/
/* !* overflow: hidden;*!*/
/* !*}*!*/
/*}*/



2 changes: 1 addition & 1 deletion frontend/src/components/addMovie/AddMovieForm.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.add-new-movie {
padding-top: 10px;
margin-bottom: 0;
margin: 40px;
}

.form {
Expand Down
7 changes: 7 additions & 0 deletions frontend/src/components/header/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,15 @@ button:hover {
.reviews {
margin: 20px;
width: 100%;
flex-direction: column;
padding: 10px;
}
img {
width: 100%;
flex-direction: column;
}


.navbar-collapse {
transform: translateX(-100%);
transition: transform 0.3s ease-in-out;
Expand Down
5 changes: 2 additions & 3 deletions frontend/src/components/header/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const Header: React.FC = () => {

const toggleMenu = () => {
setIsOpen(!isOpen);
console.log("Menu is now ", isOpen);
};
const handleNavLinkClick = () => {
if (isOpen) {
toggleMenu();
}
};

return (
<Navbar className="navbar" bg="dark" variant="dark" expand="lg">
<Navbar className="navbar" bg="dark" variant="dark" expand="lg" expanded={isOpen}>
<Container className="fluid">
<Navbar.Brand href="/" className="movie-app" style={{color: 'gold'}}>
<FontAwesomeIcon icon={faVideoSlash}/>Movie-app
Expand All @@ -33,7 +33,6 @@ const Header: React.FC = () => {
<NavLink className="nav-link" to="/add" onClick={handleNavLinkClick}>Add new Movies</NavLink>
<NavLink className="nav-link" to="/movie-list" onClick={handleNavLinkClick}>Movie List</NavLink>
</Nav>
{/* Weitere Elemente */}
</Navbar.Collapse>
</Container>
</Navbar>
Expand Down
18 changes: 16 additions & 2 deletions frontend/src/components/hero/Hero.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,20 @@
background-color: black;
}

/* Tablets und kleine Desktops */
/*@media screen and (min-width: 768px) {*/
/* .movie-card-container {*/
/* height: 200px;*/
/* }*/
/*}*/

/* Große Desktops */
/*@media screen and (min-width: 1025px) {*/
/* .movie-card-container {*/
/* height: 630px; !* der ursprünglich festgelegte Wert für große Bildschirme *!*/
/* }*/
/*}*/

.movie-poster {
height: 300px;
border: 1px solid gold;
Expand All @@ -26,8 +40,8 @@
}

.movie-card-container {
/*height: auto;*/
height: 630px;
/*height: 100%;*/
height: 818px;
background-color: black;
}

Expand Down

0 comments on commit cfe685e

Please sign in to comment.