The Website is Ready to go live: creating an online static website using GitHub Pages

Feb 24, 2023

We've already mentioned that we'll be using Bootstrap 5.0. Bootstrap 5.0 is an open-source CSS framework that permits users to create websites that respond quicker. There's no requirement to develop specific CSS for this specific website.

[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">

In this way, we'll integrate the Devicon CDN into Devicon CDN to make this feature, which allows users to make use of SVG icons of the most widely-used programming languages and technologies with no difficulty.

[email protected]/devicon.min.css">

To include JavaScript Add the following code right at the top of your tag:

 [email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous">

It's time to develop the header of our website. The header will be a dark header and will include the links to our main website as well as two other pages, dubbed "Projects" as well as "Reading Log" (which is yours to make at any point:

 User Projects Reading Log 

It uses the Bootstrap wrapper around which wraps the navigation bar along with expanding-lg-navbar to make the appearance of a dynamic object that could be collapsed when the width of the display is smaller than 992 pixels. It's because of grid options which is the that is lg. If you're looking to learn more about grid options , go to our page on Bootstrap Layout.

"row justify-content-center" The image src="image.jpg" class="img-fluid" alt="" set src =""> div class="col-lg mx-2 align-self-center""my-3">I'm a user. As a dedicated software developer, I am passionate about developing and developing software programs. I'm always exploring and playing with modern techniques and software which I can apply. Additionally, I am driven by a constant desire to create innovative and productive solutions for difficult issues. My motivation is my passion for technology and passion for solving problems. I'm committed to creating quality and reliable software that is specifically created to satisfy the demands of the users.

We're getting images from a single image file. It's a good idea to add it to the repo every time we make any updates in the repo. GitHub repo.

To create our Bootstrap container, we'll use SVG icons designed by Devicon along with some CSS within the container in order to stand out:

HTML6 WordPress Python Django HTML11 Python HTML17 GitHub

We employ"i>" in an "i>" HTML tag that allows us to use it as a genuine font. We are in a position to control the font size for our logos to 4 millimeters by declaring it in the style tag.

This is the result of this personal site:

Bootstrap page displaying a navbar with the brand “ User”, an image of a software developer, a description, and a section of skills including WordPress, Django, Python, and GitHub.
Personal Website.
Bootstrap page displaying a navbar with the brand “ User”, an image of a software developer, a description, and a section of skills including WordPress, Django, Python, and GitHub.
Web pages is viewed.

The website can be customized as you like. It is the complete source code on the web available to you.

It is time to upload your file. For that, it is necessary to execute these commands with your terminal in the top part of your file.

Git add . Git commits by using an"-m "Added website image and Source code" git push

This website can be used to create your GitHub web page.

4. The posting of a User GitHub Page

If you submit index.html index.html to the remote repository that is identified with the username you've picked, GitHub will start an automatic workflow to put your site online. It could be a span of a few hours, but when you've completed the process you'll have your static website functioning completely.

The URL of your site will be something like the following: https://user.github.io/

If within 10 minutes, your website isn't functioning it is possible to fix an issue in the website's source code (e.g. or adding spaces) before pushing it back , allowing you to start your site's build process on GitHub Pages.

5. The Making of a Repository GitHub Page

We've developed a user-facing website. What happens if there are several publicly-available GitHub sites? That means that we'll need to design the project's website.

The most straightforward way for this to be done is to go to the setting tab within our repository. Select"pages" under"the webpages option under the "Code and automation" section.

Repository settings page with an arrow pointing to the “Pages” option, and the message “GitHub Pages is currently disabled”.
The Repository is currently being built.

Select the branch you want to publish on with the branch and then select on the branch you wish to publish your files to. It is highly recommended that you make your publication on the primary branch and then create additional enhancements and correct bugs on branches that are secondary before combining the branches. To avoid bringing problems to the site quickly.

When you've chosen the branch you'd like to select and then select the directory that you'd like to store your files , that's usually your root folder. ( /) Save.

Publishing from main on GitHub.
From the main website.

You should then spend a few minutes. Your site should be available at "yourusername".github.io/.

For removing a repository's website from publishing to eliminate a repository's website from publication, visit Settings in the Settings section that is followed by Pages Click on the button with three dots. You'll see a box with"Unpublish Site" written on it. "Unpublish Website".

Three dot button with the option “Unpublish site”.
Removal of an online site from the publication.

6. Configuring an existing Domain Custom Domain

185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153

You must also set up a CNAME record with yourusername.github.io as the target. There is a general belief that DNS changes are slow therefore you should take your time. It can take all day.

Then, access your customized domain section of the repo's settings. Enter the domain's name. Then, hit the Save button and sit back on GitHub for a look at your personalized domain.

 Custom domain section with a “DNS check successful” mark, and the enforce HTTPS button.
Custom domain.

Congrats! If you've followed this point of the tutorial, you are now able to have your own web site run with GitHub Pages, for no cost.

How to make use of Pages on GitHub

Before we begin, we'll go over some of the most efficient methods to consider when building a GitHub website:

  1. It is not advisable to commit directly to the branch you're making modifications to. You can make changes to multiple branches, before submitting pull requests.
  2. Beware of using GitHub Pages to promote products, such as the creation or launching of an online shop.

Summary

The evolution of web-based sites is getting more complicated each day. static websites have been around since the beginning of the web, they are a great method to start creating web-based apps.

The class taught what the goal of static sites, and how to put them on the internet using GitHub Pages. The website you built was built using Bootstrap and then uploaded to GitHub pages for users. In addition the course taught you how to get your site and get it running and also how to shut off the site if you had to.

  • It's easy to set up and maintain your My dashboard
  • Support is available 24 hours a day.
  • The most effective Google Cloud Platform hardware and network driven by Kubernetes to offer the greatest capacity
  • Enterprise-level Cloudflare integration, which speeds up as well as increases security
  • The reach of the world population is as large as the possibility of 35 data centers along with 275 PoPs all over the world.

The article was first published this website.

The article was first seen this site

Article was first seen on here