diff --git a/alura.svg b/alura.svg deleted file mode 100644 index d16479c..0000000 --- a/alura.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/flix.png b/flix.png deleted file mode 100644 index 701b617..0000000 Binary files a/flix.png and /dev/null differ diff --git a/logo-imersao.svg b/logo-imersao.svg deleted file mode 100644 index aa154b6..0000000 --- a/logo-imersao.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/reset.css b/reset.css deleted file mode 100644 index af94440..0000000 --- a/reset.css +++ /dev/null @@ -1,48 +0,0 @@ -/* http://meyerweb.com/eric/tools/css/reset/ - v2.0 | 20110126 - License: none (public domain) -*/ - -html, body, div, span, applet, object, iframe, -h1, h2, h3, h4, h5, h6, p, blockquote, pre, -a, abbr, acronym, address, big, cite, code, -del, dfn, em, img, ins, kbd, q, s, samp, -small, strike, strong, sub, sup, tt, var, -b, u, i, center, -dl, dt, dd, ol, ul, li, -fieldset, form, label, legend, -table, caption, tbody, tfoot, thead, tr, th, td, -article, aside, canvas, details, embed, -figure, figcaption, footer, header, hgroup, -menu, nav, output, ruby, section, summary, -time, mark, audio, video { - margin: 0; - padding: 0; - border: 0; - font-size: 100%; - font: inherit; - vertical-align: baseline; -} -/* HTML5 display-role reset for older browsers */ -article, aside, details, figcaption, figure, -footer, header, hgroup, menu, nav, section { - display: block; -} -body { - line-height: 1; -} -ol, ul { - list-style: none; -} -blockquote, q { - quotes: none; -} -blockquote:before, blockquote:after, -q:before, q:after { - content: ''; - content: none; -} -table { - border-collapse: collapse; - border-spacing: 0; -} \ No newline at end of file diff --git a/script.js b/script.js deleted file mode 100644 index 5613662..0000000 --- a/script.js +++ /dev/null @@ -1,57 +0,0 @@ -function listarFilmes() { - var listaDeFilmes = document.getElementById("lista-de-filmes"); - - elemento = ""; - for (i=0; i < todosOsFilmes.length; i++) { - elemento += "
"; - elemento += "Capa do Filme"; - elemento += "

" + todosOsFilmes[i].nome + "

"; - elemento += "
" - } - listaDeFilmes.innerHTML = elemento; -} -function adicionarFilme () { - var nomeDoNovoFilme = document.getElementById("nome-do-novo-filme").value; - var urlDoNovoFilme = document.getElementById("url-do-novo-filme").value; - - if (nomeDoNovoFilme == "") { - Swal.fire({icon: 'error',title: 'Oops...',text: 'Você esqueceu o nome do filme!'}); - - } else if (urlDoNovoFilme.endsWith(".JPG") || urlDoNovoFilme.endsWith(".jpg") || urlDoNovoFilme.endsWith(".png") || urlDoNovoFilme.endsWith(".PNG")) { - todosOsFilmes.push(nomeDoNovoFilme = {nome:nomeDoNovoFilme, url:urlDoNovoFilme}); - Swal.fire({icon: 'success',title: 'Sucesso',text: 'Filme Adicionado!'}); - - document.getElementById("nome-do-novo-filme").value = ""; - document.getElementById("url-do-novo-filme").value = ""; - listarFilmes(); - } else { - Swal.fire({icon: 'error',title: 'Oops...',text: 'URL da Capa Inválida!'}); - } -} -var todosOsFilmes = [ - { - nome:'Interstellar', - url:'https://m.media-amazon.com/images/I/A1JVqNMI7UL._AC_SL1500_.jpg' - }, - { - nome:'Passageiros', - url:'http://br.web.img1.acsta.net/pictures/16/11/23/21/45/138805.jpg' - }, - { - nome:'John Wick 3 - Parabellum', - url:'https://br.web.img3.acsta.net/pictures/19/04/03/21/31/0977319.jpg' - }, - { - nome:'Avatar', - url:'https://i.pinimg.com/originals/5d/68/49/5d6849092aea2a932f2a7f201bea4a66.jpg' - }, - { - nome:'Warcraft', - url:'https://br.web.img2.acsta.net/pictures/16/03/30/18/58/593834.jpg' - }, - { - nome:"V de Vingança", - url:'https://br.web.img2.acsta.net/pictures/210/506/21050637_20131017235623573.jpg' - } -]; -listarFilmes(); \ No newline at end of file diff --git a/style.css b/style.css deleted file mode 100644 index c892344..0000000 --- a/style.css +++ /dev/null @@ -1,90 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=Inter&display=swap'); - -html { - position: relative; - min-height: 100%; -} -body { - font-family: 'Inter', sans-serif; - background: #000000; - color: #FFFFFF; - font-size: 16px; - margin-bottom: 100px; -} -main { - display: flex; - flex-direction: column; - margin: 0 auto 0 auto; -} -#div-adicionar-filme { - display: flex; - flex-direction: row; - margin: 20px auto 0 auto; -} -#alura-logo { - width: 150px; - height: 98px; - text-align: center; -} -#flix-logo { - width: 120px; - height: 80px; - text-align: center; - margin-right: 50px; -} -.input-adicionar-filme { - margin: 0 auto 3px auto; - width: 300px; - height: 25px; -} -#button-adicionar-filme { - margin: 0 auto 30px auto; - width: 200px; - height: 40px; - font-size: 20px; - font-weight: bold; - background: #e60914; - color: #FFFFFF; -} -#button-adicionar-filme:hover { - cursor: pointer; - background: #000000; - border: 1px solid #e60914; -} -#lista-de-filmes { - display: flex; - flex-wrap: wrap; - flex-direction: row; - margin: 0 auto 0 auto; - justify-content: center; - text-align: center; -} -#lista-de-filmes div { - padding: 5px; - margin: 0 5px 10px 0; - font-size: 14px; - padding: 5px;; -} -#lista-de-filmes h1 { - background: rgba(230, 9,20, 0.9); - padding: 5px; - border-radius: 0 0 20px 20px; -} -#lista-de-filmes img{ - width: 200px; - height: 280px; - border-radius: 20px 20px 0 0; - background: rgba(230, 9,20, 0.9); -} -footer { - position: absolute; - bottom: 0; - text-align: center; - width: 100%; - height: 50px; - background: rgba(0, 0, 0, 0.9); -} -footer img { - margin-top: 5px; - width: 200px; -} \ No newline at end of file