Files
site/res/templates/frontend-blogdetailpage.html
2025-12-27 21:59:58 +08:00

518 lines
26 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{{template "components/header.html" .}}
{{template "components/preloader.html" .}}
<!-- ------------------------------------- -->
<!-- Top Bar Start -->
<!-- ------------------------------------- -->
<div class="topbar-image bg-primary py-1 rounded-0 mb-0 alert alert-dismissible fade show" role="alert">
<div class="d-flex justify-content-center gap-sm-3 gap-2 align-items-center text-center flex-md-nowrap flex-wrap">
<span class="badge bg-white bg-opacity-10 fs-2 fw-bolder px-2">New</span>
<p class="mb-0 text-white fw-bold">Frontend Pages Included!</p>
</div>
<button type="button" class="btn-close btn-close-white p-2 fs-2" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
<!-- ------------------------------------- -->
<!-- Top Bar End -->
<!-- ------------------------------------- -->
<!-- ------------------------------------- -->
<!-- Header Start -->
<!-- ------------------------------------- -->
<header class="header-fp p-0 w-100">
<nav class="navbar navbar-expand-lg bg-primary-subtle py-2 py-lg-10">
<div class="custom-container d-flex align-items-center justify-content-between">
<a href="../main/frontend-landingpage.html" class="text-nowrap logo-img">
<img src="../assets/images/logos/dark-logo.svg" class="dark-logo" alt="Logo-Dark" />
<img src="../assets/images/logos/light-logo.svg" class="light-logo" alt="Logo-light" />
</a>
<button class="navbar-toggler border-0 p-0 shadow-none" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasRight" aria-controls="offcanvasRight">
<i class="ti ti-menu-2 fs-8"></i>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto mb-2 gap-xl-7 gap-8 mb-lg-0">
<li class="nav-item">
<a class="nav-link fs-4 fw-bold text-dark link-primary" href="../main/frontend-aboutpage.html">About Us</a>
</li>
<li class="nav-item">
<a class="nav-link fs-4 fw-bold text-dark link-primary" href="../main/frontend-blogpage.html">Blog</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link fs-4 fw-bold text-dark link-primary d-flex gap-2" href="../main/frontend-portfoliopage.html">Portfolio
<span class="badge text-primary bg-primary-subtle fs-2 fw-bolder hstack">New</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link fs-4 fw-bold text-dark link-primary" href="../main/index.html">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link fs-4 fw-bold text-dark link-primary" href="../main/frontend-pricingpage.html">Pricing</a>
</li>
<li class="nav-item">
<a class="nav-link fs-4 fw-bold text-dark link-primary" href="../main/frontend-contactpage.html">Contact</a>
</li>
</ul>
<div>
<a href="../main/authentication-login.html" class="btn btn-primary py-8 px-9">Log In</a>
</div>
</div>
</div>
</nav>
</header>
<!-- ------------------------------------- -->
<!-- Header End -->
<!-- ------------------------------------- -->
<!-- ------------------------------------- -->
<!-- Responsive Sidebar Start -->
<!-- ------------------------------------- -->
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasRight" aria-labelledby="offcanvasRightLabel">
<div class="offcanvas-header">
<a href="../main/frontend-landingpage.html">
<img src="../assets/images/logos/dark-logo.svg" alt="Logo-light" />
</a>
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="list-unstyled ps-0">
<li class="mb-1">
<a href="../main/frontend-aboutpage.html" class="px-0 fs-4 d-block text-dark link-primary w-100 py-2">
About Us
</a>
</li>
<li class="mb-1">
<a href="../main/frontend-blogpage.html" class="px-0 fs-4 d-block w-100 py-2 text-dark link-primary">
Blog
</a>
</li>
<li class="mb-1">
<a href="../main/frontend-portfoliopage.html" class="px-0 fs-4 d-flex align-items-center justify-content-start gap-2 w-100 py-2 text-dark link-primary">
Portfolio
<span class="badge text-primary bg-primary-subtle fs-2 fw-bolder hstack">New</span>
</a>
</li>
<li class="mb-1">
<a href="../main/index.html" class="px-0 fs-4 d-block w-100 py-2 text-dark link-primary">
Dashboard
</a>
</li>
<li class="mb-1">
<a href="../main/frontend-pricingpage.html" class="px-0 fs-4 d-block w-100 py-2 text-dark link-primary">
Pricing
</a>
</li>
<li class="mb-1">
<a href="../main/frontend-contactpage.html" class="px-0 fs-4 d-block w-100 py-2 text-dark link-primary">
Contact
</a>
</li>
<li class="mt-3">
<a href="../main/authentication-login.html" class="btn btn-primary w-100">Log In</a>
</li>
</ul>
</div>
</div>
<!-- ------------------------------------- -->
<!-- Responsive Sidebar End -->
<!-- ------------------------------------- -->
<div class="main-wrapper overflow-hidden">
<!-- ------------------------------------- -->
<!-- banner Start -->
<!-- ------------------------------------- -->
<section class="bg-primary-subtle pt-lg-14 py-lg-0 py-5">
<div class="container-fluid">
<div class="text-center">
<div class="d-flex justify-content-center">
<p class="fs-2 px-2 rounded-pill bg-muted bg-opacity-25 text-dark mb-0">
Web Development
</p>
</div>
<h2 class="text-dark fs-12 fw-bolder px-xl-12 my-9">
Building responsive websites: tips and tricks for modern developers
</h2>
<div class="d-flex justify-content-center align-items-center gap-10">
<div class="d-flex gap-2">
<i class="ti ti-eye fs-5 text-dark"></i>
<p class="mb-0 fs-2 fw-semibold text-dark">6941</p>
</div>
<div class="d-flex gap-2">
<i class="ti ti-message fs-5 text-dark"></i>
<p class="mb-0 fs-2 fw-semibold text-dark">3</p>
</div>
<div class="d-flex align-items-center gap-2">
<i class="ti ti-circle fs-2"></i>
<p class="mb-0 fs-2 fw-semibold text-dark">Tue, May 2</p>
</div>
</div>
</div>
<div class="mt-7 mt-md-5">
<img src="../assets/images/frontend-pages/blog-detail-banner.jpg" alt="blog detail banner" class="img-fluid rounded-3 mb-n11">
</div>
</div>
</section>
<!-- ------------------------------------- -->
<!-- banner End -->
<!-- ------------------------------------- -->
<!-- ------------------------------------- -->
<!-- Details Start -->
<!-- ------------------------------------- -->
<section class="mt-11 pb-md-5 pb-lg-12 pt-lg-14">
<div class="container-fluid">
<div class="row">
<div class="col-lg-4">
<div class="d-flex flex-column gap-3">
<div class="d-flex gap-3 pb-3 border-bottom ">
<div>
<img src="../assets/images/profile/user-6.jpg" alt="user" class="rounded-circle" width="44px" height="44px">
</div>
<div class="">
<p class="mb-0 text-dark fs-4 fw-semibold">Zachary Smith</p>
<p class="mb-0 fs-3 fw-bold">Product Manager</p>
</div>
</div>
<div class="py-9 d-flex flex-column gap-3 border-bottom">
<h4 class="fs-3 fw-bold text-uppercase text-muted mb-0 ">Contents</h4>
<a href="#mobile-first-approach" class="text-dark fs-4 fw-semibold link-primary">Adopt a
Mobile-First Approach</a>
<a href="#fluid-grid-layouts" class="text-dark fs-4 fw-semibold link-primary">Use Fluid
Grid Layouts</a>
<a href="#leverage-media" class="text-dark fs-4 fw-semibold link-primary">Leverage Media
Queries</a>
<a href="#optimize-images" class="text-dark fs-4 fw-semibold link-primary">Optimize
Images for Different Devices</a>
<a href="#conclusion" class="text-dark fs-4 fw-semibold link-primary">Conclusion</a>
</div>
<div class="py-9">
<h4 class="text-uppercase fs-3 fw-bold">Share</h4>
<div class="d-flex gap-6">
<a href="#" class="border round-40 hstack justify-content-center rounded-circle" data-bs-toggle="tooltip" data-bs-title="Facebook">
<img src="../assets/images/frontend-pages/icon-facebook-fill.svg" alt="facebook">
</a>
<a href="#" class="border round-40 hstack justify-content-center rounded-circle" data-bs-toggle="tooltip" data-bs-title="Instagram">
<img src="../assets/images/frontend-pages/icon-instagram.svg" alt="instagram">
</a>
<a href="#" class="border round-40 hstack justify-content-center rounded-circle" data-bs-toggle="tooltip" data-bs-title="YouTube">
<img src="../assets/images/frontend-pages/icon-youtube.svg" alt="youtube">
</a>
<a href="#" class="border round-40 hstack justify-content-center rounded-circle" data-bs-toggle="tooltip" data-bs-title="Linckedin">
<img src="../assets/images/frontend-pages/icon-linckedin.svg" alt="linckedin">
</a>
</div>
</div>
</div>
</div>
<div class="col-lg-8 mb-lg-0 mb-7">
<div class="d-flex flex-column gap-sm-4 gap-3">
<div class="">
<p class="fs-4 mb-sm-4 mb-3">
In todays digital age, having a responsive website is no longer optional—its a
necessity. With the increasing variety of devices used to access the web, from
smartphones and tablets to laptops and large desktop monitors, developers face the
challenge of ensuring a seamless experience across all screen sizes.
</p>
<p class="fs-4 mb-0">
This article offers essential tips and tricks for modern developers to create
responsive
websites that not only look great but also perform efficiently.
</p>
</div>
<div class="" id="mobile-first-approach">
<h3 class="fs-7 fw-bolder mb-sm-4 mb-3">
Adopt a Mobile-First Approach
</h3>
<p class="fs-4 mb-0">
Starting with mobile design and then scaling up is a widely recommended approach. By
prioritizing the mobile experience, developers can ensure that the most critical
content is accessible on smaller screens. Once the mobile version is optimized,
expanding to larger screens becomes much easier.
</p>
</div>
<div class="" id="fluid-grid-layouts">
<h3 class="fs-7 fw-bolder mb-sm-4 mb-3">
Use Fluid Grid Layouts
</h3>
<p class="fs-4 mb-0">
A fluid grid layout is the backbone of a responsive design. Unlike fixed layouts,
fluid grids use relative units like percentages instead of pixels, allowing the
layout to adjust smoothly across different screen sizes. Popular frameworks like
<a href="https://getbootstrap.com/" class="text-underline text-primary link-primary" target="_blank">Bootstrap</a> and Foundation
offer pre-built grid systems that simplify the
implementation of fluid grids.
</p>
</div>
<div class="" id="leverage-media">
<h3 class="fs-7 fw-bolder mb-sm-4 mb-3">
Leverage Media Queries
</h3>
<p class="fs-4 mb-sm-4 mb-3">
Media queries are CSS techniques that apply styles based on the screen size or
device characteristics. By using media queries, developers can create breakpoints in
their design, ensuring that the layout adapts to different screen widths. For
instance, you might want to change the font size or adjust the padding on a smaller
screen. A simple example of a media query is:
</p>
<ul class="list mb-0">
<li>
<p class="fs-4 mb-1">
<span class="fw-bolder">Set Breakpoints</span>: Define breakpoints for
different screen sizes (e.g., 600px,
768px, 1024px) to adjust the layout and design elements.
</p>
</li>
<li>
<p class="fs-4 mb-1">
<span class="fw-bolder">Adjust Font Sizes</span>: Use media
queries to change font sizes for readability on smaller screens.
</p>
</li>
<li>
<p class="fs-4 mb-1">
<span class="fw-bolder">Modify Layout</span>: Rearrange or
hide certain elements based on the screen size to maintain a clean design.
</p>
</li>
<li>
<p class="fs-4 mb-1">
<span class="fw-bolder">Responsive Images</span>: Serve
different image sizes using media queries to improve loading times.
</p>
</li>
<li>
<p class="fs-4 mb-1">
<span class="fw-bolder">Test Across Devices</span>: Ensure
media queries work as intended on various devices and orientations.
</p>
</li>
</ul>
</div>
<div class="" id="optimize-images">
<h3 class="fs-7 fw-bolder mb-sm-4 mb-3">
Optimize Images for Different Devices
</h3>
<p class="fs-4 mb-sm-4 mb-3">
Images can make or break the performance of a website. To ensure that your website
loads quickly on all devices, consider using responsive images. The &lt;picture&gt;
element in HTML5 allows you to serve different images based on the screen size
or resolution. Additionally, tools like
<a href="https://imageoptim.com/" class="text-underline text-primary link-primary" target="_blank">ImageOptim</a>
and
<a href="https://imageoptim.com/" class="text-underline text-primary link-primary" target="_blank">TinyPNG</a>
can help you compress images without sacrificing quality.
</p>
<p class="fs-4 mb-0">
Responsive design isnt just about screen sizes—its also about accessibility. Make
sure your website is usable for people with disabilities by following accessibility
best practices. Use semantic HTML, ensure keyboard navigation works seamlessly, and
provide alternative text for images. The
<a href="https://www.w3.org/WAI/WCAG21/quickref/" class="text-underline text-primary link-primary" target="_blank">Web Content Accessibility
Guidelines (WCAG)</a>
provide a comprehensive overview of accessibility standards.
</p>
</div>
<div class="" id="conclusion">
<h3 class="fs-7 fw-bolder mb-sm-4 mb-3">
Conclusion
</h3>
<p class="fs-4 mb-sm-4 mb-3">
Building responsive websites requires careful planning, testing, and a deep
understanding of both design and development principles. By adopting a mobile-first
approach, leveraging fluid grids and media queries, and optimizing both performance
and accessibility, modern developers can create websites that deliver a seamless
experience across all devices. As the famous saying goes, "A responsive design is
not a luxury; it's a necessity for every website today."
</p>
<p class="fs-4 mb-0">
Incorporating these tips and tricks into your workflow will not only improve the
user experience but also ensure your website stands out in todays competitive
digital landscape.
</p>
<div class="my-4 px-9 py-6 bg-info-subtle border-3 border-start border-primary">
<p class="fs-4 mb-0">
"A responsive design is not a luxury; it's a necessity for
every website today."
</p>
</div>
<p class="fs-4 mb-0">
For more resources on responsive web design, check out the
<a href="https://www.w3.org/WAI/WCAG21/quickref/" class="text-underline text-primary link-primary" target="_blank">
MDN Web Docs and Smashing
</a>
Magazines Guide.
</p>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- ------------------------------------- -->
<!-- Details End -->
<!-- ------------------------------------- -->
<!-- ------------------------------------- -->
<!-- Develop Start -->
<!-- ------------------------------------- -->
<section class="mb-5 mb-md-14 mb-lg-12">
<div class="custom-container">
<div class="bg-primary-subtle rounded-3 position-relative overflow-hidden">
<div class="row">
<div class="col-lg-6">
<div class="py-lg-12 ps-lg-12 py-5 px-lg-0 px-9">
<h2 class="fs-10 fw-bolder text-lg-start text-center">
Develop with feature-rich Bootstrap Dashboard
</h2>
<div class="d-flex justify-content-lg-start justify-content-center gap-3 my-4 flex-sm-nowrap flex-wrap">
<a href="../main/authentication-login.html" class="btn btn-primary py-6 px-9">Member Login</a>
<a href="../main/authentication-register.html" class="btn btn-outline-primary py-6 px-9">Register as Member</a>
</div>
<p class="fs-3 text-lg-start text-center mb-0">
<span class="fw-bolder">One-time purchase</span> - no recurring fees.
</p>
</div>
</div>
<div class="col-lg-6 d-lg-block d-none">
<img src="../assets/images/frontend-pages/design-collection.png" alt="banner" class="position-absolute develop-feature-rich">
</div>
</div>
</div>
</div>
</section>
<!-- ------------------------------------- -->
<!-- Develop End -->
<!-- ------------------------------------- -->
</div>
<!-- ------------------------------------- -->
<!-- Footer Start -->
<!-- ------------------------------------- -->
<footer>
<div class="container-fluid">
<div class="border-bottom">
<div class="row mb-sm-12 mb-4">
<div class="col-md-3 col-6">
<h3 class="fs-4 fw-semibold mb-7">Applications</h3>
<ul class="d-flex flex-column gap-9">
<li>
<a href="../main/app-kanban.html" class="fs-4 text-body link-primary">Kanban</a>
</li>
<li>
<a href="../main/app-invoice.html" class="fs-4 text-body link-primary">Invoice
List</a>
</li>
<li>
<a href="../main/eco-shop.html" class="fs-4 text-body link-primary">eCommerce</a>
</li>
<li>
<a href="../main/app-chat.html" class="fs-4 text-body link-primary">Chat</a>
</li>
<li>
<a href="../main/app-calendar.html" class="fs-4 text-body link-primary">Calendar</a>
</li>
<li>
<a href="../main/blog-posts.html" class="fs-4 text-body link-primary">Blog</a>
</li>
</ul>
</div>
<div class="col-md-3 col-6">
<h3 class="fs-4 fw-semibold mb-7">Forms</h3>
<ul class="d-flex flex-column gap-9">
<li>
<a href="../main/form-basic.html" class="fs-4 text-body link-primary">Form
Basic</a>
</li>
<li>
<a href="../main/form-horizontal.html" class="fs-4 text-body link-primary">Form
Horizontal</a>
</li>
<li>
<a href="../main/form-wizard.html" class="fs-4 text-body link-primary">Form
Wizard</a>
</li>
<li>
<a href="../main/form-bootstrap-validation.html" class="fs-4 text-body link-primary">Form Validation
</a>
</li>
<li>
<a href="../main/form-editor-quill.html" class="fs-4 text-body link-primary">Quill Editor</a>
</li>
</ul>
</div>
<div class="col-md-3 col-6">
<h3 class="fs-4 fw-semibold mb-7">Tables</h3>
<ul class="d-flex flex-column gap-9">
<li>
<a href="../main/table-basic.html" class="fs-4 text-body link-primary">Basic
Table</a>
</li>
<li>
<a href="../main/table-dark-basic.html" class="fs-4 text-body link-primary">Table
Dark Basic</a>
</li>
<li>
<a href="../main/table-sizing.html" class="fs-4 text-body link-primary">Table
Sizing</a>
</li>
<li>
<a href="../main/table-layout-coloured.html" class="fs-4 text-body link-primary">Coloured Table</a>
</li>
<li>
<a href="../main/table-datatable-basic.html" class="fs-4 text-body link-primary">Basic Initialisation</a>
</li>
<li>
<a href="../main/table-datatable-api.html" class="fs-4 text-body link-primary">API</a>
</li>
</ul>
</div>
<div class="col-md-3 col-6">
<h3 class="fs-4 fw-semibold mb-7">Follow us</h3>
<div class="d-flex gap-9">
<a href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-title="Facebook">
<img src="../assets/images/frontend-pages/icon-facebook.svg" alt="facebook">
</a>
<a href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-title="Twitter">
<img src="../assets/images/frontend-pages/icon-twitter.svg" alt="twitter">
</a>
<a href="javascript:void(0)" data-bs-toggle="tooltip" data-bs-title="Instagram">
<img src="../assets/images/frontend-pages/icon-instagram.svg" alt="instagram">
</a>
</div>
</div>
</div>
</div>
<div class="d-flex justify-content-between py-7 flex-md-nowrap flex-wrap gap-sm-0 gap-3">
<div class="d-flex gap-3 align-items-center">
<img src="../assets/images/logos/favicon.png" alt="icon">
<p class="fs-4 mb-0">All rights reserved by Modernize. </p>
</div>
<div>
<p class="mb-0">Produced by <a target="_blank" href="https://adminmart.com/" class="text-primary link-primary">AdminMart</a>.</p>
</div>
</div>
</div>
</footer>
<!-- ------------------------------------- -->
<!-- Footer End -->
<!-- ------------------------------------- -->
<!-- Scroll Top -->
<a href="javascript:void(0)" class="top-btn btn btn-primary d-flex align-items-center justify-content-center round-54 p-0 rounded-circle">
<i class="ti ti-arrow-up fs-7"></i>
</a>
<script src="../assets/js/vendor.min.js"></script>
<!-- Import Js Files -->
<script src="../assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<script src="../assets/libs/simplebar/dist/simplebar.min.js"></script>
<script src="../assets/js/theme/app.init.js"></script>
<script src="../assets/js/theme/theme.js"></script>
<script src="../assets/js/theme/app.min.js"></script>
<script src="../assets/js/frontend-landingpage/homepage.js"></script>