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

issue solved #36

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
255 changes: 38 additions & 217 deletions components.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,245 +5,66 @@
box-sizing: border-box;
font-family: Arial;
}

body {
/* background-image: url(bg.jpg);` */
background-color: #f0f0f0;
/* background-size: cover; */
/* height: 100vh; */
/* background-position: center; */
padding: 0 3%;
font-family: "Lato", sans-serif;
}

header {
width: 100%;
height: 100px;
display: flex;
justify-content: space-between;
align-items: center;
position: fixed;
z-index: 99;
box-shadow: 0 0 10px #0000;
background: rgba(0, 0, 0, 0.5);
}

#chk1 {
display: none;
font-family: Arial, sans-serif;
background-color: #f8f9fa;
color: #333;
}

i {
color: #fff;
cursor: pointer;
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
text-align: center;
}

header .logo {
flex: 1;
color: #fff;
margin-left: 50px;
text-transform: uppercase;
font-size: 15px;
}

header .search-box {
flex: 1;
position: relative;
}

.search-box input {
width: 100%;
height: 30px;
border: none;
outline: none;
background: #f2f2f2;
border-radius: 30px;
color: gray;
font-size: 14px;
text-align: center;
padding-left: 5px;
padding-right: 40px;
}

.search-box button {
cursor: pointer;
width: 30px;
height: 30px;
border-radius: 50%;
border: none;
position: absolute;
top: 0;
right: 5px;
transform: scale(0.9);
background: green;
}

header .menu {
font-size: 2.5em;
display: none;
}

.wrapper{
position: relative;
width: 100%;
height: 100%;
.container {
max-width: 1200px;
margin: auto;
padding: 20px;
display: flex;
align-content: center;
justify-content: center;
gap: 24px;
flex-wrap: wrap;
}

.card{
position: relative;
width: 325px;
height: 450px;
background: #000;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 5px 10px rgba(0,0,0,.2);
}

.poster{
position: relative;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}

.poster a img{
width: 100%;
height: 100%;
object-fit: cover;
transition: .3s;
.card {
border: 1px solid #ddd;
border-radius: 8px;
transition: transform 0.2s;
}

.poster::before{
content: '';
position: absolute;
bottom: -45%;
left: 0;
width: 100%;
height: 100%;
.card:hover {
transform: scale(1.05);
}

.details{
position: absolute;
bottom: -100%;
left: 0;
width: 100%;
height: auto;
padding: 1.5em 1.5em 2em;
background: #000a;
backdrop-filter: blur(16px) saturate(120%);
transition: .3s;
color: #fff;
z-index: 2;
}

.card:hover .details{
bottom: 0;
.card-title {
font-size: 1.25rem;
font-weight: bold;
}

.details h1,
.details h2{
font-weight: 700;
.card-text {
font-size: 1rem;
}

.details h1{
font-size: 1.5em;
margin-bottom: 5px;
code {
display: block;
background-color: #f8f9fa;
padding: 10px;
border-radius: 5px;
font-family: 'Courier New', Courier, monospace;
overflow-x: auto;
}

.details h2{
font-weight: 400;
font-size: 1em;
margin-left: 10px;
opacity: .6;
footer {
margin-top: 40px;
padding: 20px 0;
background-color: #000;
}

@media (max-width: 1000px) {
.search-box button {
position: absolute;
}
header ul {
position: fixed;
top: 100px;
right: -100%;
background: rgba(0, 0, 0, 0.5);
height: calc(100vh - 100px);
width: 50%;
flex-direction: column;
align-items: center;
transition: right 0.5s linear;
}

.card{
width: 250px;
height: 375px;
}
header .menu {
display: block;
width: 100px;
text-align: center;
}

#chk1:checked ~ ul {
right: 0;
}
footer h3 {
margin-bottom: 10px;
}

@media (max-width: 600px) {
header .logo {
font-size: 10px;
margin-left: 8px;
}

header ul {
width: 100%;
flex-wrap: wrap;
justify-content: center;
}

.card{
height: 325px;
width: 225px;
}
}
.navbar-brand {
color: #2a2a2a;
font-size: 160%;
font-weight: 600;
width: 60%;
}
.nav-item {
margin: 0 20px;
}

.row {
width: 100%;
}
@media only screen and (max-width: 600px) {
.navbar-brand {
width: 70%;
}
}
@media only screen and (max-width: 450px) {
.navbar-brand {
font-size: 140%;
}
footer .list-inline-item a {
color: #fff;
}

/* footer */

footer{
margin-top: 5%;
footer .list-inline-item a:hover {
text-decoration: underline;
}

/* cards css */

/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap'); */


Loading
Loading