Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailfarooq committed Oct 5, 2019
0 parents commit a34f809
Show file tree
Hide file tree
Showing 26 changed files with 5,226 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db

# Bitbucket Pipelines
bitbucket-pipelines.yml
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# README #

## How do I get set up? ##

#### Install all dependencies ####
```npm install```

#### compile the code ####
```npm start```

## Contribution guidelines ##

* PR are always welcome
* Don't push anything directly into master branch

## Who do I talk to? ##

* ismailfarooq
2 changes: 2 additions & 0 deletions assets/dist/main.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/dist/main.js.map

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions assets/dist/style.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/dist/style.css.map

Large diffs are not rendered by default.

Binary file added assets/fonts/Roboto-Regular.ttf
Binary file not shown.
Binary file added assets/images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions assets/js/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
$(document).ready(function() {
// your code
var window = $(window);
})
7 changes: 7 additions & 0 deletions assets/sass/components/_footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//===========================================
// -Footer start
//===========================================

//===========================================
// -Footer end
//===========================================
7 changes: 7 additions & 0 deletions assets/sass/components/_header.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//===========================================
// -Header start
//===========================================

//===========================================
// -Header end
//===========================================
7 changes: 7 additions & 0 deletions assets/sass/components/_navbar.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//===========================================
// -Navbar start
//===========================================

//===========================================
// -Navbar end
//===========================================
87 changes: 87 additions & 0 deletions assets/sass/helpers/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
//===========================================
// -Mixins start
//===========================================

// conver px to rem
@function rem($pixels, $context: 16) {
@return ($pixels / $context) * 1rem;
}

// Media Query
@mixin mq($breakpoint, $type: min) {
// Checking $breakpoint value in $grid-breakpoints object value
@if map_has_key($grid-breakpoints, $breakpoint) {
// getting $grid-breakpoints object value and asign width
$width: map_get($grid-breakpoints, $breakpoint);
// Decrease 1px from $grid-breakpoints value for max-width $type
@if $type == max {
$width: $width - 1px;
}
// Print Media query
@media (#{$type}-width: $width) {
@content;
}
}
}

@mixin mq-only($min-width, $max-width) {
@if map_has_key($grid-breakpoints, $min-width) and
map_has_key($grid-breakpoints, $max-width)
{
// define value to relevant$grid-breakpoints
$min-width: map_get($grid-breakpoints, $min-width);
$max-width: map_get($grid-breakpoints, $max-width) - 1px;

@media (min-width: $min-width) and (max-width: $max-width) {
@content;
}
} @else {
@error "Please Define correct media query breakpoint";
}
}

@mixin font-face($family, $path, $name, $weight: normal, $style: normal) {
@font-face {
font-family: "#{$family}";
src: url("#{$path}/#{$name}.ttf") format("truetype"),
url("#{$path}/#{$name}.woff") format("woff"),
url("#{$path}/#{$name}.svg##{$name}") format("svg");
font-weight: $weight;
font-style: $style;
}
}

@mixin center($horizontal: true, $vertical: true) {
position: absolute;
@if ($horizontal and $vertical) {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
} @else if ($horizontal) {
left: 50%;
transform: translate(-50%, 0);
} @else if ($vertical) {
top: 50%;
transform: translate(0, -50%);
}
}

@mixin flex-center {
display: flex;
align-items: center;
justify-content: center;
}

@mixin square($size) {
width: $size;
height: $size;
}

@mixin circle($size) {
@include square($size);
border-radius: 50%;
}

//===========================================
// -Mixins end
//===========================================
30 changes: 30 additions & 0 deletions assets/sass/helpers/_variables.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
//===========================================
// -Variables start
//===========================================

// Colors start

// define your vars or override bootstrap vars
$default: red;
$primary: green;
$secondary: blue;
$alternate: cyan;

// Typography Family
$font-default: "Roboto", sans-serif;
$font-primery: "Montserrat", sans-serif;

$font-path: "../fonts";

// define your Break Points or override bootstrap Break Points
$grid-breakpoints: (
xs: 0,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
);

// ===========================================
// -Variables end
// ===========================================
7 changes: 7 additions & 0 deletions assets/sass/pages/_home.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//===========================================
// -Home Page start
//===========================================

//===========================================
// -Home Page end
//===========================================
14 changes: 14 additions & 0 deletions assets/sass/partials/_buttons.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
//===========================================
// -Buttons start
//===========================================

.btn {
cursor: pointer;
&[disabled],
&.disabled {
cursor: not-allowed;
}
}
//===========================================
// -Buttons end
//===========================================
11 changes: 11 additions & 0 deletions assets/sass/partials/_classes.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
//===========================================
// -Helper Classes start
//===========================================

.center {
margin: auto;
}

//===========================================
// -Helper Classes end
//===========================================
9 changes: 9 additions & 0 deletions assets/sass/partials/_fonts.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
//===========================================
// -Fonts start
//===========================================

@include font-face("family", $font-path, "Roboto-Regular", 400, "normal");

//===========================================
// -Fonts end
//===========================================
7 changes: 7 additions & 0 deletions assets/sass/partials/_forms.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
//===========================================
// -Forms Start
//===========================================

//===========================================
// -Forms end
//===========================================
61 changes: 61 additions & 0 deletions assets/sass/partials/_global.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//=======================================================
// -Global style start
//=======================================================

// Default style start

html,
body {
font-family: $font-default;
min-height: 100vh;
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
line-height: 1.5;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// Media Query max width Usage
@include mq("md", max) {
font-size: 14px;
}
// Media Query min max width Usage
@include mq-only("md", "xl") {
font-size: 15px;
}
// Media Query min width Usage
@include mq("xl", min) {
font-size: 16px;
}
}

// Make images easier to work with
img {
max-width: 100%;
display: block;
}

// Remove list styles on ul, ol elements with a class attribute
ul[class],
ol[class] {
padding-left: 0;
list-style: none;
}

%headings {
font-weight: 900;
text-transform: uppercase;
line-height: 1;
margin-top: 0;
}

@for $i from 1 through 6 {
h#{$i},
.h#{$i} {
@extend %headings;
}
}

//=======================================================
// -Global style end
//=======================================================
61 changes: 61 additions & 0 deletions assets/sass/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
//===========================================
// -Helpers Start
//===========================================

@import "helpers/variables";
@import "helpers/mixins";

//===========================================
// -Helpers End
//===========================================

//===========================================
// -Vendors Start
//===========================================

// Add packages as per your requirement
// package can be inlude via node_modules or manuallay from vendors folder

@import "../../node_modules/bootstrap/scss/bootstrap";
// or
// @import "vendors/bootstrap";

//===========================================
// -Vendors End
//===========================================

//===========================================
// -Partials Start
//===========================================

@import "partials/fonts";
@import "partials/classes";
@import "partials/buttons";
@import "partials/forms";
@import "partials/global";

//===========================================
// -Partials End
//===========================================

//===========================================
// -components Start
//===========================================

@import "components/header";
@import "components/footer";
@import "components/navbar";

//===========================================
// -components End
//===========================================

//===========================================
// -Pages Start
//===========================================

@import "pages/home";

//===========================================
// -Pages End
//===========================================
Loading

0 comments on commit a34f809

Please sign in to comment.