Skip to content

Commit

Permalink
feat: added template formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
tamas-kiss-resideo committed Nov 4, 2022
1 parent 01eadbd commit a5729f3
Show file tree
Hide file tree
Showing 26 changed files with 689 additions and 36 deletions.
16 changes: 9 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PATH
remote: .
specs:
resideo-jekyll-theme (0.1.0)
jekyll (~> 4.2)
jekyll (~> 4.3)

GEM
remote: https://rubygems.org/
Expand All @@ -20,21 +20,22 @@ GEM
http_parser.rb (0.8.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
jekyll (4.2.2)
jekyll (4.3.1)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (~> 1.0)
jekyll-sass-converter (~> 2.0)
jekyll-sass-converter (>= 2.0, < 4.0)
jekyll-watch (~> 2.0)
kramdown (~> 2.3)
kramdown (~> 2.3, >= 2.3.1)
kramdown-parser-gfm (~> 1.0)
liquid (~> 4.0)
mercenary (~> 0.4.0)
mercenary (>= 0.3.6, < 0.5)
pathutil (~> 0.9)
rouge (~> 3.0)
rouge (>= 3.0, < 5.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
terminal-table (>= 1.8, < 4.0)
webrick (~> 1.7)
jekyll-sass-converter (2.2.0)
sassc (> 2.0.1, < 3.0)
jekyll-watch (2.2.1)
Expand Down Expand Up @@ -62,6 +63,7 @@ GEM
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
unicode-display_width (1.8.0)
webrick (1.7.0)

PLATFORMS
universal-darwin-21
Expand Down
21 changes: 0 additions & 21 deletions LICENSE.txt

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERN
## Development
To set up your environment to develop this theme, run `bundle install`.
To set up your environment to develop this theme, run `bundle install`. Make sure you are NOT using the MacOS default Ruby installation.

Your theme is setup just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.

Expand Down
27 changes: 26 additions & 1 deletion _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1 +1,26 @@
{{ content }}
<!doctype html>
<html lang="en">

<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="/css/style.css">
</head>

<body>
<div class="container">
<header>
<img class="logo" src="/assets/logo.png">
</header>

<section class="main-content">
{{ content }}
</section>

<footer>
Resideo &copy; 2022, All Rights Reserved.
</footer>
</div>
</body>

</html>
24 changes: 24 additions & 0 deletions _sass/_colors.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Primary CI colors
$black: #000;
$white: #fff;
$resideo-red: #D22730;
$canvas: #EDEBDC;

// Secondary colors
// Dark blue reserved for PRO content
$dark-blue: #153755;
$charcoal: #2E2E2E;
$inactive-gray: #767676;
$gray: #DADADA;
$light-gray: #EDEDED;
$extra-light-gray: #F7F7F7;

// Accent colors
$medium-blue: #1C6FB9;

// Use Dark Green in combination when setting text on a light background,
// to meet WCAG Level AA contrast requirements. Do not use the lighter
// Green as a text color on a light background, or as the background color
// with white or light text.
$green: #28AA62;
$dark-green: #1F844D;
47 changes: 47 additions & 0 deletions _sass/_font-face.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
@font-face {
src: url("../assets/fonts/Roboto-Thin.ttf");
font-family: "Roboto";
font-weight: 100;
font-style: normal;
}

@font-face {
src: url("../assets/fonts/Roboto-ThinItalic.ttf");
font-family: "Roboto";
font-weight: 100;
font-style: italic;
}

@font-face {
src: url("../assets/fonts/Roboto-Light.ttf");
font-family: "Roboto";
font-weight: 300;
font-style: normal;
}

@font-face {
src: url("../assets/fonts/Roboto-LightItalic.ttf");
font-family: "Roboto";
font-weight: 300;
font-style: italic;
}

@font-face {
src: url("../assets/fonts/Roboto-Regular.ttf");
font-family: "Roboto";
font-weight: 400;
}

@font-face {
src: url("../assets/fonts/Roboto-Bold.ttf");
font-family: "Roboto";
font-weight: 700;
font-style: normal;
}

@font-face {
src: url("../assets/fonts/Roboto-BoldItalic.ttf");
font-family: "Roboto";
font-weight: 700;
font-style: italic;
}
173 changes: 173 additions & 0 deletions _sass/_layout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
@import "colors";
@import "font-face";

$primary-color: #565454;

body {
font-family: "Roboto";
color: $primary-color;
margin: 0;
}

.container {
display: flex;
flex-direction: column;
align-items: center;
background-color: $canvas;

img {
max-width: 100%;
}

header {
height: 120px;
width: 100%;
background-color: $resideo-red;

.logo {
height: 100%;
}
}

footer {
width: 100%;
height: 32px;
padding-top: 14px;
background-color: $black;
color: $white;
text-align: center;
}

.main-content {
width: 960px;
background-color: $white;
padding: 24px;

h1,
h2,
h3,
h4,
h5,
h6 {
color: $black;
line-height: 1.3;
font-weight: normal;
text-transform: none;
font-style: normal;
text-decoration: none;
letter-spacing: normal;
}

h1 {
font-size: 2.4em;
}

h2 {
font-size: 1.8em;
}

h3 {
font-size: 1.33em;
font-weight: bold;
}

h4 {
font-size: 1em;
font-weight: 700;
text-transform: uppercase;
opacity: 0.3;
}

p {
font-size: 1em;
line-height: 1.4;
font-weight: 400;
text-transform: none;
font-style: normal;
color: $inactive-gray;

code {
display: block;
color: $charcoal;
background-color: $extra-light-gray;
margin: 0.5em;
padding: 1em;
border-color: $gray;
border-width: 1px;
border-style: solid;
border-radius: 3px;
}
}

strong {
font-weight: 700;
}

blockquote {
background-color: $extra-light-gray;
margin: 0.5em;
padding: 1em;
border-color: $gray;
border-width: 1px;
border-style: solid;
border-radius: 3px;

p {
margin: 0;
font-style: italic;
}

em {
font-weight: 700;
}
}

div.highlighter-rouge pre.highlight {
padding: 0.5em;
}

ul.task-list li {
list-style: none;
}

a {
text-decoration: none;
}

table {
border-collapse: collapse;
margin-top: 2em;
margin-bottom: 1em;
margin-left: auto;
margin-right: auto;
border-spacing: 0;

td,
th {
padding: 1.5em;
}

thead th {
background-color: $charcoal;
color: $white;
font-weight: bold;
font-size: 1em;
border: 1px solid $gray;
}

tbody {
td {
border: 1px solid $gray;
}

tr {
background-color: $light-gray;
}

tr:nth-child(odd) {
background-color: $white;
}
}
}
}
}
Binary file added assets/Resideo_Logo_RGB_Blk_4K.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit a5729f3

Please sign in to comment.