A Pen by Save Pongsiri on CodePen.
Created
February 3, 2021 15:08
-
-
Save savepong/20f43fa6bc7ea88a81213efe779fb80d to your computer and use it in GitHub Desktop.
freeCodeCamp: Personal Portfolio
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script> | |
<nav id="navbar"> | |
<ul> | |
<li> | |
<a href="#welcome-section">About</a> | |
</li> | |
<li> | |
<a href="#projects">Work</a> | |
</li> | |
<li> | |
<a href="https://savepong.com" target="_blank"> | |
Profile | |
</a> | |
</li> | |
</ul> | |
</nav> | |
<section id="welcome-section"> | |
<h1>Hi, I am Savepong</h1> | |
<p>a full stack developer</p> | |
</section> | |
<section id="projects"> | |
<h2>These are some of my projects</h2> | |
<div class="grid-container"> | |
<a class="project-tile" href="https://savepong.com/posts/portfolio-2/" target="_blank"> | |
<img src="https://savepong.com/static/92c47e2c24b9f1fd7723dbb82888a6ad/14b42/ssi_1.jpg"> | |
<p>Project 1</p> | |
</a> | |
<a class="project-tile" href="https://savepong.com/posts/portfolio-1/" target="_blank"> | |
<img src="https://savepong.com/static/85918cbb6d9a4c90c9567b7d496c513a/ee604/jel_1.png"> | |
<p>Project 2</p> | |
</a> | |
<a class="project-tile" href="https://savepong.com/posts/portfolio-4/" target="_blank"> | |
<img src="https://savepong.com/static/3c4fb83b3d31b468fe7099a27377110e/14b42/bbq_1.jpg"> | |
<p>Project 3</p> | |
</a> | |
</div> | |
</section> | |
<section id="footer"> | |
<a id="profile-link" href="https://github.com/savepong" target="_blank">github.com/savepong</a> | |
</section> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// !! IMPORTANT README: | |
// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. | |
/*********** | |
INSTRUCTIONS: | |
- Select the project you would | |
like to complete from the dropdown | |
menu. | |
- Click the "RUN TESTS" button to | |
run the tests against the blank | |
pen. | |
- Click the "TESTS" button to see | |
the individual test cases. | |
(should all be failing at first) | |
- Start coding! As you fulfill each | |
test case, you will see them go | |
from red to green. | |
- As you start to build out your | |
project, when tests are failing, | |
you should get helpful errors | |
along the way! | |
************/ | |
// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example! | |
// Once you have read the above messages, you can delete all comments. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* { | |
font-family: sans-serif; | |
color: #3c366b; | |
} | |
h2 { | |
font-size: 2rem; | |
font-weight: 800; | |
margin: 0px; | |
border-bottom: 0.2rem solid; | |
display: inline; | |
} | |
html, body { | |
margin: 0px; | |
padding: 0px; | |
} | |
#navbar { | |
display: flex; | |
justify-content: flex-end; | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
background: #81e6d9; | |
z-index: 999; | |
} | |
#navbar ul { | |
list-style: none; | |
display: flex; | |
margin-right: 2rem; | |
} | |
#navbar a { | |
font-size: 1.4rem; | |
display: block; | |
padding: 0.4rem 1rem; | |
text-decoration: none; | |
} | |
#welcome-section { | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
width: 100%; | |
height: 100vh; | |
background-color: #81e6d9; | |
} | |
#welcome-section h1 { | |
font-size: 4rem; | |
font-weight: 900; | |
color: #5a67d8; | |
margin: 0px; | |
padding-bottom: 10px; | |
} | |
#welcome-section p { | |
font-size: 1.5rem; | |
font-weight: 100; | |
letter-spacing: 10px; | |
text-transform: uppercase; | |
margin-top: 10px; | |
padding: 10px; | |
border: 2px solid; | |
} | |
#projects { | |
padding: 5rem; | |
background-color: #fff; | |
text-align: center; | |
} | |
.grid-container { | |
display: grid; | |
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); | |
grid-gap: 4rem; | |
width: 100%; | |
margin: 0 auto; | |
margin: 4rem 0; | |
} | |
.project-tile { | |
border: 1px #e2e8f0 solid; | |
border-radius: 0.5rem; | |
overflow: hidden; | |
text-decoration: none; | |
background-color: #f7fafc; | |
} | |
.project-tile img { | |
width: 100%; | |
height: auto; | |
object-fit: cover; | |
} | |
.project-tile p { | |
font-weight: 600; | |
} | |
#footer { | |
text-align: center; | |
padding: 1.6rem; | |
background-color: #f7fafc; | |
border-top: 1px #e2e8f0 solid; | |
} | |
@media(max-width: 30em) { | |
grid-template-columns: 1fr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment