├── projeto
├── css
│ └── styles.css
├── img
│ ├── tenis1.jpg
│ ├── tenis2.jpg
│ ├── tenis3.jpg
│ ├── tenis4.jpg
│ ├── tenis5.jpg
│ └── tenis6.jpg
└── index.html
└── teoria
├── index.html
└── styles.css
/projeto/css/styles.css:
--------------------------------------------------------------------------------
1 | * {
2 | padding: 0;
3 | margin: 0;
4 | font-family: Helvetica;
5 | box-sizing: border-box;
6 | }
7 |
8 | /* Cabeçalho */
9 | header {
10 | background-color: #3db36b;
11 | text-align: center;
12 | padding: 15px;
13 | color: #fff;
14 | }
15 |
16 | /* Grid de produtos */
17 | .container {
18 | background-color: #eee;
19 | min-height: 60vh;
20 | padding: 50px;
21 | }
22 |
23 | .products-container {
24 | max-width: 1200px;
25 | margin: 0 auto;
26 | }
27 |
28 | .card {
29 | width: 31%;
30 | margin: 1% 1%;
31 | display: inline-block;
32 | padding: 15px;
33 | }
34 |
35 | .product-image {
36 | height: 300px;
37 | width: 100%;
38 | margin-bottom: 10px;
39 | background-position: center;
40 | background-size: cover;
41 | }
42 |
43 | #img-1 {
44 | background-image: url('../img/tenis1.jpg');
45 | }
46 |
47 | #img-2 {
48 | background-image: url('../img/tenis2.jpg');
49 | }
50 |
51 | #img-3 {
52 | background-image: url('../img/tenis3.jpg');
53 | }
54 |
55 | #img-4 {
56 | background-image: url('../img/tenis4.jpg');
57 | }
58 |
59 | #img-5 {
60 | background-image: url('../img/tenis5.jpg');
61 | }
62 |
63 | #img-6 {
64 | background-image: url('../img/tenis6.jpg');
65 | }
66 |
67 | h3 {
68 | margin-bottom: 10px;
69 | color: #3db36b;
70 | font-size: 24px;
71 | }
72 |
73 | .card p {
74 | margin-bottom: 10px;
75 | }
76 |
77 | .bold {
78 | font-weight: bold;
79 | }
80 |
81 | .btn {
82 | display: block;
83 | width: 100%;
84 | text-align: center;
85 | text-transform: uppercase;
86 | text-decoration: none;
87 | background-color: #3db36b;
88 | color: #fff;
89 | padding: 15px;
90 | border-radius: 5px;
91 | }
92 |
93 | .btn:hover {
94 | background-color: #0f642f;
95 | }
96 |
97 | /* Rodapé */
98 | footer {
99 | background-color: #3db36b;
100 | text-align: center;
101 | padding: 80px;
102 | color: #fff;
103 | }
104 |
--------------------------------------------------------------------------------
/projeto/img/tenis1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis1.jpg
--------------------------------------------------------------------------------
/projeto/img/tenis2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis2.jpg
--------------------------------------------------------------------------------
/projeto/img/tenis3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis3.jpg
--------------------------------------------------------------------------------
/projeto/img/tenis4.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis4.jpg
--------------------------------------------------------------------------------
/projeto/img/tenis5.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis5.jpg
--------------------------------------------------------------------------------
/projeto/img/tenis6.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/matheusbattisti/css_fundamentos/be57d5a38ddfa67c355d1ef2888aed4274746907/projeto/img/tenis6.jpg
--------------------------------------------------------------------------------
/projeto/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Galeria dos Sneakers
8 |
9 |
10 |
11 |
12 |
13 | Galeria dos Sneakers
14 |
15 |
16 |
17 |
18 |
19 |
20 |
Sneaker 1
21 |
Este sneaker é muito bom pelo fato de...
22 |
23 | R$
24 | 129,99
25 |
26 |
Comprar
27 |
28 |
29 |
30 |
Sneaker 2
31 |
Este sneaker é muito bom pelo fato de...
32 |
33 | R$
34 | 129,99
35 |
36 |
Comprar
37 |
38 |
39 |
40 |
Sneaker 3
41 |
Este sneaker é muito bom pelo fato de...
42 |
43 | R$
44 | 129,99
45 |
46 |
Comprar
47 |
48 |
49 |
50 |
Sneaker 4
51 |
Este sneaker é muito bom pelo fato de...
52 |
53 | R$
54 | 129,99
55 |
56 |
Comprar
57 |
58 |
59 |
60 |
Sneaker 5
61 |
Este sneaker é muito bom pelo fato de...
62 |
63 | R$
64 | 129,99
65 |
66 |
Comprar
67 |
68 |
69 |
70 |
Sneaker 6
71 |
Este sneaker é muito bom pelo fato de...
72 |
73 | R$
74 | 129,99
75 |
76 |
Comprar
77 |
78 |
79 |
80 |
81 |
87 |
88 |
89 |
--------------------------------------------------------------------------------
/teoria/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Curso de CSS
8 |
17 |
18 |
19 |
20 | Título da página
21 | Meu parágrafo!
22 | Segundo parágrafo
23 | Terceiro parágrafo
24 |
25 | Rosa
26 | Hexadecimal
27 | RGB
28 |
29 | Fonte Serifada
30 | Sem Serifa
31 | Fonte Mono Espaçada
32 |
33 | Esta fonte está gigante
34 | Esta fonte está pequena
35 | Texto em negrito!
36 |
37 |
38 |
Este é o nosso box model!
39 |
40 |
41 | Texto ao centro
42 | este texto vai ficar em caixa alta
43 | Já Este Ficará TODO em caixa baixa
44 |
45 | Texto com espaçamento de linhas e letras
46 | Texto com espaçamento de linhas e letras
47 |
48 |
51 |
54 |
57 |
58 | Clique em mim
59 |
60 |
61 | - Lista
62 | - Com
63 | - Bullet
64 |
65 |
66 | - Lista
67 | - Sem
68 | - Bullet
69 |
70 |
71 |
72 |
73 | Mais um link
74 | Mais outro link
75 |
76 |
77 | Este elemento vai ficar fixo na tela
78 |
79 |
80 |
Este terá estilo
81 |
Este não
82 |
Este não
83 |
Este não
84 |
85 |
86 | Esta frase começa com uma letra diferente!
87 |
88 | Meu título 1
89 | Meu título 2
90 | Meu título 3
91 |
92 |
93 |
--------------------------------------------------------------------------------
/teoria/styles.css:
--------------------------------------------------------------------------------
1 | /* externo */
2 | body {
3 | padding: 20px;
4 | }
5 |
6 | p {
7 | color: green;
8 | }
9 |
10 | /* classe e id */
11 | .meu-paragrafo {
12 | background-color: black;
13 | }
14 |
15 | #titulo-principal {
16 | background-color: yellow;
17 | color: black;
18 | padding: 10px;
19 | font-family: Helvetica;
20 | }
21 |
22 | /* todos os eelementos e lista */
23 | * {
24 | font-family: Arial;
25 | }
26 |
27 | p,
28 | h1 {
29 | border-bottom: 1px solid red;
30 | }
31 |
32 | /* Cores */
33 | .nome-da-cor {
34 | color: pink;
35 | }
36 |
37 | .hexa {
38 | color: #332245;
39 | background-color: #342299;
40 | }
41 |
42 | .rgb {
43 | color: rgb(200, 100, 25);
44 | }
45 |
46 | /* fontes */
47 | .serifada {
48 | font-family: Georgia;
49 | }
50 |
51 | .sem-serifa {
52 | font-family: Helvetica;
53 | }
54 |
55 | .mono-espacada {
56 | font-family: 'Courier New';
57 | }
58 |
59 | /* size e weight */
60 | .tamanho-fonte-grande {
61 | font-size: 30px;
62 | }
63 |
64 | .tamanho-fonte-pequeno {
65 | font-size: 8px;
66 | }
67 |
68 | .peso-fonte {
69 | font-weight: 700;
70 | }
71 |
72 | /* box model */
73 | .box-model p {
74 | color: #000;
75 | border: none;
76 | }
77 |
78 | /* Recurso de box model no CSS */
79 | .box-model {
80 | width: 200px;
81 | height: 100px;
82 | border: 1px solid blue;
83 | padding: 20px 40px;
84 | margin: 15px;
85 | }
86 |
87 | /* props de texto */
88 | .alinhamento {
89 | text-align: center;
90 | }
91 |
92 | .transform-maiuscula {
93 | text-transform: uppercase;
94 | }
95 |
96 | .transform-minuscula {
97 | text-transform: lowercase;
98 | }
99 |
100 | /* Espaçamento de letras e linha */
101 | .espacamento-texto {
102 | line-height: 30px;
103 | letter-spacing: 4px;
104 | width: 150px;
105 | }
106 |
107 | /* estilo em links */
108 | .decoration {
109 | text-decoration: none;
110 | }
111 |
112 | .visitado:visited {
113 | color: orange;
114 | }
115 |
116 | .estilo-hover:hover {
117 | background-color: #1292ae;
118 | }
119 |
120 | /* link button */
121 | .btn {
122 | background-color: #34ae43;
123 | border: 3px solid #234966;
124 | border-radius: 5px;
125 | color: #fff;
126 | text-decoration: none;
127 | padding: 12px 7px;
128 | display: block;
129 | width: 120px;
130 | text-align: center;
131 | margin: 20px;
132 | }
133 |
134 | /* Listas */
135 | .sem-estilo {
136 | list-style: none;
137 | }
138 |
139 | /* display */
140 | .inline {
141 | width: 50px;
142 | height: 50px;
143 | background-color: teal;
144 | margin: 5px;
145 | display: inline-block;
146 | }
147 |
148 | .bloco {
149 | display: block;
150 | }
151 |
152 | /* position fixed */
153 | .elemento-fixo {
154 | position: fixed;
155 | top: 0;
156 | left: 0;
157 | width: 100%;
158 | padding: 15px;
159 | text-align: center;
160 | background-color: #1292ae;
161 | border-bottom: 2px solid #342299;
162 | color: #fff;
163 | text-align: center;
164 | }
165 |
166 | /* pseudo class */
167 | .primeiro-elemento p:first-child {
168 | color: purple;
169 | font-weight: bold;
170 | }
171 |
172 | /* pseudo elementos */
173 | .primeira-letra::first-letter {
174 | font-size: 25px;
175 | color: blue;
176 | background-color: red;
177 | padding: 2px;
178 | }
179 |
180 | /* especifidade */
181 | h2 {
182 | color: red;
183 | }
184 |
185 | .titulo {
186 | color: green;
187 | }
188 |
189 | #meu-titulo-preferido {
190 | color: blue;
191 | }
192 |
193 | /* important */
194 | h2 {
195 | color: purple !important;
196 | }
197 |
--------------------------------------------------------------------------------