Getting started with your first portfolio - Part 2: Designing & building a wireframe
Let's start with a mockup of how we are going to compartmentalize our page into sections. We roughly have these sections:
- Intro
- Profile picture
- Name
- Title burb
- About
- Who I am
- My interests
- Projects
- Contact
- Links
- Contact form
Intro
The intro contains an image (profile picture), heading (name), and subheading (title blurb)
We can start with the following code snippet (going in between <body> </body>
) containing these nested elements:
<div>
<img src="https://via.placeholder.com/150" />
<h1>Hello! My name is Jenny</h1>
<h3>I'm a 4th year BUCS student at UBC</h3>
</div>
About
The About section has a text snippet and a subheading followed by a list. Write the following under the ending </div>
for the Intro section (replacing content inside the square brackets with whatever applies to you)
<div>
<div>
<p>[short snippet about my background and aspirations]</p>
</div>
<div>
<p>[interest heading]</p>
<ul>
<li>[do thing 1]</li>
<li>[do thing 2]</li>
<li>[do thing 3]</li>
</ul>
</div>
</div>
For instance, for me, I would put:
<div>
<div>
<p>I love nwPlus. Very amaze.</p>
</div>
<div>
<p>Some of my interests include:</p>
<ul>
<li>Doggos</li>
<li>Dogspotting</li>
<li>Smol puppers</li>
</ul>
</div>
</div>
How this code looks like when you reload your tab on Chrome displaying index.html
Projects
The projects section will contain four projects. You'll notice in our wireframe that we're planning on arranging then in a 2x2 grid. We'll be able to do that with CSS later on, but for now, let's add the following snippet
<div>
<h3>Projects</h3>
<img src="https://via.placeholder.com/300" />
<img src="https://via.placeholder.com/300" />
<img src="https://via.placeholder.com/300" />
<img src="https://via.placeholder.com/300" />
</div>
How this looks like when you reload your index.html
tab
Contact
The contact section contains links of where people can learn more about you or contact you (for example, GitHub, LinkedIn, email, or anything else you feel is relevant).
Place this section after the enclosing </div>
tag of the Projects section. Note that you should replace the text enclosed by the square brackets inside the href
attribute with your own information.
<div>
<h3>Links</h3>
<ul>
<li>
<a href="https://github.com/[user]">Github</a>
</li>
<li>
<a href="https://linkedin.com/in/[user]">Linkedin</a>
</li>
<li>
<a href="mailto:[[email protected]]">Email</a>
</li>
</ul>
</div>
For instance, I would put:
<div>
<h3>Contacc</h3>
<p>My Links</p>
<ul>
<li>
<a href="https://github.com/panjenny0">GitHub</a>
</li>
<li>
<a href="https://linkedin.com/in/pan-jenny">LinkedIn</a>
</li>
<li>
<a href="mailto:[email protected]">Email</a>
</li>
</ul>
</div>
We will also add a contact form with input fields.
- for a real website, this will allow people to send you a message
- for the purpose of this workshop, we will only create the front-end, since we do not have a back-end that will handle sending the message for us.
Add this code snippet underneath the </ul>
element from above
<div>
<form action="#">
<label for="email">
Email: <input type="email" id="email" placeholder="Enter your email" />
</label>
<label for="message">
Message: <textarea id="message">Your Message</textarea>
</label>
<input type="submit" valid="Send Message" />
</form>
</div>
After the above is added, this is what our Contact section will look like