Skip to content

Commit 90efe7f

Browse files
committed
Modifica background e estilo da página
1 parent 1f738d8 commit 90efe7f

File tree

5 files changed

+46
-2
lines changed

5 files changed

+46
-2
lines changed
928 KB
Binary file not shown.
1.71 MB
Binary file not shown.
121 KB
Loading

trybe-projetos/pixels-art/index.html

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,24 @@
77
<meta name="viewport" content="width=device-width, initial-scale=1.0">
88
<title>Document</title>
99
<link rel="stylesheet" href="style.css">
10+
<link rel="preconnect" href="https://fonts.googleapis.com">
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12+
<link href="https://fonts.googleapis.com/css2?family=VT323&display=swap" rel="stylesheet">
1013
</head>
1114

1215
<body>
13-
<h1 id="title">Paleta de Cores</h1>
16+
<video autoplay loop poster="files/backgroundImage.jpg" class="bg_video">
17+
<source src="files/background.webm" type="video/webm">
18+
<source src="files/background.mp4" type="video/mp4">
19+
</video>
20+
21+
<h1 id="title" class="main-font bg-title font-title">PIXEL ART - SUA ARTE EM 8 BIT</h1>
22+
23+
<div id="palette-color" class="bg-title">
24+
<div class="main-font horizontal">Escolha uma cor:</div>
25+
<input class="horizontal" type="color">
26+
<button id="clear-board">Limpar</button>
27+
</div>
1428

1529
<div id="color-palette">
1630
<div class="color color-black border horizontal size selected"></div>
@@ -19,7 +33,7 @@ <h1 id="title">Paleta de Cores</h1>
1933
<div class="color color-green border horizontal size"></div>
2034
</div>
2135

22-
<button id="clear-board">Limpar</button>
36+
2337
<input id="board-size" type="number" min="1" oninput="validity.valid ? this.save = value : value = this.save;">
2438
<button id="generate-board">VQV</button>
2539

trybe-projetos/pixels-art/style.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,34 @@
3939

4040
.horizontal {
4141
display: inline-block;
42+
}
43+
44+
/* BACKGROUND */
45+
.bg_video{
46+
position: fixed;
47+
right: 0;
48+
bottom: 0;
49+
min-width: 100%;
50+
min-height: 100%;
51+
width: auto;
52+
height: auto;
53+
z-index: -1000;
54+
background: url(files/backgroundImage.jpg) no-repeat;
55+
background-size: cover;
56+
}
57+
58+
.bg-title {
59+
background-color: rgb(169, 169, 169, 0.5);
60+
border-radius: 5em;
61+
}
62+
63+
/* FONTES */
64+
.main-font {
65+
font-family: 'vt323', Arial, Helvetica, sans-serif;
66+
font-size: x-large;
67+
}
68+
69+
.font-title{
70+
text-align: center;
71+
font-size: 3em;
4272
}

0 commit comments

Comments
 (0)