-
Open code Visual Code Studio.
-
After the folder opens, create a new file or folder. Example: I create file index.html in the root folder, style.css inside the new folder "CSS" and script.JS inside the "JS" Folder.
-
Connect file style.css to HTML.
<link rel="stylesheet" href="CSS/style.css">
Connect file script.js to HTML.
<script src="JS/script.js"></script>
Now you can start writing code in HTML, CSS, and JS.
-
This is for example, I will explain the navbar and header design.
-
This is my HTML for the design. In this HTML I use several classes in tag elements for styling in CSS. I use tag div to wrap an element for styling in CSS.
-
This is my CSS for the design. In this picture above, for example, I use the property:
- display: flex; to adjust the position of several elements in a container or wrapper to make them in row position or column position.
- justify-content and align-item property is for making them in the center of the container or space-evenly etc.
In this picture above, for example, I use the property:
- cursor: pointer; This is for making the cursor change to the pointer when the cursor hovers on an element like Button.
- Transition: all .5s ease-in-out; This is to make an element have a transition like changing color from blue and then when the cursor hovers on the button, the button changes color to white.
In this picture above, for example, I use a keyframe to make an animation to change color from white-blue-white like flashing on the button. This can run automatically without hovering over the cursor, It can be run infinite.
For further information about HTML and CSS, you can visit the link https://www.w3schools.com/
-
I use Google font, you can open https://fonts.google.com/
-
Click Download Family.
-
After downloading the font, you can extract and you will see folder static.
-
In this project, I moved the static folder to folder assets inside folder milestone-1-gustitreshana.
This tutorial guides you through the process of registering on Netlify and the steps for deploying a project. Netlify is a platform that simplifies hosting and automation for web-based sites and applications.
- Introduction
- Table of content
- Netlify Registration
- Creating a New Project
- Deploying Your Project
- Connecting Netlify with Cloudflare
- Conclusion
Follow these steps to register on Netlify:
-
Visit the Netlify website (https://www.netlify.com)
-
You can register using your e-mail or through a GitHub, GitLab, or Bitbucket account, or Sign Up with e-mail.
4. Follow the provided registration process, including e-mail verification if required.
To create a new project on Netlify, follow these steps:
-
After logging in, on the Netlify dashboard, click Site and choose Import from Git.
-
Choose the Git provider where your repository is located (Github, GitLab, Bitbucket).
-
Configure your build settings as needed for your project (for example, Base directory and publish directory).
Once your project is set up, each time you push change to your repository, Netlify will automatically deploy the latest version of your site. You can also manually trigger a deployment from the dashboard if needed.
-
Go to Cloudflare and log in to your account.
-
In Cloudflare, add the domain you want to connect to your Netlify site.
Using Netlify, the process of hosting and deploying websites becomes more straightforward and efficient. The platform is very useful for web developers to speed up deployment processes and integration with various VCS (Version Control System) Services.
Congratulations! You have successfully registered on Netlify, deployed a site, and connected your domain with Cloudflare. Your website should now be accessible via your custom domain, with the added performance and security benefits of Cloudflare.
This tutorial was compiled by [Gusti Treshana Herman]. For more information and detailed guides, visit the Netlify Website (https://www.netlify.com).