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

WX's Portfolio Page #92

Open
wants to merge 6 commits 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
Binary file added Coming Soon Logo.jpg
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 Just Dough It.jpeg
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 Profile Pic.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
120 changes: 115 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,122 @@
<html lang="en">
<head>
<meta charset="utf-8" />

<link href="styles.css" rel="stylesheet" />

<title>Rocket Academy</title>
<link href="portfolio.css" rel="stylesheet" />
<title>My Portfolio</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Navigation Bar -->
<div class="navbar">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use nav here

<a href="index.html">Home</a>
<a href="#">About Me</a>
<a href="#">Portfolio</a>
<a href="#">Contact</a>
</div>

<!-- Header -->
<div id="main-border">
<div class="main-header">
<div class="sub-header">
<div id="hello">HELLO I AM</div>
<div id="my-name">POH WEN XIN</div>
<div id="my-intro">
I aspire to design and build beautiful websites for businesses
around the globe. If you need a modern and powerful website, simply
send me an
<span style="color: hsl(40, 95%, 54%)">email</span> or visit my

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's try to use css files for such styles

<span style="color: hsl(40, 95%, 54%)">Linkedin profile</span>.
<div id="discover-btn">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use a button, if it is supposed to be a button?

<a href="https://www.linkedin.com/">DISCOVER NOW</a></div>
</div>
</div>
<div class="sub-header">
<img src="Profile Pic.jpg" width="80%;" />
</div>
</div>
</div>

<!-- The flexible grid (content) -->
<div class="main-container">
<h1>MY PROJECTS.</h1>

<!-- Subcontainer 1 -->
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="Just Dough It.jpeg" alt="Avatar" style="width:300px;height:200px;">
</div>
<div class="flip-card-back">
<h1>Recipe Site</h1></a>
<p><i>A website design created to store recipes.</i></p>
<p>October 2024</p>
<p><a href="https://wenxin-p.github.io/recipe-site-bootcamp/index.html"><u>Visit Site</u></p></a>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we could use css instead of the u tag, both works though

</div>
</div>
</div>

<!-- Subcontainer 2 -->
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="Coming Soon Logo.jpg" alt="Coming Soon" style="width:300px;height:200px;">
</div>
<div class="flip-card-back">
<h1>Title of Project</h1>
<p>Description of Project</p>
<p>Date of Completion</p>
</div>
</div>
</div>

<!-- Subcontainer 3 -->
<div class="flip-card">
<div class="flip-card-inner">
<div class="flip-card-front">
<img src="Coming Soon Logo.jpg" alt="Coming Soon" style="width:300px;height:200px;">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's avoid inline styles like here and use css. Alternatively you could just use the width and heigth attribute on an img tag

</div>
<div class="flip-card-back">
<h1>Title of Project</h1>
<p>Description of Project</p>
<p>Date of Completion</p>
</div>
</div>
</div>
</div>





</div>
<div class="flip-card-back">
<h1>Recipe Site</h1>
<p>Rocket Academy</p>
<p>Assignment 1</p>
<img
src="img_avatar.png"
alt="Avatar"
style="width: 300px; height: 300px"
/>
</div>
<div class="flip-card-back">
<h1>Recipe Site</h1>
<p>Rocket Academy</p>
<p>Assignment 1</p>
</div>
</div>
</div>
</div>

<!-- Footer
<div class="footer">
<h2>
<img src="instagram logo.jpeg" width="30px" height="30px" />
<img src="tiktok logo.jpeg" width="35px" height="35px" /><img
src="facebook logo.jpeg"
width="25px"
height="25px"
/>
</h2>
</div>-->
</body>
</html>
171 changes: 171 additions & 0 deletions portfolio.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
* {
box-sizing: border-box;
}

/* Style the body */
body {
font-family: sans-serif;
margin: 0;
}

/* Style the top navigation bar */
.navbar {
font-size: 18px;
display: flex;
justify-content: right;
padding: 2px;
background-color: #333;
}

/* Style the navigation bar links */
.navbar a {
color: white;
font-weight: bold;
padding: 20px 20px;
text-decoration: none;
text-align: center;
}

/* Change color on hover */
.navbar a:hover {
background-color: hsl(0, 0%, 67%);
color: black;
}

/* Header*/
.main-header {
display: flex;
text-align: left;
border: 30px solid rgba(255, 191, 29, 0.836);
}

#main-border {
border: 25px solid rgba(255, 136, 0, 0.836);
}

.sub-header {
display: flex;
flex-direction: column;
width: fit-content;
justify-content: center;
margin: 0px 0px 0px 80px;
background: white;
}

#profile-pic {
max-width: 50%;
align-items: center;
}

#hello {
font-size: 20px;
padding: 5px 0px 5px 0px;
font-weight: bold;
color: rgb(32, 32, 32);
}

#my-name {
width: fit-content;
padding: 5px 0px 5px 0px;
text-align: left;
font-size: 70px;
font-weight: bold;
color: rgba(255, 255, 255, 0.917);
flex-wrap: wrap;
background: linear-gradient(to right, red, yellow);
}

#my-intro {
width: 70%;
padding: 5px 0px 5px 0px;
text-align: justify;
font-size: 16px;
color: darkgrey;
text-wrap: wrap;
}

#discover-btn {
display: flex;
margin-top: 15px;
padding: 10px;
width: fit-content;
border: 1px solid linear-gradient(to right, red, yellow);
border-radius: 10px;
text-align: left;
font-size: 16px;
color: white;
flex-direction: column;
background: orange;
}

a {
text-decoration: none;
color: white;
}

/* Styling for the main container */
.main-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-around;
padding: 20px;
color: white;
background-color: #373737;
}

/* Styling for sub-containers */
.sub-container {
padding: 10px;
border: 1px solid hsl(41, 83%, 52%);
background-color: hsl(41, 83%, 52%);
margin-bottom: 10px;
}

/* The flip card container - set the width and height to whatever you want. We have added the border property to demonstrate that the flip itself goes out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
display: flex;
background-color: transparent;
width: 300px;
height: 200px;
border: 1px solid #f1f1f1;
perspective: 1000px; /* Remove this if you don't want the 3D effect */
}

/* This container is needed to position the front and back side */
.flip-card-inner {
position: relative;
width: 100%;
height: 100%;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}

/* Do an horizontal flip when you move the mouse over the flip box container */
.flip-card:hover .flip-card-inner {
transform: rotateY(180deg);
}

/* Position the front and back side */
.flip-card-front,
.flip-card-back {
position: absolute;
width: 100%;
height: 100%;
-webkit-backface-visibility: hidden; /* Safari */
backface-visibility: hidden;
}

/* Style the front side (fallback if image is missing) */
.flip-card-front {
background-color: #bbb;
color: black;
}

/* Style the back side */
.flip-card-back {
background-color: hsl(41, 83%, 52%);
color: white;
transform: rotateY(180deg);
}
Loading