Skip to content

Commit

Permalink
initialize version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
somrat-gyver committed Jul 11, 2020
1 parent 140ce06 commit b203785
Show file tree
Hide file tree
Showing 21 changed files with 267 additions and 285 deletions.
71 changes: 56 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,90 @@
<div align="center">
<h1><a href="https://themefisher.com/hugo-themes/">Vex Hugo</a></h1>
<img src="https://user-images.githubusercontent.com/37659754/54080628-86bb1c00-431e-11e9-9094-b69cff97a5e9.gif" alt="screenshot" width="100%">
</div>
# Easy Setup (Hugo + Netlify + Forestry)
Build your website with kross hugo theme by following this easy steps (No Coding Required)

Vex is a product landing page theme/template created by [Themefisher](www.themefisher.com) based on the latest [Bootstrap 4](https://getbootstrap.com/) framework.
It is fully responsive and beautifully crafted with Product Showcase, Testimonials and Email Subscription sections.
See https://themefisher.com/products/vex-bootstrap4-product-landing-page-website-template/ for more information.
<a href="http://bit.ly/meghna-hugo-installation" target="_blank" title="meghna hugo installation" rel="nofollow"><img width="100%" src="https://user-images.githubusercontent.com/37659754/70844354-4028be00-1e6a-11ea-8d84-02e9a25e7db8.png"></a>

**The images are only for demonstration purpose, Please don't use those images.**
In this tutorial we will show you to make your website live without buying any hosting and touching a single line of code. We made this tutorial based on [meghna hugo](https://github.com/themefisher/meghna-hugo) but you can setup everithing like this.

### What you need !!

1. Git acccount (Ex: Github, Gitlab etc ) . In our case we use github.
2. [Netlify](https://bit.ly/netlify-account) account to host files and add custom domain .
3. [Forestry](https://bit.ly/forestry-account) account to maintain whole project without code.


### Step 1 : Fork or Clone repository

First we will fork this [vex hugo](https://github.com/themefisher/vex-hugo) template.

### Step 2 : Add your repository in Forestry

Go to your [forestry](https://bit.ly/forestry-account) account and click on `import your site now`. declare your config.toml file [`exampleSite`] and fill up basic settings .

**Or just click this button for one click installation** [![import to forestry](https://assets.forestry.io/import-to-forestryK.svg)](https://app.forestry.io/quick-start?repo=themefisher/vex-hugo&engine=hugo&version=0.73.0&config=exampleSite)

Now mark everything as done, then go to configuration to change the base url . You can put any url but this have to similar as netlify . So for now put a name which you are going to put in netlify as netlify subdomain.

### Step 3 : Setup and host website with Netlify

Here comes the last step . Go to your [netlify](https://bit.ly/netlify-account) account and click add new site . Choose your git repository to import your website in netlify . And now you can see the forked `vex hugo` theme. select it and follow the steps. Then go to `site settings` for change the site name and put your subdoamin name here what you puted on forestry as base url. save it and go to `deploy` from top menu, Wait a while and click on `site preview` or just simply go to the subdomain you puted as base url. **BOOM! Your site is live.** Now you can go to forestry and add, remove or customize every setting and content.

> If you face any issue regarding the installation feel free to onen [open a new issue](https://github.com/themefisher/vex-hugo/issues)
## Table of Contents

- [Demo](#demo)
- [Installation](#installation)
- [Main Features](#main-features)
- [What's New](#what's-new)
- [Reporting Issues](#reporting-issues)
- [Technical Support or Questions](#technical-support-or-questions-(paid))
- [Licensing](#licensing)
- [More Hugo Themes](https://themefisher.com/hugo-themes/)

## Demo

| Homepage | Blog | Product | Contact |
|---|---|---|---|
| ![Homepage](https://user-images.githubusercontent.com/58769763/87217772-ba70e080-c36e-11ea-8b7d-a0cf98191e84.png) | ![Blog](https://user-images.githubusercontent.com/58769763/87217775-be046780-c36e-11ea-8e10-acb45e54beaa.png) | ![product](https://user-images.githubusercontent.com/58769763/87217776-bfce2b00-c36e-11ea-891a-6f3157c35311.png) | ![contact](https://user-images.githubusercontent.com/58769763/87217777-c197ee80-c36e-11ea-8bd4-8b513cdebe78.png) |

[Live Demo](http://demo.themefisher.com/vex-hugo/).

## Installation
**The images are only for demonstration purpose, Please don't use those images.**

Navigate to your themes folder in your Hugo site and use the following commands:
## Installation
At the top we have shown an easy hugo installation. but still if you think you want to go with the traditional way then use the following commands:

```
$ mkdir themes
$ cd themes
$ git clone [email protected]:themefisher/vex-hugo.git
$ cd vex-hugo/exampleSite/
$ hugo server --themesDir ../..
```


## Main features

* Fully Responsive Ready.
* Multilingual Support.
* Powered by bootstrap 4 framework.
* Product Showcase
* Email Subscription Section
* Product Showcase.
* Product Details Page.
* Snipcart Included.
* Blog Post.
* Contact Form.
* Email Subscription Section.
* Documented codes.

## What's New

* Multilingual Support.
* Product Details Page.
* Snipcart Included.
* Blog Post.
* Contact Form.

## Icons

To view the catalog of available themefisher-font icons, clone the repository from https://github.com/themefisher/themefisher-font and open `index.html` on your local computer.
To view the catalog of available themefisher-font icons, visit https://themefisher.github.io/themefisher-font/

## Reporting Issues

Expand Down
63 changes: 33 additions & 30 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
$(document).ready(function () {
// Preloader js
$(window).on('load', function () {
$('.preloader').fadeOut(100);
});

$(".gallery-slider").owlCarousel({
pagination: true,
autoPlay: 5000,
itemsDesktop: [1500, 4],
itemsDesktopSmall: [979, 3]
});
(function ($) {
'use strict';

// animation scroll js
var html_body = $('html, body');
$('.page-scroll').on('click', function () { //use page-scroll class in any HTML tag for scrolling
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var target = $(this.hash);
target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
html_body.animate({
scrollTop: target.offset().top - 0
}, 1500, "easeInOutExpo");
return false;
// Product slider
$('.product-slider').slick({
infinite: true,
slidesToShow: 4,
slidesToScroll: 1,
autoplay: true,
dots: false,
arrows: false,
responsive: [{
breakpoint: 1024,
settings: {
slidesToShow: 3
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 1
}
}
}
});

// easeInOutExpo Declaration
jQuery.extend(jQuery.easing, {
easeInOutExpo: function (x, t, b, c, d) {
if (t == 0) return b;
if (t == d) return b + c;
if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
}
]
});

});
})(jQuery);
128 changes: 18 additions & 110 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,20 @@ body {
-webkit-font-smoothing: antialiased;
}


.preloader {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #fff;
z-index: 999999;
display: flex;
align-items: center;
justify-content: center
}

h1,
h2,
h3,
Expand Down Expand Up @@ -134,6 +148,10 @@ a:active {
margin-bottom: 40px;
}

.slick-slide {
outline: 0
}

/*--
custom heading
--*/
Expand Down Expand Up @@ -199,116 +217,6 @@ a:active {
font-weight: bold;
}

/*Preloader*/
#preloader-wrapper {
background-color: #fff;
bottom: auto;
height: 100%;
left: auto;
position: fixed;
right: auto;
top: auto;
width: 100%;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
}

.pre-loader {
width: 130px;
height: 130px;
background: $primary-color;
border-radius: 50%;
animation: loading 6s infinite reverse linear;
position: relative;
font-family: $icon-font;

&:before {
content: "\f3bd";
position: absolute;
top: 50%;
left: 50%;
display: block;
font-size: 40px;
transform: translate(-50%, -50%);
color: #fff;
}
}

@keyframes loading {

/* */
0% {
box-shadow: inset 0 0 0 80px $primary-color;
}

8.49% {
background: $primary-color;
box-shadow: inset 0 0 0 160px $primary-color;
}

/* orange */
8.5% {
box-shadow: inset 0 0 0 0 #ff8133;
}

24.99% {
background: #ff8133;
box-shadow: inset 0 0 0 160px #ff8133;
}

/* yellow */
25% {
box-shadow: inset 0 0 0 0 #ffbe1a;
}

41.49% {
background: #ffbe1a;
box-shadow: inset 0 0 0 160px #ffbe1a;
}

/* */
41.5% {
box-shadow: inset 0 0 0 0 $primary-color;
}

57.99% {
background: $primary-color;
box-shadow: inset 0 0 0 160px $primary-color;
}

/* blue */
58% {
box-shadow: inset 0 0 0 0 #00b5d9;
}

74.49% {
background: #00b5d9;
box-shadow: inset 0 0 0 160px #00b5d9;
}

/* purple */
74.5% {
box-shadow: inset 0 0 0 0 #9772e5;
}

90.99% {
background: #9772e5;
box-shadow: inset 0 0 0 160px #9772e5;
}

/* */
91% {
box-shadow: inset 0 0 0 0 $primary-color;
}

100% {
background: $primary-color;
box-shadow: inset 0 0 0 80px $primary-color;
}
}

/* navigation */
.navbar {
&-brand {
Expand Down
16 changes: 16 additions & 0 deletions exampleSite/.forestry/front_matter/templates/post.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
label: Post
hide_body: false
fields:
- type: text
name: title
label: title
- type: datetime
name: date
label: date
- type: file
name: image
label: image
- type: text
name: description
label: description
28 changes: 28 additions & 0 deletions exampleSite/.forestry/front_matter/templates/product.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
label: Product
hide_body: false
fields:
- type: text
name: title
label: title
- type: datetime
name: date
label: date
- type: file
name: image
label: image
- type: text
name: description
label: description
- type: text
name: price
label: price
- type: text
name: discount_price
label: discount_price
- type: list
name: colors
label: colors
- type: list
name: sizes
label: sizes
Loading

0 comments on commit b203785

Please sign in to comment.