Documentation

Sofax

Thank you so much for purchasing our item from ThemeForest


  • Created: 17 Dec 2024

Installation

Hello! Welcome to Sofax's official documentation. Simple, Flexible, ready to use Next.js Template which will bring you so much closer to your end goals. Let’s dive in.

Prerequisites

-Node.js and npm

-React.js

-JavaScript

Installing Development Environment

We require many packages (dependencies) to run our site. Move into /Sofax-next (project root) directory and run command below.

npm run install

After the installation, you should have a folder named /node_modules in the project root directory..

How To Run Development Server

To start our development server run command below:

npm run dev

Open your browser and visit http://localhost:3000. You should see a page like below.

Home Page

Awesome! You are a genious. Now open the code editor and start hacking!

CLI Commands

Some useful commands to work with the project.

1. npm run dev to Start development server at http://localhost:3000

2. npm run build for Generating production build

3. npm run start To serve build files at http://localhost:3000


File Structure

Follow the steps below to setup your site template:

  1. Unzip the downloaded package and open the /Sofax-next folder to find all the template files. You will need to upload these files to your hosting web server using FTP or localhost in order to use it on your website.
  2. Below is the folder structure and needs to be uploaded to your website or localhost root directory:
    • Sofax-next/components - Component files
    • Sofax-next/app - All pages
    • Sofax-next/app/layout - Root layout
    • Sofax-next/public - Assets files
    • Sofax-next/app/fonts - Custom Font
  3. You should upload all or specific Next.js files as per your need.
  4. You are good to go for adding your content now!

Logo Settings

Replace logo with same name:

You can update the logo by simply replacing it with a new logo of the same name.



To replace the logo in your project, follow these simple steps:

1. Navigate to the public/images/logo directory within your project.

2. Locate the existing logo file that you wish to replace. Ensure that the replacement logo you have matches the same file format (e.g., PNG, JPG, SVG) and has the same name as the original logo file.

3. Once you've found the original logo file, simply replace it with your new logo file. Make sure to use the same filename to ensure that the project references the new logo correctly.

4. After replacing the logo file, any references to the logo throughout your project will automatically reflect the changes, as long as they are referencing the file by its filename.

5. You may need to restart your development server or rebuild your project for the changes to take effect, depending on your development environment.

6. That's it! You've successfully replaced the logo in your project.


Layout

Documentation and examples for layout, header and footer.

Layout Component:

To Integrate ScrollToTop hook you need to use hooks/ScrollToTop hook. Here's how you can use the hooks/ScrollToTop.jsx in your Layout component app/layout.jsx in your project:



To integrate header and footer into your pages, navigate to the components/layout/multi-page or components/layout/one-page directory. The LayoutOne.js component serves as a container for your Home One content and includes the components/home/home-one/header/index.jsx and components/home/home-one/footer/index.jsx components. Here's how you can use the LayoutOne.js component in your project:



In this code snippet, the LayoutOne.js Layout component wraps header, footer and children contents of your pages, providing a consistent layout structure. It includes the components/home/home-one/multi-page/header/ or components/home/home-one/one-page/header/ component at the top and the components/home/home-one/footer/ component at the bottom. You can use this LayoutOne.js component as a wrapper for your page content, ensuring that the header and footer are displayed consistently across your application.

This approach facilitates code reuse and makes it easy to maintain a unified design across multiple pages. Simply import and use the LayoutOne to LayoutThirteen component in your router/index.jsx file to incorporate the header and footer into your application layout seamlessly.


Header Components:

In the project structure, the header components are located within the components/home/home-[one to ten]/header directory. There are multipe header variations designed to be utilized across the application. Each header corresponds to a specific layout or design variation, catering to different sections or pages.

Header 1

Inside the components/home/home-one/header/index.jsx folder, you'll find Header Variant One component.



Header 2

Inside the components/common/header/index.jsx folder, you'll find Header Variant Two component.



Header 3

Inside the components/home/home-seven/header/index.jsx folder, you'll find Header Variant Three component.



Content

Documentation and examples for displaying typography, table, image and video and more..

Typography

Documentation and examples for typography, headings, body text, lists, and more.

Headings

Heading Example
<h1></h1>

h1. Heading

<h2></h2>

h2. Heading

<h3></h3>

h3. Heading

<h4></h4>

h4. Heading

<h5></h5>
h5. Heading
<h6></h6>
h6. Heading

Inline Text elements

You can use the mark tag to highlight text.

This line of text is meant to be treated as deleted text.

This line of text is meant to be treated as no longer accurate.

This line of text is meant to be treated as an addition to the document.

This line of text will render as underlined

This line of text is meant to be treated as fine print.

This line rendered as bold text.

This line rendered as italicized text.

<p>You can use the mark tag to <mark>highlight</mark> text.</p>
<p><del>This line of text is meant to be treated as deleted text.</del></p>
<p><s>This line of text is meant to be treated as no longer accurate.</s></p>
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p>
<p><u>This line of text will render as underlined</u></p>
<p><small>This line of text is meant to be treated as fine print.</small></p>
<p><strong>This line rendered as bold text.</strong></p>
<p><em>This line rendered as italicized text.</em></p>

FAQ

A FAQ is a list of frequently asked questions (FAQs) and answers on a particular topic.

Yes. You can customize our items to fit the needs of your end product
Royalty free means you just need to pay for rights to use the item once per end product. You don't need to pay additional or ongoing fees for each person who sees or uses it.

Please note that there may be some limits placed on uses under the different license types available on the marketplaces.
The item is what you purchase from Envato Market. The end product is what you build with that item.
- You can buy a web template, add your text and images, and use it as your website.
- You can buy an Next.js template, and use it as your website (but not as a stock template for sale).

Source & Credits

Images:

  • Freepik
  • Unsplash
  • Pexels

Fonts:

  • Clash Grotesk Semi bold
  • DM Sans
  • Inter

Packages:

  • react
  • react-dom
  • next
  • @cyriacbr/react-split-text
  • @ramonak/react-progress-bar
  • @vis.gl/react-google-maps
  • framer-motion
  • mixitup
  • react-countdown
  • react-countup
  • react-hook-form
  • react-modal-video
  • react-visibility-sensor
  • react-toastify
  • swiper-react

Support

Contact with us: wpsakib@gmail.com


Changelog

See what's new added, changed, fixed, improved or updated in the latest versions.

Version 1.0

Initial Release