An open API service indexing awesome lists of open source software.

https://github.com/polar-nik/blank-layout

Small blank template for creating layouts
https://github.com/polar-nik/blank-layout

css html html5-layout quick-start quick-start-template starter-kit template web

Last synced: about 2 months ago
JSON representation

Small blank template for creating layouts

Awesome Lists containing this project

README

        

# blank-layout

This is my personal small template to quick start in layout creating.

## What technologies using?
- HTML5
- CSS3 + SASS
- [Bootstrap v5.3.2](https://getbootstrap.com/docs/5.3/getting-started/introduction/)
- [jQuery v3.7.1](https://jquery.com/)

## What Plugins included?
- [Swipper v11.0.4](https://swiperjs.com/get-started)
- [fancyapps/ui v5.0.28](https://fancyapps.com/docs/ui/installation/) (ex. fancybox)
- [FontAwesome icons v6.4.2](http://fontawesome.com)
- [axios v1.6.7](https://github.com/axios/axios) (**Warning!** This script need to create simple `POST`/`GET` queries **only** if you are **not using jQuery**. On example page this script commented!)

## How to use Swipper plugin?*
It's very simple:
```html

.swiper {
width: 600px;
height: 300px;
}





Slide 1

Slide 2

Slide 3

...






$(document).ready(function(){
const swiper = new Swiper('.swiper', {
// Optional parameters
direction: 'vertical',
loop: true,

// If we need pagination
pagination: {
el: '.swiper-pagination',
},

// Navigation arrows
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},

// And if we need scrollbar
scrollbar: {
el: '.swiper-scrollbar',
},
});
});

```

## How to use fancybox plugin?*
It's much easier than using swipper slider :)
```html

Fancybox.bind("[data-fancybox]");
```

### If there's a modal window and how to use them?

This will help us a fancybox plugin:

You have to place a `DIV` container into the content of the page:
```html

Show modal window

```

Then simply create a link using `data-src` attribute that matches CSS id selector of the element you want to open (`#hidden-content` in this example):
```html


Hello


World!



```

And don't forget to initialize it!
```html

Fancybox.bind("[data-fancybox]", {
// Your custom options
});

```

## How to use axios?*
**axios** - Promise based HTTP client for the browser and node.js

Performing a `GET` request:
```javascript
axios.get('/user', {
params: {
ID: 12345
}
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
}
);
```
Performing a `POST` request:
```javascript
axios.post('/user', {
firstName: 'Fred',
lastName: 'Flintstone'
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
}
);
```

## In 1.4.1 version:

**updates:**
- axios updated to 1.6.7
- `/fonts` directory moved to `/vendor/fonts`

***

*\* For more documentation please visit official site.*