Documentation

LensMart - Glasses Store Mobile App Template ( Bootstrap + PWA )
logo

LensMart - Glasses Store Mobile App Template

This documentation is last updated on 3 september 2024

Thank you for purchasing this HTML template.

If you like this template, Please support us by rating this template with 5 stars


Sass Compile -

1.- Install Node.js

To compile Sass via the command line first, we need to install node.js. The easiest way is downloading it from the official website nodejs.org open the package and follow the wizard.

2.- Initialize NPM

NPM is the Node Package Manager for JavaScript. NPM makes it easy to install and uninstall third party packages. To initialize a Sass project with NPM, open your terminal and CD (change directory) to your project folder.

npm init

Once in the correct folder, run the command npm init. You will be prompted to answer several questions about the project, after which NPM will generate a package.json file in your folder.

3.- Install Node-Sass

Node-sass is an NPM package that compiles Sass to CSS (which it does very quickly too). To install node-sass run the following command in your terminal: npm install node-sass

npm install node-sass
4.- Write Node-sass Command

Everything is ready to write a small script in order to compile Sass. Open the package.json file in a code editor. You will see something like this: In the scripts section add an scss command

"scripts": {
  "sass": "node-sass --watch scss/main.scss css/style.css"
},
5.- Run the Script

To execute our one-line script, we need to run the following command in the terminal: npm run sass

npm run sass
6.- Other Option

--source-map

"sass": "node-sass --watch scss/main.scss css/style.css --source-map css/style.css.map"

Folder Directories -

Here we create a directory structure for your HTML project, you can organize your files and folders in a way that makes a proper sense for your project's structure.

  • images

    This folder contains all the images of LensMart template.

  • fonts

    This folder font files for various template features.

  • css

    This folder contains all the CSS files of LensMart template.

  • js

    This folder has all javascript files for various template features.

  • vendor

    This folder has all plugins used in the template.

  • script

    This folder has all script contact form used in the template.

  • scss

    Scss File


Theme Features -

Dark Theme

The template includes a design variation specifically tailored for a darker color scheme. Dark mode is an interface style that uses dark colors for the background, text, and other elements, as opposed to the traditional light mode that uses light colors. Dark mode is often favored for its reduced eye strain, especially in low-light environments.

<html lang="en" data-bs-theme="dark">

HTML File -

Here we share folder structure of our package, this is a simple and clean structure of any package to understand the files and folders.

  • xhtml
    • assets
      • css
      • images
      • js
      • scss
    • app.js
    • index.js
    • manifest.json

Credits -

Several key elements and technologies contribute to the development of the site. Here's a list of elements and technologies that credited:


PWA Settings -

Manifest file

You will find this file in main folder where you can change the configration. It describes the name of the app, the start URL, icons, and all of the other details necessary to transform the website into an app-like format.

Head Section

Secure contexts (HTTPS)

The web application must be served over a secure network. Being a secure site is not only a best practice, but it also establishes your web application as a trusted site especially if users need to make secure transactions. Most of the features related to a PWA such as geolocation and even service workers are available only once the app has been loaded using HTTPS.

Service workers

A service worker is a script that allows intercepting and control of how a web browser handles its network requests and asset caching. Here you can attached the css and js files.

Footer Script

HTML Structure -

Head Structure

The head section of an HTML file typically contains metadata and links to external resources. Here's a basic structure of the head section in our HTML files:

1

Preloader

Effortlessly enhance your website's user experience with a sleek and customizable preloader, ensuring smooth transitions and engaging loading sequences.

2

Header Structure

Navigate with ease and make a lasting impression as LensMart's intuitive header design enhances user experience, setting the stage for a visually engaging mobile journey.

2

Sidenav

The structure of a side navigation (sidenav) in an HTML file often involves page listing.

3

Menubar

Elevate user interaction with thoughtfully designed menubar, ensuring a seamless and enjoyable mobile experience.

3

PWA Modal

Elevate your web application's responsiveness and user interaction by incorporating Modal, delivering a modern and intuitive navigation experience for users on various devices.

3

Footer Essentials

Footer Essentials contain scripts and functions such as jquery, bootstrap js, custom js and swiper js etc.

4

Do You Need Help To Customization

After Purchase A Template...

You Will Start Customizing According Your Requirement
BUT What If You Don't Know

SOLUTION IS HIRE DexignZone

Hire Same Team For Quality Customization

  • In Order To Ensure Your Website Is Live, We Will Customize
    The Template According To Your Requirements And Upload It to the Server.

Version History - #back to top

3 september 2024
  • New - Created & Upload LensMart