Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/png" href="/movie.png" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Flixster</title>
</head>
Expand Down
8 changes: 6 additions & 2 deletions src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
align-items: center;
justify-content: space-evenly;
color: white;
padding: 20px;
padding: 1.5rem;

position: fixed;
width: 100%;
z-index: 1000;
}

@media (max-width: 600px) {
Expand All @@ -19,7 +23,7 @@

.search-bar {
flex-direction: column;
gap: 10px;
gap: 1rem;
}

.search-bar form {
Expand Down
5 changes: 4 additions & 1 deletion src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import './App.css'
import MovieList from './MovieList'
import SearchForm from './SearchForm'
import SortForm from './SortForm'

const App = () => {
return (
<div className="App">
<header className="App-header">
<h1>Flixster</h1>
inp
<SearchForm/>
<SortForm/>
</header>
<MovieList />
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Glad to see that you have created a modularized component

</div>
Expand Down
14 changes: 10 additions & 4 deletions src/MovieCard.css
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
.movie-card {
width: 200px;
margin: 1rem;
border-radius: 8px;
border-radius: 0.8rem;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
transition: transform 0.3s ease;
transition: transform 0.3s ease,
box-shadow 0.3s ease;
background-color: #1a1a1a;
cursor: pointer;
/* z-index: */
}

.movie-card:hover {
transform: scale(1.03);
box-shadow: 0rem 0.15rem 0.9rem rgba(229, 9, 20);

}

.movie-poster {
Expand All @@ -34,12 +38,14 @@
.movie-vote {
display: flex;
align-items: center;
/* text-align: center; */
}

.vote-average {
background-color: #ffd700;
background-color: #fa5252;
color: black;
padding: 0.2rem 0.5rem;
margin: 0.05rem auto;
border-radius: 4px;
font-weight: bold;
font-size: 0.9rem;
Expand Down
7 changes: 6 additions & 1 deletion src/MovieList.css
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
.movie-list-container {
padding: 20px;
padding: 11rem 3.5rem;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should use these constant values from this series of numbers i.e. 2, 4, 8, 12,16, 20, 24 to follow better practice

}

.section-title {
font-size: 1.8rem;
margin-bottom: 20px;
color: #fff;
text-align: center;
text-transform: uppercase;
letter-spacing: 0.15rem;
word-spacing: 0.5rem;
/* color: rgb(229, 9, 20) */
color: #fa5252;
}

.movie-list {
Expand Down
74 changes: 74 additions & 0 deletions src/SearchForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.search-container
{
width: 100%;


Comment on lines +4 to +13
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove empty lines and format the code across all files

display: flex;
align-items: center;
justify-content: center;
height: 7rem;
/* gap: 1rem; */
}

.search-bar[type="text"]
{

border: 0.1rem solid rgba(250, 82, 82, 0.6);
border-right: none;
width: 85rem;

padding: 1rem 1rem;
/* margin-right: 2rem; */
border-radius: 8rem 0rem 0rem 8rem;
background-color: #212529;
}

.search-bar::placeholder
{
padding-left: 2rem;
color: rgb(250, 82, 82, 0.6);
/* background-color: #868e96; */
}

.search-bar::after
{

}


.search-button
{
height: 4.05rem;
border: 0.1rem solid rgba(250, 82, 82, 0.6);
border-radius: 0rem 8rem 8rem 0rem;

border-left: none;
background-color: #1a1e21;
color: rgb(250, 82, 82, 0.8);
/* padding: 1.2rem 2.4rem; */
padding: 0.5rem 1rem;
cursor: pointer;
place-content: center;

margin-right: 2.5rem;
}

/* .search-button:hover
{
background-color: 373b3e;
} */

.clear-button
{
height: 4.05rem;
border: 0.1rem solid rgba(250, 82, 82, 0.6);
border-radius: 8rem;


background-color: #1a1e21;
color: rgb(250, 82, 82, 0.8);
padding: 0 1.5rem;

cursor: pointer;
place-content: center;
}
16 changes: 16 additions & 0 deletions src/SearchForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import './SearchForm.css';

const SearchForm = () =>
{
return(
<div className="search-form">
<form className="search-container">
<input className='search-bar' type="text" placeholder="Search for movies" />
<button className="search-button" type="submit">Search</button>
<button className="clear-button" type="clear">Clear</button>
</form>
</div>
)
}

export default SearchForm;
16 changes: 16 additions & 0 deletions src/SortForm.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.sort-button

{
height: 4.05rem;

border: 0.1rem solid rgba(250, 82, 82, 0.6);
border-radius: 1rem;


background-color: #1a1e21;
color: rgb(250, 82, 82, 0.8);
padding: 0 3.5rem;

cursor: pointer;
place-content: center;
}
14 changes: 14 additions & 0 deletions src/SortForm.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import './SortForm.css'

const SortForm = () =>
{
return (
<div className = "SortForm">
<button className='sort-button'>
Sort By: &darr;
</button>
</div>
)
}

export default SortForm
26 changes: 22 additions & 4 deletions src/index.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #b4b1b1;
font-family: 'Rubik', sans-serif;
background-color: #212529;

}


*
{
/* color: rgb(229, 9, 20); */
color: #fa5252;
font-size: 1.6rem;
box-sizing: border-box;
}


button {
background-color: #282c34;
color: white;
color: #fa5252;
cursor: pointer;
font-size: 16px;
font-size: 1.6rem;
font-weight: bold;
transition: background-color 0.3s ease;
}
Expand All @@ -17,3 +28,10 @@ button:hover {
background-color: #777;
color: white;
}



Comment thread
jasynj marked this conversation as resolved.
Outdated
html
{
font-size: 62.5%;
}