Skip to content

Commit

Permalink
Added lesson 16
Browse files Browse the repository at this point in the history
  • Loading branch information
gitdagray committed May 16, 2022
1 parent 23ef927 commit 2176277
Show file tree
Hide file tree
Showing 19 changed files with 175 additions and 0 deletions.
101 changes: 101 additions & 0 deletions 16_lesson/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");

/* Begin Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

img { display: block; }
/* End Reset */

/* Utility Classes */
.nowrap {
white-space: nowrap;
}

.offscreen {
position: absolute;
left: -10000px;
}

/* End Utility Classes */

body {
font-family: "Nunito", sans-serif;
min-height: 100vh;
background-color: aliceblue;
/* background-image: url("../img/bubbles.png"), linear-gradient(to left, steelblue, #fff);
background-repeat: repeat-y, no-repeat;
background-position: right center; */

background: repeat-y right center url("../img/bubbles.png"), no-repeat linear-gradient(to left, steelblue, #fff);
background-size: 20%, auto;
}

.container {
background-color: rgb(251, 210, 156);
background-image: url('../img/map-2176x1451.png');
background-repeat: no-repeat;
background-position: top;
background-size: cover;
}

.hero {
border-bottom: 2px solid #000;
padding: 20px;
display: flex;
justify-content: flex-start;
align-items: center;
gap: 30px;

background-color: hsla(0, 0%, 100%, 0.35);

}

.h1 {
font-size: 500%;
color: aliceblue;
text-shadow: 2px 2px 5px #000;
/* background-color: hsla(0, 0%, 0%, 0.403);
padding: 0.25rem;
border-radius: 10px; */
}

.profile-pic-figure {
width: 35%;
}

.profile-pic-figure img {
width: 100%;
height: auto;
min-width: 100px;
border: 5px double gray;
border-radius: 50%;
}

.example {
margin-top: 1rem;
padding-left: 20px;
border: 1px solid red;
}

.example img {
width: 25%;
height: auto;
}

.clip {
font-weight: 800;
font-size: 18rem;
text-align: center;
background-image: url("../img/scenic-2200x1331.png");
background-size: 100%;
text-transform: uppercase;
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}


Binary file added 16_lesson/img/bubbles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/map-2176x1451.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/pat1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/pat2-transparency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/pat2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/profile-800x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson/img/scenic-2200x1331.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions 16_lesson/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Images</title>
<link rel="stylesheet" href="css/style.css">
</head>

<body>
<!-- <div class="container">
<section class="hero">
<figure class="profile-pic-figure">
<img src="img/profile-800x800.png" alt="Profile Picture" title="My Profile Picture" width="800" height="800">
<figcaption class="offscreen">Jane Doe</figcaption>
</figure>
<h1 class="h1">
<span class="nowrap">Hello πŸ‘‹</span>
<span class="nowrap">I'm Jane</span>
</h1>
</section>
</div> -->
<!-- <section class="example">
<img src="img/pat1.png" alt="Pattern 1" width="200" height="200">
</section> -->
<section>
<p class="clip">Jane</p>
</section>
</body>

</html>
17 changes: 17 additions & 0 deletions 16_lesson_starter/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: "Nunito", sans-serif;
min-height: 100vh;
}





Binary file added 16_lesson_starter/img/bubbles.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/map-2176x1451.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/pat1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/pat2-transparency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/pat2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/profile-800x800.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 16_lesson_starter/img/scenic-2200x1331.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions 16_lesson_starter/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Images</title>
<link rel="stylesheet" href="css/style.css">
</head>

<body>

</body>

</html>
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
- πŸ”— [W3C CSS Validator](https://jigsaw.w3.org/css-validator/)
- πŸ”— [Specificity Calculator](https://specificity.keegan.st/)
- πŸ”— [HTML Special Characters](https://unicode-table.com)
- πŸ”— [Can I Use](https://caniuse.com/)

### πŸ•ΉοΈ Learning Games
- πŸ”— [Flexbox Froggy](https://flexboxfroggy.com/)
Expand All @@ -68,6 +69,9 @@
- πŸ”— [MDN: Flexbox](https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox)
- πŸ”— [MDN: Basic Concepts of Grid Layout](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Basic_Concepts_of_Grid_Layout)
- πŸ”— [MDN: Grid Template Areas](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout/Grid_Template_Areas)
- πŸ”— [MDN: CSS Images](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Images)
- πŸ”— [MDN: CSS Background Images](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Backgrounds_and_Borders/Resizing_background_images)
- πŸ”— [Chip Cullen: Content Layout Shift](https://chipcullen.com/what-width-and-height-attributes-to-use-with-responsive-images/)

### πŸ“š Typography Resources:
- πŸ”— [MDN: Fundamental Text and Font Styling](https://developer.mozilla.org/en-US/docs/Learn/CSS/Styling_text/Fundamentals)
Expand Down Expand Up @@ -120,5 +124,7 @@
- πŸ”— [Chapter 14 Completed Code](https://github.com/gitdagray/css_course/tree/main/14_lesson)
- πŸ”— [Chapter 15 Starter Code](https://github.com/gitdagray/css_course/tree/main/15_lesson_starter)
- πŸ”— [Chapter 15 Completed Code](https://github.com/gitdagray/css_course/tree/main/15_lesson)
- πŸ”— [Chapter 16 Starter Code](https://github.com/gitdagray/css_course/tree/main/16_lesson_starter)
- πŸ”— [Chapter 16 Completed Code](https://github.com/gitdagray/css_course/tree/main/16_lesson)


0 comments on commit 2176277

Please sign in to comment.