Skip to content

Commit 2e2122e

Browse files
committed
Added Style
1 parent 3be24b6 commit 2e2122e

File tree

1 file changed

+110
-0
lines changed

1 file changed

+110
-0
lines changed

Movie-Search-App/style.css

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
@import url("https://fonts.googleapis.com/css2?family=Benne&display=swap");
2+
* {
3+
box-sizing: border-box;
4+
}
5+
:root {
6+
--primary-color: #22254b;
7+
--secondary-color: #373b69;
8+
}
9+
body {
10+
background-color: var(--primary-color);
11+
font-family: "Benne", serif;
12+
margin: 0;
13+
}
14+
15+
.logo {
16+
font-family: inherit;
17+
}
18+
header {
19+
padding: 1rem;
20+
display: flex;
21+
justify-content: space-evenly;
22+
background-color: var(--secondary-color);
23+
}
24+
.search {
25+
background-color: transparent;
26+
border: 2px solid var(--primary-color);
27+
padding: 0.5rem 1rem;
28+
border-radius: 50px;
29+
font-size: 1rem;
30+
color: #fff;
31+
font-family: inherit;
32+
margin-top: 10px;
33+
}
34+
.search:focus {
35+
outline: 0;
36+
background-color: var(--primary-color);
37+
}
38+
.search::placeholder {
39+
color: #7378c5;
40+
}
41+
main,
42+
#recommendations {
43+
display: flex;
44+
flex-wrap: wrap;
45+
justify-content: center;
46+
}
47+
.movie {
48+
width: 300px;
49+
margin: 1rem;
50+
border-radius: 3px;
51+
box-shadow: 0.2px 4px 5px rgba(0, 0, 0, 1);
52+
background-color: var(--secondary-color);
53+
position: relative;
54+
overflow: hidden;
55+
}
56+
.movie img {
57+
width: 100%;
58+
}
59+
.movie-info {
60+
color: #eee;
61+
display: flex;
62+
align-items: center;
63+
justify-content: space-between;
64+
padding: 0.5rem 1rem 1rem;
65+
letter-spacing: 0.5px;
66+
}
67+
.movie-info h3 {
68+
margin-top: 0;
69+
}
70+
.movie-info span {
71+
background-color: var(--primary-color);
72+
padding: 0.25rem 0.5rem;
73+
border-radius: 3px;
74+
font-weight: bold;
75+
}
76+
.movie-info span.green {
77+
color: lightgreen;
78+
}
79+
.movie-info span.orange {
80+
color: orange;
81+
}
82+
.movie-info span.red {
83+
color: red;
84+
}
85+
.overview {
86+
position: absolute;
87+
left: 0;
88+
right: 0;
89+
bottom: 0;
90+
background-color: #fff;
91+
padding: 1rem;
92+
max-height: 100%;
93+
transform: translateY(101%);
94+
transition: transform 0.3s ease-in-out;
95+
}
96+
.movie:hover .overview {
97+
transform: translateY(0);
98+
}
99+
.footer {
100+
padding: 0.4rem !important;
101+
margin: 10px;
102+
border-color: inherit;
103+
border-style: solid;
104+
border-width: 0;
105+
background-color: #212529 !important;
106+
}
107+
.footer h4 {
108+
color: white;
109+
text-align: center;
110+
}

0 commit comments

Comments
 (0)