Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kaushikshivam/castle-landing-page
Castle is a general purpose start up landing page template that uses a custom 12 column grid
https://github.com/kaushikshivam/castle-landing-page
12-column css custom-grid flexbox flexbox-grid grid grid-system html landing-page landingpage layout
Last synced: 9 days ago
JSON representation
Castle is a general purpose start up landing page template that uses a custom 12 column grid
- Host: GitHub
- URL: https://github.com/kaushikshivam/castle-landing-page
- Owner: KaushikShivam
- Created: 2019-07-26T15:46:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T20:32:41.000Z (about 2 years ago)
- Last Synced: 2024-11-07T09:47:52.740Z (about 2 months ago)
- Topics: 12-column, css, custom-grid, flexbox, flexbox-grid, grid, grid-system, html, landing-page, landingpage, layout
- Language: CSS
- Homepage: https://rawcdn.githack.com/KaushikShivam/Castle-landing-page/3bc8b446e45a992fc7af236495960a45eeae6de2/index.html
- Size: 2.22 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Castle - General purpose startup landing page
[Castle](https://rawcdn.githack.com/KaushikShivam/Castle-landing-page/3bc8b446e45a992fc7af236495960a45eeae6de2/index.html) is a professional, flat and modern website template. It uses a [custom 12-column grid](https://github.com/KaushikShivam/bootgrid) for layout
![Castle Screenshot](screenshot.png)
## Table of content
- [Description](#description)
- [Installation](#installation)
- [Scripts](#scripts)
- [Contact](#contact)## Description
This template uses the following:
- ### Modern CSS
- ### BEM Methodology
- ### Custom 4 column grid
- ### SASS
- `variables`
- `nesting`
- `parials and imports`
- `mixins`
- `functions`
- `extends`
- ### 7-1 project structure for SASS Files -- `base/`
- `components/`
- `layout/`
- `pages/`
- `themes/`
- `abstracts/`
- `vendors/`A [build script](#scripts) is created to accomodate older browser compatibility
## Installation
1. Clone the project to your local directory
```
git clone https://github.com/KaushikShivam/Castle-landing-page.git
```2. The project uses NPM for managing dependencies. Run npm install to install all the required dependencies
```
npm install
```
3. Run the watch script to view live changes to your CSS
```
npm run watch:sass
```
4. Open the index.html file in your browser to view the website in all its glory (Live-server is recommended to view live changes automatically)## Scripts
The project uses [AutoPrefixer](https://github.com/postcss/autoprefixer), [Node-sass](https://github.com/sass/node-sass), [npm-run-all](https://www.npmjs.com/package/npm-run-all) etc to build the following scripts:### Watch live changes in development
1. Watch live changes to the sass
```
"watch:sass": "node-sass sass/main.scss css/style.css -w"
```2. Run Live-server for live development changes
```
"devserver": "live-server --browser=firefox"
```
3. Script to run both simultaneously
```
"start": "npm-run-all --parallel devserver watch:sass",
```Run ```npm start``` to run the script
### Build script for production
1. Compile sass files
```
"compile:sass": "node-sass sass/main.scss css/style.comp.css"
```2. Add prefixes automatically to the modern CSS rules (supports last 10 years - Can be configured)
```
"prefix:css": "postcss --use autoprefixer -b 'last 10 versions' css/style.comp.css -o css/style.prefix.css"
```3. Adds compression
```
"compress:css": "node-sass css/style.prefix.css css/style.css --output-style compressed"
```
4. Final Build process
```
"build:css": "npm-run-all compile:sass prefix:css compress:css"
```Run ```npm run build:css``` to run the build script
## Contact
You can contact me at:- [Portfolio](https://www.shivamkaushik.com)
- [Email](mailto:[email protected])
- [Linkedin](https://www.linkedin.com/in/kshivamdev/)
- [Twitter](https://twitter.com/kShivamDev)
- [Medium](https://medium.com/@shivamkaushikofficial)
- [Angellist](https://angel.co/kshivamdev)