One page responsive website using Bootstrap 5, which is multipurpose, responsive
Let’s create a one page website using Bootstrap 5, by converting a UI Design into HTML and CSS.
This is 2nd part of 3 part series. For the 1st part, kindly refer to this link: https://theuicode.com/one-page-website-convert-ui-design-to-html-css-using-bootstrap-5-responsive-multipurpose-1/
We’ll make use of Bootstrap 5 to make it quick and responsive: https://v5.getbootstrap.com/docs/5.0/getting-started/introduction/
Following is the UI Design, from this we shall be creating the ‘Services’ section:
For complete guide, kindly follow the video tutorial below. You can also read along this post for the code explanation.
Let’s make a bootstrap row with top and bottom padding of 5(py-5) and right and left margin of 0 (mx-0), so that there is no horizontal scroll. We’ll make it center by giving .justify-content-right class.
<div id="services" class="row py-5 mx-0 justify-content-center">
</div>
We’ll then add a full width div by using col-md-12 (for medium and above devices). Let’s use h3 for the section heading, center that text, give it a colour of pink and make the font bolder (font-weight = 900):
<div class="col-md-12 py-5">
<h3 class="text-center pink-color bolder">Services</h3>
</div>
Add another column which is 8 columns width, so that the text gets wrapped and shows up in 2 lines instead of one single line, with a margin bottom of 5 (mb-5), padding left and right of 3 (px-3). Give the text a colour of purple:
<div class="col-md-8 mb-5 px-3">
<h4 class="text-center purple-color">Our passion for design goes beyond beautiful imagery. We believe good design should solve problems</h4>
</div>
Within the ‘services’ row, add another row in which we add 4 sections of icon and the text, which are responsive.
Following is the first section, which is a ‘UI/UX’ service, of that row:
<div class="col-md-3 col-sm-6 col-xs-12 d-flex flex-column align-items-center mb-5">
<div class="icon-bg d-flex justify-content-center align-items-center mb-4">
<i class="fas fa-palette icon pink-color"></i>
</div>
<h5 class="purple-color text-center bold">UI/UX</h5>
<p class="text-center purple-color">Through our research, our highly passionate UI/UX team ensures an amazing user experience.</p>
<a href="#" class="know pink-color">
Know more <i class="fas fa-long-arrow-alt-right ml-2"></i>
</a>
</div>
We are making this a flex column, so that items stack one below the other and use align-items-center to make it center horizontally. The first element within this flex column would be an icon, which is a FontAwesome icon, that is wrapped inside a div so that it can be made aligned at the center of the circle. The next element would be the heading of h5 which has a purple colour and centered text. And then we have a ‘p’ element which gives the description of the service, which again is centered and purple in colour.
Finally, we end this flex column by adding an anchor called ‘know more’, which is pink in colour and has an icon wrapped within the anchor with a margin left of 2 (ml-2) so that there is some space between the icon and the label.
col-md-3 says that this div should occupy 3 columns width for medium and up devices. col-sm-6 says that the div should occupy half of the width of the screen when used on small devices. And finally, col-xs-12 says that the div should occupy entire screen width when its used on extra small devices. With this, the rest of the elements stack up one below the other based on the screen size / mobile device.
Similarly, let’s create 3 more services using the same code but with different icon, heading and the description, like so:
<div class="col-md-3 col-sm-6 col-xs-12 d-flex flex-column align-items-center mb-5">
<div class="icon-bg d-flex justify-content-center align-items-center mb-4">
<i class="fas fa-code icon pink-color"></i>
</div>
<h5 class="purple-color text-center bold">Web Development</h5>
<p class="text-center purple-color">We transform the designs and bring it to life with the help of expert developers from the team.</p>
<a href="#" class="know pink-color">
Know more <i class="fas fa-long-arrow-alt-right ml-2"></i>
</a>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 d-flex flex-column align-items-center mb-5">
<div class="icon-bg d-flex justify-content-center align-items-center mb-4">
<i class="fab fa-intercom icon pink-color"></i>
</div>
<h5 class="purple-color text-center bold">App Development</h5>
<p class="text-center purple-color">A team of developers work on both Android and iOS apps, using various tools and technologies.</p>
<a href="#" class="know pink-color">
Know more <i class="fas fa-long-arrow-alt-right ml-2"></i>
</a>
</div>
<div class="col-md-3 col-sm-6 col-xs-12 d-flex flex-column align-items-center mb-5">
<div class="icon-bg d-flex justify-content-center align-items-center mb-4">
<i class="fas fa-chart-bar icon pink-color"></i>
</div>
<h5 class="purple-color text-center bold">Social Analytics</h5>
<p class="text-center purple-color">Social Media team keeps you updated with the trending products in the market and their analytics.</p>
<a href="#" class="know pink-color">
Know more <i class="fas fa-long-arrow-alt-right ml-2"></i>
</a>
</div>
As a next step, we’ll add another row for the testimonials outside of the ‘services’ row.
<div class="row mx-0 quote-bg py-5 justify-content-center">
</div>
We make this row in the center and give it a padding and margin. It also has a class called ‘quote-bg’, which uses a linear gradient background:
div.quote-bg {
background: linear-gradient(to bottom, #6f04a2, #4b04a0);
}
Next, we add a big, quote icon using the following code, which at the center of the screen and takes full width:
<div class="col-md-12 d-flex flex-row justify-content-center pb-5">
<i class="fas fa-quote-left quote pink-color"></i>
</div>
And now, we add testimonial:
<div class="col-md-6 mb-5 px-3">
<h4 class="white-color text-center">We planned to make the idea functional and thanks to this great team, which helped us in realising our idea into a fully functional product, with amazing design and super cool features and functionalities.</h4>
</div>
Finally, we add the image, arrows to navigate and then the name of the person who has added that testimonial:
<div class="col-md-8 d-flex flex-row justify-content-center align-items-center ">
<i class="fas fa-chevron-left profile-nav mr-4"></i>
<div class="d-flex flex-column justify-content-center align-items-center">
<img class="profile mb-3" src="https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940" alt="">
<h6 class="profile-name">John Doe</h6>
</div>
<i class="fas fa-chevron-right profile-nav ml-4"></i>
</div>
In the above code, we first make a div row, so that elements are side by side. So that the left arrow is first, then the image(https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940) and then the right arrow icon. Again, within the middle div, the div is made flex column, so that the image and the name get displayed one below the other. Image is given a fixed width and height with a border radius of 50%, to make it a circle, using the following CSS:
img.profile {
width: 6em;
height: 6em;
border-radius: 50%;
object-fit: cover;
}
.profile-name {
color: #f3f3f3;
letter-spacing: 2px;
text-transform: uppercase;
}
In the next and final post, we’ll create the ‘Contact Us’ section.
For complete guide on this post, kindly follow the video tutorial below:
Thanks for reading and watching. If you found this post and the video helpful, kindly like, share and subscribe by clicking on ‘YouTube’ button below, for more such videos.
Everything is very open and very clear explanation of issues. was truly information.活婴儿色情片
antivert
Sitenizin tasarımı ve içerikleri çok başarılı!
Hi there, I’m submitting my blog post for your review and approval. Appreciate your help.
Hi there, I kindly request you to review and publish my blog post. Thank you!
Sitenizin içeriklerini beğendim, devamını dilerim.
Hi, could you please review my blog post and approve it for publication? Wishing you a productive day.
Teşekkürler, içerikleriniz çok bilgilendirici.
Good day, I’m submitting my blog post for your consideration. Appreciate your valuable feedback in advance.
Jogue e ganhe com o jogo Fortune Tiger
Desfrute de um ótimo jogo Fortune Tiger
Всем рекомендую Букмекерскую контору 1win
Легендарная Букмекерская контора 1win
cougarsbkjersey.com
非常に有益な情報が満載で、読み応えがありました。
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.国产线播放免费人成视频播放
Рекомендую Букмекерскую контору 1win
Лучшая Букмекерская контора 1win
Thank you for great article. Hello Administ .国产线播放免费人成视频播放
Топовая Букмекерская контора 1win
Крутая Букмекерская контора 1win
Топ Букмекерская контора 1win
Самая надежная Букмекерская контора 1win
Divirta-se com o jogo Fortune Tiger
Lucro ao jogar o jogo Fortune Tiger
I really love to read such an excellent article. Helpful article. Hello Administ . 国产线播放免费人成视频播放
Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.兒童色情
Thank you for great content. Hello Administ. 国产线播放免费人成视频播放
Thank you great post. Hello Administ .国产线播放免费人成视频播放
Надежная Букмекерская контора 1win
Советую лучшую Букмекерскую контору 1win
Nice article inspiring thanks. Hello Administ . 国产线播放免费人成视频播放
Советую лучшую в своем роде Букмекерскую контору 1win
Надежная Букмекерская контора №1 1win
After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.儿童色情片
Надежная Букмекерская контора №1 в мире 1win
Советую лучшую Букмекерскую контору 1win
Great post thank you. Hello Administ . 国产线播放免费人成视频播放
homeideascoach.com
greenhousebali.com
Советую выбрать лучшую Букмекерскую контору 1win
Самая надежная Букмекерская контора №1 в мире 1win
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.国产线播放免费人成视频播放
Venha e receba seus ganhos no jogo Fortune Tiger
Ganhe grandes prêmios no jogo Fortune Tiger
hierher weitergeleitet
Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.
Good info. Lucky me I reach on your website by accident, I bookmarked it.
Woah! I’m really loving the template/theme of this site.
It’s simple, yet effective. A lot of times it’s very difficult to
get that “perfect balance” between user friendliness and visual appeal.
I must say that you’ve done a fantastic job with
this. In addition, the blog loads extremely fast for me
on Firefox. Exceptional Blog!
Good info. Lucky me I reach on your website by accident, I bookmarked it. 現場兒童色情片
Выбираем лучшую Букмекерскую контору 1win
After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.
Топовая Букмекерская контора №1 1win
Hey there great blog! Does running a blog similar to this take a lot of work? I have virtually no expertise in computer programming but I was hoping to start my own blog soon. Anyway, if you have any recommendations or tips for new blog owners please share. I know this is off topic nevertheless I just needed to ask. Thanks a lot!
Sosyal Mavi, sosyal medya stratejinizi güçlendirmenin en akıllıca yolu! Şimdi keşfedin ve takipçi sayınızı artırın.
İçerikleriniz ilginçti, teşekkürler.
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.
Выбираем топовую Букмекерскую контору 1win
Крутая Букмекерская контора №1 1win
Everything is very open and very clear explanation of issues. was truly information.活婴儿色情片
Выбираем надежную Букмекерскую контору 1win
Thank you for great content. Hello Administ. 国产线播放免费人成视频播放
bestchicago.net
Good info. Lucky me I discovered your website by accident (stumbleupon). I have book-marked it for later!
Выбрал для себя надежную Букмекерскую контору 1xbet
Рекомендация от меня – Букмекерская контора №1 1xbet
I’ve recently started a website, the info you offer on this website has helped me tremendously. Thank you for all of your time
Introduction: Joint pain is a common problem that many people face, especially as they age. One popular solution that has garnered attention in recent years is CBD products.
My web-site http://www.pinnaclebattleship.com/wiki/index.php/User:JointPlusCBD
Рекомендация от меня – лучшая Букмекерская контора 1xbet
Выбрал для себя топовую Букмекерскую контору 1xbet
Рекомендация от меня – самая лучшая Букмекерская контора 1xbet
Выбрал для себя лучшую Букмекерскую контору 1xbet
Самая лучшая Букмекерская контора 1xbet
etsyweddingteam.com
このブログのファンになりました。いつも感謝しています。
Thank you for great information. Hello Administ . 国产线播放免费人成视频播放
Выбрал для себя потрясающую Букмекерскую контору 1xbet
Самая лучшая Букмекерская контора, советую 1xbet
Выбрал для себя шикарную Букмекерскую контору 1xbet
Самая надежная Букмекерская контора, советую 1xbet
Выбрал шикарную Букмекерскую контору 1xbet
Sitenizi keşfetmek güzeldi, teşekkürler.
Самая крутая Букмекерская контора, советую 1xbet
Выбрал лучшую Букмекерскую контору 1xbet
myambutol
northfloridahouse.com
Представляю лучшую Букмекерскую контору – 1xbet
Крутая Букмекерская контора, советую 1xbet
usainvesttoday.com
italycarsrental.com
Представляю топовую Букмекерскую контору – 1xbet
Лучшая Букмекерская контора, советую 1xbet
Hello, I’m submitting my blog post for your consideration. Appreciate your feedback.
After all, what a great site and informative posts, I will upload inbound link – bookmark this web site? Regards, Reader.儿童色情片
The Basic Principles Of buy injectable steroids. https://landenrfse57025.actoblog.com/26990338/the-basic-principles-of-buy-injectable-steroids
Thank you for great information. Hello Administ . 国产线播放免费人成视频播放
chinanewsapp.com
Представляю наилучшую Букмекерскую контору – 1xbet
Переходим все сюда 1win
Крутой сайт 1win
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.国产线播放免费人成视频播放
Рекомендую Букмекерскую контору – 1xbet
Надежная Букмекерская контора, советую 1xbet
Hi, I’m kindly requesting you to review and publish my blog post. Looking forward to your response.
bmipas.com
このブログの内容はいつも豊富で、非常に参考になります。
Takipçi sayınızı arttırmak için doğru adrestesiniz! Sosyal Mavi ile hedeflerinize ulaşın.
Everything is very open and very clear explanation of issues. was truly information.
Thank you for great content. Hello Administ.
Hello, could you please review my blog post and approve it for publication? Thanks a lot.
Sosyal Mavi ile sosyal medya hesaplarınızı daha etkili hale getirin! Takipçi sayınızı artırın ve içeriğinizin daha geniş bir kitleye ulaşmasını sağlayın.
Everything is very open and very clear explanation of issues. was truly information.活婴儿色情片
Hello, I’d appreciate it if you could review and approve my blog post. Thanks a lot.
Hi there, I’m kindly requesting you to review and publish my blog post. Waiting for your feedback.
Harika site, içeriklerinize bayıldım!
Profilinizin popülerliğini arttırmak için Sosyal Mavi’yi keşfedin! Hızlı, güvenilir ve etkili bir şekilde takipçi kazanın.
Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across.儿童色情
Thank you great post. Hello Administ .国产线播放免费人成视频播放
Great post thank you. Hello Administ . 国产线播放免费人成视频播放
Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me.兒童色情
etsyweddingteam.com
実践に役立つ具体的な内容が充実しています。感謝!
I really love to read such an excellent article. Helpful article. Hello Administ . 国产线播放免费人成视频播放
onair2tv.com
Hongzhi 황제는 방금 정신을 차렸지 만 그의 얼굴은 놀랐고 그의 눈은 멍했습니다.
Nice article inspiring thanks. Hello Administ . 国产线播放免费人成视频播放
Thank you great posting about essential oil. Hello Administ . 国产线播放免费人成视频播放