Skip to content

Commit

Permalink
fix: staticfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
michelebswm committed Oct 11, 2023
1 parent 3e3e198 commit 7bc6060
Show file tree
Hide file tree
Showing 20 changed files with 1,077 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: python manage.py migrate && gunicorn --timeout 120 hashflix.wsgi --log-file -
web: python manage.py migrate && gunicorn hashflix.wsgi --log-file -
171 changes: 170 additions & 1 deletion staticfiles/css/style_base.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,172 @@
.full {
* {
padding: 0;
margin: 0;
box-sizing: border-box;
text-decoration: none;
}

a {
color: inherit;
text-decoration: none;
}

.body {
background-color: #000;
color: #f5f4f1;
font-family: "Poppins", sans-serif;
}
/* Style navbar */
.navbar {
position: fixed;
padding: 1rem;
width: 100%;
display: flex;
justify-content: space-between;
background-color: transparent;
align-items: center;
z-index: 50;
}

.group-nav {
display: flex;
align-items: center;
}

.nav-btn {
padding: 0.1rem 0.4rem;
border: 1px solid rgb(255, 0, 0);
border-radius: 0.3rem;
margin: 0.3rem;
background-color: rgb(255, 0, 0);
transition: 1.02s;
color: #f5f4f1;
}

.nav-btn:hover {
animation: pulse 1s infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
}
50% {
transform: scale(1.2);
}
100% {
transform: scale(1);
}
}

.nav-search {
padding: 0.5rem;
}

input[type="search"] {
height: 1.5rem;
border-radius: 0.4rem;
padding: 0rem 0.3rem;
color: rgb(15, 15, 15);
}


.nav-submit,
.invisible {
display: none;
}

.navbar-bg {
background-color: rgb(0, 0, 0, 0.95);
}

.hamburger{
display: none;
}

.hamburger {
display: none;
border: none;
background: none;
border-top: 3px solid #fff; /* Cria o primeiro traço do menu hamburger */
cursor: pointer;
}
/* Criando os outros 2 traços do menu hamburger */
.hamburger::after,
.hamburger::before {
content: " ";
display: block;
width: 30px;
height: 3px;
background: #fff;
margin-top: 5px;
position: relative;
transition: 0.3s;
}

@media (max-width: 600px) {

.hamburger {
display: block;
z-index: 1; /* Para ficar acima */
}

.group-nav {
position: fixed;
top: 0;
left: 0;
width: 100vw; /* Equivale a 100% da largura da tela*/
height: 100vh; /* Equivale a 100% da altura da tela*/
background: #3f0e0e;
clip-path: circle(
100px at 90% -15%
); /* circulo de 100px deixando 90% no eixo x e 15% negativo no eixo y*/
transition: 1s ease-out;

flex-direction: column;
justify-content: space-around;
align-items: center;
gap: 0;
pointer-events: none; /* Para o user nao clicar em algo que não está aparecendo na tela*/
}

.group-nav a {
font-size: 24px;
opacity: 0;
}


/* Estilos ativos */

.navbar.active .group-nav {
clip-path: circle(1500px at 90% -15%);
pointer-events: all;
}

.navbar.active .group-nav a {
opacity: 1;
}

.navbar.active .hamburger {
position: fixed;
top: 26px;
right: 16px;
border-top-color: transparent;
}

.navbar.active .hamburger::before {
transform: rotate(135deg);
}

.navbar.active .hamburger::after {
transform: rotate(-135deg);
top: -7px;
}

.nav-btn{
background-color: inherit;
border: none;
}

.nav-btn a{
font-size: 1rem;
}
}
81 changes: 81 additions & 0 deletions staticfiles/css/style_carousel.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
.container {
position: relative;
padding: 1rem;
max-width: 1880px;
margin: 0 auto;
}

.gallery-wrapper {
overflow-x: auto; /* Faz a rolagem ficar no elemento div gallery-wrapper que é pai da gallery, ou seja se o gallery for maior a barra de rolagem é exibida*/
}

.gallery {
display: flex;
flex-flow: row nowrap;
gap: 0.5rem;
}

.arrow-left3,
.arrow-left2,
.arrow-left,
.arrow-right {
position: absolute;
top: 0;
left: 0;
right: auto;
bottom: 0;
font-size: 1rem;
line-height: 250px;
width: 40px;
text-align: center;
color: #fff;
cursor: pointer;
border: none;
background: linear-gradient(to left, transparent 0%, rgb(201, 77, 77) 200%);
opacity: 0.3;
transition: all 200ms ease-in-out;
}

.arrow-right {
left: auto;
right: 0;
background: linear-gradient(
to right,
transparent 0%,
rgb(201, 77, 77) 200%
);
}

.arrow-left3:hover,
.arrow-left2:hover,
.arrow-right:hover,
.arrow-left:hover {
opacity: 1;
}

.item3,
.item2,
.item {
height: 15rem;
width: auto;
flex-shrink: 0; /* Para não diminuir para caber*/
opacity: 0.6;
transition: all 200ms ease-in-out;
}

.current-item3,
.current-item2,
.current-item {
opacity: 1;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.gallery-wrapper::-webkit-scrollbar {
display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.gallery-wrapper {
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}
116 changes: 116 additions & 0 deletions staticfiles/css/style_criarconta.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
@import url("https://fonts.googleapis.com/css2?family=Montserrat&family=Roboto:wght@500&display=swap");

.header {
min-height: 100vh;
position: relative; /* Adicione uma posição relativa para que possamos posicionar o pseudo-elemento */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}

.header::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("../images/background_netflix.jpg");
background-repeat: no-repeat;
background-blend-mode: overlay;
background-size: cover; /* Ajuste para cobrir todo o cabeçalho */
background-color: rgb(0, 0, 0, 0.7);
opacity: 0.7; /* Opacidade para a imagem de fundo */
z-index: -1; /* Coloque o pseudo-elemento atrás do conteúdo */
}

.content-form {
width: 30rem;
height: auto;
background-color: rgb(0, 0, 0, 0.5);
display: flex;
flex-direction: column;
}

.form-criarconta {
display: flex;
flex-direction: column;
justify-content: center;
flex-wrap: wrap;
padding: 2rem 4rem;
gap: 1rem;
}

.title-form {
font-family: "Montserrat", sans-serif;
color: rgb(255, 255, 255);
font: 2rem bold;
margin: auto;
padding-top: 2rem;
}

.form-criarconta input {
height: 3rem;
padding-left: 0.8rem;
border-radius: 0.3rem;
outline: none;
border: 1px rgb(204, 204, 204);
background-color: #313235;
color: hsl(0, 0%, 100%);
}

.form-criarconta button {
height: 3rem;
border-radius: 0.3rem;
outline: none;
margin: auto;
width: 90%;
background-color: rgb(255, 0, 0);
border: transparent;
color: hsl(0, 0%, 100%);
text-align: center;
font-weight: bold;
transition: background-color -3s ease;
}

.form-criarconta button:hover {
background-color: rgb(189, 8, 8);
cursor: pointer;
}

.form-criarconta ul {
list-style-type: none; /* Retira o simbolo da lista */
}

.form-group {
display: flex;
flex-direction: column;
justify-content: center;
}


.is-invalid {
border: 1px solid rgb(255, 0, 0) !important;
}

.invalid-feedback {
outline: none;
font-size: 0.8rem;
color: rgb(255, 0, 0);
}

@media (max-width: 501px) {
.content-form {
width: 95%;
}

.form-criarconta {
padding-inline:1rem;
}

.form-criarconta small{
text-align: center;
font-size: 0.8rem;
}
}
Loading

0 comments on commit 7bc6060

Please sign in to comment.