Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/generate_learning_path_markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const getYouTubeImage = (youTubeCode) => {
const workbookFrontMatter = {
title: 'Workbook',
contributors,
image: section.image,
image: section.workbookImage,
weight: workbookPosition
}

Expand Down
4 changes: 4 additions & 0 deletions scripts/section_data.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,31 @@
"learning_path_group": "Introduction",
"dirName": "introduction",
"workbook": "01-introduction.asciidoc",
"workbookImage": "images/learn/workbooks/Learning Path-Introduction Workbook-image.png",
"image": "images/learn/LP_thumbnail_introduction.jpg",
"renderArticles": true
},
{
"learning_path_group": "Trusted Committer",
"dirName": "trusted-committer",
"workbook": "02-trusted-committer.asciidoc",
"workbookImage": "images/learn/workbooks/Learning Path-Trusted Committer Workbook-image.png",
"image": "images/learn/LP_thumbnail_trustedcommitter.jpg",
"renderArticles": true
},
{
"learning_path_group": "Contributor",
"dirName": "contributor",
"workbook": "04-contributor.asciidoc",
"workbookImage": "images/learn/workbooks/Learning Path-Contributor Workbook-image.png",
"image": "images/learn/LP_thumbnail_contributor.jpg",
"renderArticles": true
},
{
"learning_path_group": "Product Owner",
"dirName": "product-owner",
"workbook": "03-product-owner.asciidoc",
"workbookImage": "images/learn/workbooks/Learning Path-Product Owner Workbook-image.png",
"image": "images/learn/LP_thumbnail_productowner.jpg",
"renderArticles": false
}
Expand Down
80 changes: 80 additions & 0 deletions workbook/workbook-image-template.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
<!DOCTYPE html>
<!--
This file is for developer reference only! It is not displayed in the public facing website.
Modify this file until you're happy with the end result in your browser.
Then take a screenshot of the page and add the image to scource control.

Remember to:
- Preserve current image dimensions 1024 x 576
- If the dimensions cannot be preserved, maintain 16:9 aspect ratio
- Use the same font face and theme colors as the website
-->
<html>
<head>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Serif+Pro&family=PT+Sans&display=swap" rel="stylesheet">
<style>
@import url('https://fonts.googleapis.com/css2?family=Source+Serif+Pro:wght@400;700&family=PT+Sans:wght@400;700&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html {
font-family: 'PT Sans';
font-size: 12px;
color: white;
}
body {
min-height: 576px;
min-width: 1024px;
}
.workbook-image-container {
background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/A_laptop_and_a_notebook_on_the_wooden_table_%28Pixabay%29.jpg/1024px-A_laptop_and_a_notebook_on_the_wooden_table_%28Pixabay%29.jpg');
background-repeat: no-repeat;
display: flex;
flex-direction: row;
height: 576px;
width: 1024px;
}
.color-field {
border-bottom: 576px solid #8BAB84;
border-right: 180px solid transparent;
position: relative;
width: 512px;
z-index: 0;
}
.isc-logo {
margin: 2rem 0 0 2rem;
position: absolute;
z-index: 1;
}
.isc-logo img {
width: 256px;
}
.module-name {
font-family: 'Source Serif Pro', serif;
font-size: 5rem;
margin: 26rem 0 0 2rem;
position: absolute;
z-index: 1;
}
.workbook-title {
font-family: 'PT Sans', sans-serif;
font-size: 2.2rem;
position: absolute;
margin: 32rem 0 0 2rem;
z-index: 1;
}
</style>
</head>
<body>
<div class="workbook-image-container">
<div class="color-field"></div>
<span class="isc-logo"><img src="https://innersourcecommons.org/images/logo.png" alt="InnerSource Commons"></span>
<span class="module-name">Learning Path</span>
<span class="workbook-title">The Trusted Committer Workbook</span>
</div>
</body>
</html>