Skip to content
Snippets Groups Projects
Unverified Commit b688d83f authored by Shrimadhav U K's avatar Shrimadhav U K
Browse files

restructuring

parent 26e34eb7
Branches
No related merge requests found
......@@ -2,10 +2,8 @@ image: node:6.6.0
pages:
stage: deploy
script:
- npm install -g grunt-cli bower
- npm install
- bower install --allow-root
- grunt public:dev
- ./node_modules/grunt-cli/bin/grunt public:dev
artifacts:
paths:
- public
......
......@@ -60,13 +60,13 @@ module.exports = function(grunt) {
expand: true,
files: [{
expand: true,
cwd: 'bower_components/html5shiv/dist',
cwd: 'node_modules/html5shiv/dist',
src: "**",
dest: 'public/js'
},
{
expand: true,
cwd: 'bower_components/respond/src',
cwd: 'node_modules/Respond.js/src',
src: "**",
dest: 'public/js'
}
......@@ -76,7 +76,7 @@ module.exports = function(grunt) {
expand: true,
files: [{
expand: true,
cwd: 'bower_components/leaflet/dist/images',
cwd: 'node_modules/leaflet/dist/images',
src: "**",
dest: 'public/img'
}]
......@@ -105,9 +105,9 @@ module.exports = function(grunt) {
compress: {
files: {
'public/js/index.js': [
//'bower_components/jquery/dist/jquery.min.js',
//'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/leaflet/dist/leaflet.js',
//'node_modules/jquery/dist/jquery.min.js',
//'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/leaflet/dist/leaflet.js',
'js/*.js'
]
},
......@@ -125,10 +125,10 @@ module.exports = function(grunt) {
compress: {
files: {
'public/css/index.css': [
'bower_components/bootstrap/dist/css/bootstrap.min.css',
//'public/bower_components/font-awesome/css/font-awesome.min.css',
//'public/bower_components/normalize-css/normalize.css',
'bower_components/leaflet/dist/leaflet.css',
'node_modules/bootstrap/dist/css/bootstrap.min.css',
//'node_modules/font-awesome/css/font-awesome.min.css',
//'node_modules/normalize.css/normalize.css',
'node_modules/leaflet/dist/leaflet.css',
'css/*.css'
]
}
......
## Official Website of Free Software User Groups in India
## Dependencies
1. Node
......@@ -9,12 +8,10 @@
1. Install Node ( Welcome to the world of Node <3 )
2. run `npm install -g grunt-cli`
3. run `npm install -g bower`
## Installation
1. `npm install` from root folder
2. `bower install` from root folder
## Running the application
......@@ -85,16 +82,16 @@ Let us know ;)
Official Website of Free Software User Groups in India
Copyleft (ɔ) 2017 FSCI (Free Software Community of India) - All rights reserved, all wrongs reversed
This project comes under free software license: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This project is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
{
"name": "fsug",
"authors": [
"FSCI - Free Software Community of India <fosscommunity.in@disroot.org>"
],
"description": "Free Software User Groups in India",
"license": "GPL-3.0",
"homepage": "http://fsug.in/",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {
"bootstrap": "^3.3.7",
"normalize-css": "normalize.css#4.1.1",
"jquery": "2.2.4",
"html5shiv": "3.7.0",
"respond": "https://github.com/scottjehl/Respond.git#1.4.0",
"leaflet": "^1.0.3"
},
"resolutions": {
"jquery": "~2.2.4"
}
}
#improve {
font-size: 12px;
vertical-align: middle;
background-color: #EEEEEE;
padding: 10px;
border-radius: 2px;
margin-top: 30px;
}
@font-face {
font-family: Amaranth-Regular;
src: url(../fonts/Amaranth-Regular.ttf);
}
@font-face {
font-family: Roboto-Thin;
src: url(../fonts/Roboto-Thin.ttf);
}
#wrapper {
max-width: 968px;
margin: auto;
color: #454545;
}
#main {
text-align: center;
margin: 8px;
}
#main h1 {
font-family: "Amaranth-Regular";
color: #949494;
}
#main h2 {
font-family: "Roboto-Thin";
color: #898989;
}
#main p {
text-align: justify;
}
#mapid {
height: 60vh;
margin: 20px auto;
}
/* Override values in leaflet.css */
#mapid.leaflet-container .leaflet-pane .leaflet-popup .leaflet-popup-content-wrapper .leaflet-popup-content {
margin: 5px 20px 15px;
}
#preamble-list {
text-align: left;
padding-left: 15px;
}
#preamble-list li {
padding: 10px;
}
@font-face {
font-family: Amaranth-Regular;
src: url(../fonts/Amaranth-Regular.ttf);
}
@font-face {
font-family: Roboto-Thin;
src: url(../fonts/Roboto-Thin.ttf);
}
#wrapper {
max-width: 968px;
margin: auto;
color: #454545;
}
#main {
text-align: center;
margin: 8px;
}
#main h1 {
font-family: "Amaranth-Regular";
color: #949494;
}
#main h2 {
font-family: "Roboto-Thin";
color: #898989;
}
#main p {
text-align: justify;
}
#mapid {
height: 60vh;
margin: 20px auto;
}
/* Override values in leaflet.css */
#mapid.leaflet-container .leaflet-pane .leaflet-popup .leaflet-popup-content-wrapper .leaflet-popup-content {
margin: 5px 20px 15px;
}
#preamble-list {
text-align: left;
padding-left: 15px;
}
#preamble-list li {
padding: 10px;
}
#improve {
font-size: 12px;
vertical-align: middle;
background-color: #EEEEEE;
padding: 10px;
border-radius: 2px;
margin-top: 30px;
}
......@@ -186,5 +186,3 @@ var locations = [{
"MATURL": "",
"TGURL": ""
}];
var locations_length = locations.length;
......@@ -13,9 +13,9 @@ var mapMarker = L.icon({
});
// see locations.js file to add new locations
var locations_length = locations.length;
for (var i = 0; i < locations_length; i++) {
var texttodisplay = "";
texttodisplay += "<b>";
texttodisplay += "";
......@@ -60,6 +60,7 @@ for (var i = 0; i < locations_length; i++) {
}
texttodisplay += "";
texttodisplay += "</b>";
if ((locations[i].LAT !== "") || (locations[i].LNG !== "")) {
L.marker([locations[i].LAT, locations[i].LNG], {
icon: mapMarker
......
......@@ -12,6 +12,7 @@
"devDependencies": {
"connect-livereload": "^0.5.4",
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-connect-proxy": "^0.2.0",
"grunt-contrib-concat": "^1.0.1",
"grunt-contrib-connect": "^1.0.2",
......@@ -29,7 +30,15 @@
"load-grunt-tasks": "^3.5.0",
"time-grunt": "^1.3.0"
},
"dependencies": {},
"dependencies": {
"html5shiv": "^3.7.0",
"Respond.js": "git+https://github.com/scottjehl/Respond.git#1.4.0",
"jquery": "2.2.4",
"bootstrap": "^3.3.7",
"normalize.css": "^7.0.0",
"font-awesome": "^4.7.0",
"leaflet": "^1.0.3"
},
"author": "FSCI - Free Software Community of India <fosscommunity.in@disroot.org>",
"license": "GPL-3.0"
}
//- Mixins and Varibles
include ./settings/mixins
include ./settings/variables
doctype
html(lang='en')
head
include ./templates/head_inwrapper
include ./templates/meta_seo
title FSCI (Free Software Community of India)
include ./templates/css
include ./templates/meta_favicons
body
block content
include ./templates/js
head
include ./templates/head_inwrapper
include ./templates/meta_seo
include ./templates/meta_favicons
block head
include ./templates/css
body
block content
include ./templates/js
extends ../layout.pug
block content
block head
base(href='/')/
title 404. Not Found!
p.FourZeroFour
h1.text-center 404. Not Found
block content
p.FourZeroFour
h1.text-center 404. Not Found
extends ../layout.pug
block head
title= $vars.title
block content
#wrapper.container
#main.row
h1 Free Software User Groups in India
#mapid
ol#preamble-list
li Free Software Community of India is a collective of Free Software (sometimes also called as Open Source Software) users, advocates and developers.
li We maintain communication and collaboration infrastructure for everyone that respects their freedom and privacy. We maintain a list of Free Software communities and offer sub domains of fsug.in or fosscommunity.in. We depend on donations and community manpower to run the infrastructure.
li We mentor Free Software enthusiasts to become Free Software contributors.
li We provide GNU/Linux installation and configuration support mainly via online messaging groups.
p
|Join the conversation at our
a(href='https://matrix.to/#/#fsci:matrix.org', target='__blank') matrix chat room
| or collaborate with us on our
a(href='https://www.loomio.org/g/esPoQ4S0/free-software-community-of-india-fsci-', target='__blank') loomio group
|.
p
|If you need a subdomain or want to list your community in the map please
a(href='mailto:fosscommunity.in@disroot.org') mail to FSCI
| with sufficient details of your community or
a(href='https://gitlab.com/fsci/fsci.org.in/blob/master/js/locations.js', target='__blank') edit this list
|.
#improve
a(href='https://gitlab.com/fsci/fsci.org.in', target='_blank')
img(src='img/code.png')
span Improve this page
#wrapper.container
#main.row
h1= $vars.heading
#mapid
ol#preamble-list
each item in $vars.preamblelist
li!= item
p
|Join the conversation at our
a(href=$vars.MatrixLink, target='_blank') matrix chat room
| or collaborate with us on our
a(href=$vars.LoomioLink, target='_blank') loomio group
|.
p
|If you need a subdomain or want to list your community in the map please
a(href='mailto:fosscommunity.in@disroot.org') mail to FSCI
| with sufficient details of your community or
a(href='https://gitlab.com/fsci/fsci.org.in/blob/master/js/locations.js', target='_blank') edit this list
|.
#improve
a(href='https://gitlab.com/fsci/fsci.org.in', target='_blank')
img(src='img/code.png', alt="Contribute!")
span Improve this page
mixin meta(name,content)
meta(name=name, content=content)/
mixin metap(property,content)
meta(property=property, content=content)/
mixin link(rel, href)
link(rel=rel, href=href, type!=attributes.type, sizes!=attributes.sizes, color!=attributes.color)/
mixin script(src)
script(type="text/javascript", src=src)
-
var $vars = {}; //funky name to hold all global variables in templates.
$vars.title = "FSCI (Free Software Community of India)";
$vars.preamblelist = [
"Free Software Community of India is a collective of Free Software (sometimes also called as Open Source Software) users, advocates and developers.",
"We maintain communication and collaboration infrastructure for everyone that respects their freedom and privacy. We maintain a list of Free Software communities and offer sub domains of fsug.in or fosscommunity.in. We depend on donations and community manpower to run the infrastructure.",
"We mentor Free Software enthusiasts to become Free Software contributors.",
"We provide GNU/Linux installation and configuration support mainly via online messaging groups."
];
$vars.heading = "Free Software User Groups in India";
$vars.LoomioLink = "https://www.loomio.org/g/esPoQ4S0/free-software-community-of-india-fsci-";
$vars.MatrixLink = "https://matrix.to/#/%23fsci:matrix.org";
$vars.TGLink = "https://t.me/fscin";
$vars.author = "";
$vars.keywords = "";
$vars.description = "";
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
// HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries
// WARNING: Respond.js doesn't work if you view the page via file://
<!--[if lt IE 9]>
<script type="text/javascript" src="js/html5shiv.js"></script>
<script type="text/javascript" src="js/respond.js"></script>
+script('js/html5shiv.js')
+script('js/respond.js')
<![endif]-->
//- Compiled CSS
link(rel='stylesheet', href='css/index.css')/
//- the files in the css directory are added here on grunt serve
+link('stylesheet', 'css/index.css')(type='text/css')
meta(charset='utf-8')/
meta(http-equiv='X-UA-Compatible', content='IE=edge;chrome=1')/
meta(name='viewport', content='width=device-width, initial-scale=1.0')/
meta(http-equiv='X-UA-Compatible', content='IE=edge')/
+meta('viewport','width=device-width, initial-scale=1.0')
// The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags
meta(http-equiv='content-type', content='text/html')/
meta(name='apple-mobile-web-app-capable', content='yes')/
//- meta(http-equiv='content-type', content='text/html')/
+meta('apple-mobile-web-app-capable','yes')
//- Compile JavaScript
script(type="text/javascript", src='js/index.js')
+script('js/index.js')
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment