Gerald Elroy CV Website
TUGAS 1 PWEB - A
Membuat CV Website
Pada penugasan kali ini, saya membuat CV Website menggunakan HTML, CSS, dan JS. Website ini masih berbentuk static. Web ini memuat pengelanan singkat akan diri saya dan pendidikan yang pernah saya tempuh.

Atau bisa langsung melalui situs ini : https://geraldelroy.netlify.app/
Source Code HTML :
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Gerald Elroy Van Ryan</title>
- <link rel="stylesheet" href="styles.css"/>
- <script src="script.js"></script>
- </head>
- <body>
- <!--Landing Page-->
- <section class="landingpage">
- <div class="navbar">
- <ul>
- <li><a href="#start">Profile</a></li>
- <li><a href="#start_two">Education</a></li>
- <!-- <li><a href="#experience">Experience</a></li> -->
- <!-- <li><a href="#hobby">Hobby</a></li> -->
- <!-- <li><a href="#social">Social Media</a></li> -->
- </ul>
- </div>
- <div class="welcome">
- <h1>Hello,</h1>
- <h2>I'm Gerald Elroy Van Ryan</h2>
- <hr>
- <p><a href="#start">Start my journey</a></p>
- </div>
- </section>
- <!--Profile-->
- <section class="profile" id="start">
- <div class="biography">
- <img src="images/me.jpeg" alt="Gerald Elroy Van Ryan" id="myImg">
- <div id="myModal" class="modal">
- <span class="close">×</span>
- <img class="modal-content" id="img01">
- <div id="caption"></div>
- </div>
- <div class="content">
- <p class="caption">My Profile</p>
- <p class="caption_two">
- My name is Gerald Elroy Van Ryan.
- <br>
- I'm studying Informatics at
- Institut Teknologi Sepuluh Nopember, Surabaya.
- <br>
- I'm a hard working and ambitious person.
- <br> I really interested to learn
- more about web programming and mobile-app programming.
- <br>
- I also talented in music, especially playing piano. Hope you enjoy it!
- </p>
- </div>
- </div>
- </section>
- <!--Education-->
- <section class="education" id="start_two">
- <div class="educationn">
- <h1>EDUCATION</h1>
- <div class="school">
- <div class="ipeka">
- <p class="el">
- Elementary School
- <br>
- &
- <br>
- Junior High School
- </p>
- <img src="images/education/ipeka.png" alt="">
- <div class="content_ipeka">
- <div class="sd">
- <p>SDK IPEKA Grand Wisata</p>
- <p>2007-2013</p><br>
- <hr align="center">
- </div>
- <div class="smp">
- <p>SMPK IPEKA Grand Wisata</p>
- <p>2013-2016</p>
- </div>
- </div>
- </div>
- <div class="penabur">
- <p class="elo">
- Senior High School
- </p>
- <img src="images/education/penabur.png" alt="">
- <div class="content_penabur">
- <p>SMAK Penabur Summarecon Bekasi</p>
- <p>2016-2019</p>
- </div>
- </div>
- <div class="its">
- <p class="elo">
- Undergraduate
- </p>
- <img src="images/education/its2.png" alt="">
- <div class="content_its">
- <p>Institut Teknologi Sepuluh Nopember</p>
- <p>2019-present</p>
- </div>
- </div>
- </div>
- </div>
- </section>
- </html>
Source Code CSS :
- @font-face {
- font-family: SecularOne;
- src: url("../fonts/SecularOne-Regular.ttf");
- }
- @font-face {
- font-family: MontserratSubrayada;
- src: url("../fonts/MontserratSubrayada-Regular.ttf");
- }
- @font-face {
- font-family: Montserrat;
- src: url("../fonts/Montserrat-Medium.ttf");
- }
- @font-face {
- font-family: SongMyung;
- src: url("../fonts/SongMyung-Regular.ttf");
- }
- @keyframes zoom {
- from {
- transform: scale(0.1);
- }
- to {
- transform: scale(1);
- }
- }
- /* The Close Button */
- .close {
- position: absolute;
- top: 15px;
- right: 35px;
- color: #f1f1f1;
- font-size: 40px;
- font-weight: bold;
- transition: 0.3s;
- }
- .close:hover,
- .close:focus {
- color: #bbb;
- text-decoration: none;
- cursor: pointer;
- }
- /* 100% Image Width on Smaller Screens */
- @media only screen and (max-width: 700px) {
- .modal-content {
- width: 100%;
- }
- }
- /* The Modal (background) */
- .modal {
- display: none; /* Hidden by default */
- position: fixed; /* Stay in place */
- z-index: 1; /* Sit on top */
- padding-top: 100px; /* Location of the box */
- left: 0;
- top: 0;
- width: 100%; /* Full width */
- height: 100%; /* Full height */
- overflow: auto; /* Enable scroll if needed */
- background-color: rgb(0, 0, 0); /* Fallback color */
- background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
- }
- /* Modal Content (image) */
- .modal-content {
- margin: auto;
- display: block;
- width: 80%;
- max-width: 700px;
- }
- /* Caption of Modal Image */
- #caption {
- margin: auto;
- display: block;
- width: 80%;
- max-width: 700px;
- text-align: center;
- color: #ccc;
- padding: 10px 0;
- height: 150px;
- }
- /* Add Animation */
- .modal-content,
- #caption {
- animation-name: zoom;
- animation-duration: 0.6s;
- }
- #myImg {
- border-radius: 5px;
- cursor: pointer;
- transition: 0.3s;
- }
- #myImg:hover {
- opacity: 0.7;
- }
- html {
- scroll-behavior: smooth;
- }
- * {
- padding: 0;
- margin: 0;
- box-sizing: border-box;
- }
- .landingpage {
- width: 100%;
- height: 100vh;
- background: url(skye.jpg);
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
- object-fit: none;
- }
- .navbar {
- overflow: hidden;
- background-color: whitesmoke;
- position: fixed;
- opacity: 0.8;
- width: 100%;
- border-radius: 0px 0px 8px 8px;
- padding: 15px;
- }
- .navbar li {
- display: inline;
- margin-left: auto;
- margin-right: auto;
- float: right;
- }
- .navbar li a {
- font-size: 20px;
- font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
- text-align: center;
- padding: 60px;
- color: #4f5964;
- text-decoration: none;
- }
- .navbar li a:hover {
- background-color: #4f5964;
- color: white;
- }
- .welcome h1 {
- font-size: 150px;
- font-family: SecularOne;
- color: whitesmoke;
- text-align: left;
- padding: 200px 120px 0px;
- letter-spacing: 10px;
- /* padding-top: 50px; */
- }
- .welcome h2 {
- font-size: 52px;
- font-family: SecularOne;
- color: whitesmoke;
- padding: 0px 128px 10px;
- }
- .welcome p {
- font-size: 18px;
- font-family: SecularOne;
- text-align: center;
- padding-top: 130px;
- }
- .welcome p a {
- text-decoration: none;
- border-radius: 8px;
- border: 2px solid #4f8caf;
- padding: 15px 20px;
- background-color: white;
- color: #4f8caf;
- /* position: relative; */
- }
- .welcome hr {
- background-color: white;
- height: 5px;
- width: 50%;
- }
- .welcome p a:hover {
- background-color: #4f8caf;
- color: white;
- transition-duration: 0.4s;
- }
- .profile {
- background-image: url(images/profile_background.png);
- width: 100%;
- height: 100vh;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
- object-fit: none;
- }
- .biography {
- display: flex;
- gap: 20px;
- box-sizing: border-box;
- padding: 40px;
- margin: 40px;
- color: red;
- }
- .biography img {
- margin: 30px 0px 0px 45px;
- border-radius: 5px;
- border: 8px solid white;
- width: 33%;
- height: 30%;
- }
- .caption {
- font-size: 70px;
- /* float: right; */
- margin: 22px 0px 0px 35px;
- color: #4f5964;
- font-family: MontserratSubrayada;
- /* background-color: red; */
- }
- .caption_two {
- margin: 40px 10px 0px 35px;
- font-size: 20px;
- font-family: Montserrat;
- line-height: 3;
- color: #4f5964;
- text-align: left;
- }
- .education {
- background-image: url(images/profile_background_flip_2.png);
- width: 100%;
- height: auto;
- background-repeat: no-repeat;
- background-size: cover;
- background-position: center;
- object-fit: none;
- }
- .educationn h1 {
- font-family: MontserratSubrayada;
- font-size: 70px;
- text-align: center;
- color: #4f5964;
- padding: 55px 0px 0px 0px;
- }
- .school {
- display: flex;
- }
- .ipeka {
- margin-left: 5%;
- height: 500px;
- margin-bottom: 20px;
- margin-top: 3%;
- background-color: white;
- border-radius: 20px;
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
- }
- .el {
- text-align: center;
- background-color: #f89a7f;
- font-family: SecularOne;
- border-top-left-radius: 20px;
- border-top-right-radius: 20px;
- font-size: 19px;
- padding: 10px;
- color: white;
- }
- .ipeka img {
- margin: 25px 45px 20px 45px;
- height: 160px;
- width: auto;
- }
- .content_ipeka {
- text-align: center;
- font-size: 16px;
- margin: 20px 0px 30px 0px;
- font-family: SecularOne;
- color: #4f5964;
- }
- .sd {
- margin-top: 20px;
- }
- .sd hr {
- width: 40%;
- margin-right: auto;
- margin-left: auto;
- margin-top: 1px;
- margin-bottom: 20px;
- }
- .penabur {
- margin-left: 7.5%;
- height: 500px;
- margin-top: 3%;
- background-color: white;
- border-radius: 20px;
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
- padding-bottom: 5px;
- }
- .elo {
- text-align: center;
- background-color: #f89a7f;
- font-family: SecularOne;
- border-top-left-radius: 20px;
- border-top-right-radius: 20px;
- font-size: 24px;
- padding: 34px;
- color: white;
- }
- .penabur img {
- margin: 9px 90px 35px 90px;
- height: 220px;
- width: auto;
- }
- .content_penabur {
- text-align: center;
- font-size: 20px;
- font-family: SecularOne;
- color: #4f5964;
- }
- .its {
- margin-left: 7%;
- height: 500px;
- margin-top: 3%;
- background-color: white;
- border-radius: 20px;
- box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
- }
- .its img {
- margin: 6px 87px 28px 87px;
- height: 230px;
- width: auto;
- }
- .content_its {
- text-align: center;
- font-size: 20px;
- font-family: SecularOne;
- color: #4f5964;
- }
Source Code JS :
- var modal = document.getElementById('myModal');
- // Get the image and insert it inside the modal - use its "alt" text as a caption
- var img = document.getElementById('myImg');
- var modalImg = document.getElementById("img01");
- var captionText = document.getElementById("caption");
- img.onclick = function(){
- modal.style.display = "block";
- modalImg.src = this.src;
- captionText.innerHTML = this.alt;
- }
- // Get the <span> element that closes the modal
- var span = document.getElementsByClassName("close")[0];
- // When the user clicks on <span> (x), close the modal
- span.onclick = function() {
- modal.style.display = "none";
- }
Sekian penjelasan untuk penugasan ini, apabila ada kekurangan serta kesalahan mohon dimaafkan. Terima kasih.
Comments
Post a Comment