Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This is the solved code for 1.4 Assessment: Deeper with CSS. #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
32 changes: 18 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,28 @@ <h1>Pete Thinkful | Artist</h1>
<!-- About section -->
<article id="about">
<h2>About</h2>
<section>
<h3>Hi! I'm Pete Thinkful</h3>
<section class="about">
<div>
<img
class="image-circle"
src="images/pete-thinkful.png"
alt="Pete Thinkful"
/>
</div>
<p>I'm an artist living in Denver, Colorado.</p>
<p>As an artist, I'm interested in:</p>
<ul>
<li>Producing abstract art</li>
<li>Creating street graffiti art</li>
<li>Connecting with like-minded artists</li>
</ul>
<p>
Please feel free to take a look at my website and feel free to
<a href="#contact">contact me</a>.
</p>
<div>
<h3>Hi! I'm Pete Thinkful</h3>
<p class="info">I'm an artist living in Denver, Colorado.</p>
<p class="info">As an artist, I'm interested in:</p>
<ul class="info">
<li>Producing abstract art</li>
<li>Creating street graffiti art</li>
<li>Connecting with like-minded artists</li>
</ul>
<p>
Please feel free to take a look at my website and feel free to
<a href="#contact">contact me</a>.
</p>
</div>
</section>

<section>
Expand All @@ -69,6 +71,7 @@ <h3>Pete's Background</h3>
<!-- Portfolio section -->
<article id="portfolio">
<h2>Portfolio</h2>
<div class="portfolio">
<section>
<h3>Abstract Red</h3>
<div>
Expand Down Expand Up @@ -101,6 +104,7 @@ <h3>Melted Rainbow</h3>
locavore shabby chic forage.
</p>
</section>
</div>
</article>

<hr />
Expand Down Expand Up @@ -131,4 +135,4 @@ <h2>Contact</h2>
<p>© Pete Thinkful. All rights reserved.</p>
</footer>
</body>
</html>
</html>
19 changes: 19 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ body {
color: #003049;
font-family: "Source Sans Pro", Tahoma, Geneva, Verdana, sans-serif;
padding: 40px;
display: flex;
flex-direction: column;
align-items: center;
}

/* Headings */
Expand All @@ -19,6 +22,9 @@ h3 {
/* Header */
header {
text-align: center;
display: flex;
align-items: center;
column-gap: 30px;
}

/* Containers */
Expand All @@ -37,6 +43,19 @@ article div {
width: 100%;
}

.info {
text-align: left;
}

#about .about {
display: flex;
}

.portfolio {
display: flex;
font-size: 14px;
}

/* Paragraphs */
p {
line-height: 1.5;
Expand Down