Browse Source

css complete

master
Ken Schaefer 2 years ago
parent
commit
6e436a5b3a
  1. 33
      css-complete/sec2/index.html
  2. 7
      css-complete/sec2/instructions.txt
  3. 12
      css-complete/sec2/main.css
  4. BIN
      css-complete/sec3/favicon.png
  5. 26
      css-complete/sec3/index.html
  6. 20
      css-complete/sec3/main.css
  7. BIN
      php/getting-started/favicon.ico
  8. 1
      php/getting-started/form.php
  9. 8
      react-complete-guide/react-complete-notes.md

33
css-complete/sec2/index.html

@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>CSS Course</title>
<link rel="stylesheet" href="main.css">
</head>
<body>
<h1 id="assignment-instructions">Assignment - Selectors &amp; Properties</h1>
<ol>
<li>Style the above <code>&lt;h1&gt;</code> tag to use any color of your choice and a <code>sans-serif</code> font.</li>
<li>Style all <code>&lt;code&gt;</code> tags to use the <code>monospace</code> font-family and have red text.</li>
<li>Use a class selector to ensure that the <code>&lt;code&gt;</code> elements in the second <code>&lt;li&gt;</code> element have a different color (e.g. green).</li>
<li>Switch the order of the rules you created and use the dev tools of your browser to understand how specifity resolves conflicts (for the <code>&lt;code&gt;</code> elements).</li>
<li>Set a default font (e.g. sans-serif) for the entire content of your page and use "Inheritance" to change the font of the <code>&lt;li&gt;</code> items, too.</li>
<li>Use a combinator to give all <code>&lt;li&gt;</code> elements but the first one (!) a black background and white text color (don't worry if the numbers disappear).</li>
<li>Use another combinator to now give all <code>&lt;li&gt;</code> inside an <code>&lt;ol&gt;</code> element a black background and white text color.</li>
</ol>
</body>
</html>

7
css-complete/sec2/instructions.txt

@ -0,0 +1,7 @@
1. Style the above <h1> tag to use any color of your choice and a sans-serif font.
2. Style all <code> tags to use the monospace font-family and have red text.
3. Use a class selector to ensure that the <code> elements in the second <li> element have a different color (e.g. green).
4. Switch the order of the rules you created and use the dev tools of your browser to understand how specifity resolves conflicts (for the <code> elements).
5. Set a default font (e.g. sans-serif) for the entire content of your page and use "Inheritance" to change the font of the <li> items, too.
6. Use a combinator to give all <li> elements but the first one (!) a black background and white text color (don't worry if the numbers disappear).
7. Use another combinator to now give all <li> inside an <ol> element a black background and white text color.

12
css-complete/sec2/main.css

@ -0,0 +1,12 @@
h1 {
color: blue;
font-family: sans-serif;
}
code {
color: red;
font-family: monospace;
}
li + code {
color: green;
font-family: monospace;
}

BIN
css-complete/sec3/favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

26
css-complete/sec3/index.html

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>uHost</title>
<link rel="shortcut icon" href="favicon.png">
<link href="https://fonts.googleapis.com/css?family=Anton" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700" rel="stylesheet">
<link rel="stylesheet" href="main.css">
</head>
<body>
<main>
<section id="product-overview">
<h1>Get the freedom you deserve.</h1>
</section>
<section id="plans">
<h1 class="section-title">Choose Your Plan</h1>
<p>Make sure you get the most for your money!</p>
</section>
</main>
</body>
</html>

20
css-complete/sec3/main.css

@ -0,0 +1,20 @@
body {
font-family: 'Montserrat', sans-serif;
}
#product-overview {
background: #ff1b68;
}
.section-title {
color: #2ddf5c;
}
#product-overview h1 {
color: white;
font-family: 'Anton', sans-serif;
}
/* h1 {
font-family: sans-serif;
} */

BIN
php/getting-started/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

1
php/getting-started/form.php

@ -45,6 +45,7 @@ if (isset($_POST['submit'])) {
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title> <title>Document</title>
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="stylesheet" href="form.css"> <link rel="stylesheet" href="form.css">

8
react-complete-guide/react-complete-notes.md

@ -65,3 +65,11 @@ Note: JSX uses className in place of class
Are how to pass data into a component Are how to pass data into a component
## Events and State
### Events
React adds its own event attribute to use in JSX elements
Each event starts with "on" and pops in Intellisense

Loading…
Cancel
Save