Prerequisites
-Node.js and npm
-React.js
-JavaScript
Thank you so much for purchasing our item from ThemeForest
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.
-Node.js and npm
-React.js
-JavaScript
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..
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.
Awesome!
You are a
genious. Now
open the code editor and start hacking!
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
Follow the steps below to setup your site template:
Sofax-next/components
- Component filesSofax-next/app
- All pagesSofax-next/app/layout
- Root layoutSofax-next/public
- Assets files
Sofax-next/app/fonts
- Custom FontYou can update the logo by simply replacing it with a new logo of the same name.
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.
Documentation and examples for layout, header and footer.
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.
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.
Inside the
components/home/home-one/header/index.jsx
folder, you'll find Header Variant One
component.
Inside the
components/common/header/index.jsx
folder, you'll find Header Variant Two
component.
Inside the
components/home/home-seven/header/index.jsx
folder, you'll find Header Variant Three
component.
Documentation and examples for displaying typography, table, image and video and more..
Documentation and examples for typography, headings, body text, lists, and more.
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 |
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>
A FAQ is a list of frequently asked questions (FAQs) and answers on a particular topic.
Contact with us: wpsakib@gmail.com
See what's new added, changed, fixed, improved or updated in the latest versions.
Initial Release