Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuka01 committed Sep 18, 2024
0 parents commit e3e30f4
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
Empty file added README.md
Empty file.
Binary file added assets/london.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions content.html
Original file line number Diff line number Diff line change
@@ -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">
<title>Content for HW1: Get on the Web</title>
<link rel="stylesheet" href="styles.css">
</head>
<body class="content">
<h1 class="main-header">John P.</h1>
<h2 class="secondary-header">Major: Computer Science</h2>
<h3 class="third-header-1">
<!-- Switch from br to span later! -->
IPv4 Address: 10.243.92.186<br>
Where I Grew Up: Los Angeles, CA 🌴<br>
</h3>
<div class="image-container">
<img class="image" src="assets/london.jpg" alt="Favorites Place" />
<p class="image-description">
This is a random side street in London. <br>
I love the cozy feeling of any street of <br>
this kind as it gives me a feeling of <br>
warmth and walking through history. 💂🏻
</p>
</div>
<h3 class="third-header-2">
My Favorite Restaurant:
<a href="https://www.villadicomo.com/"
target="_blank">Villa di Como</a><br>
Something Unexpected About Me: I'm trilingual.
</h3>
</body>
</html>
72 changes: 72 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
:root {
--main-font: 'Helvetica', sans-serif;
--secondary-font: 'Gill Sans', sans-serif;
}

h1 {
font-family: var(--main-font);

font-weight: 500;
}

h2 {
font-family: var(--secondary-font);
font-weight: 250;
}

h3 {
font-family: var(--secondary-font);
font-weight: 150;
}

p {
font-family: var(--secondary-font);
}

.content {
background-color: #f5f5f5;
}

.main-header {
text-align: center;
font-size: 52px;
}

.secondary-header {
text-align: center;
font-size: 26px;
}

.third-header-1 {
text-align: center;
font-size: 20px;
}

.image-container {
display: flex;
align-items: center;
justify-content: center;
gap: 40px;
margin-top: 50px;
margin-bottom: 50px;
}

.image {
float: left;
margin-left: 20px;
margin-right: 20px;
max-width: 50%;
max-height: 375px; /* Maintain aspect ratio */
border: 5px solid #000000;
border-radius: 1%;
}

.image-description {
text-align: left;
line-height: 1.50;
}

.third-header-2 {
text-align: center;
font-size: 20px;
}

0 comments on commit e3e30f4

Please sign in to comment.