-
-
Notifications
You must be signed in to change notification settings - Fork 777
How to create a page on the HfLA website
avali4907 edited this page Oct 5, 2021
·
7 revisions
Starting Instructions:
- Create HTML file in root folder with the name of your page
ex)
yourPageName.html
- Create a sass stylesheet in ‘_sass/components’ with the same name as your HTML file but with an underscore
_
at the beginning.
ex)
_sass/components/_yourPageName.scss
- Import your pages stylesheet in to the main.scss stylesheet (located:
_sass/main.scss
) by adding this line of code under the component section inmain.scss
@import ‘components/yourPageName.scss’
- Create a folder within
assets/images
named exactly like your html file. Here you can place all the images you are using in this folder
assets/images/yourPageName
Helpful links:
<!-- Make sure to include the Jekyll Front Matter as the first thing in the file. Following the format below. -->
<!-- Any file that contains a YAML front matter block will be processed by Jekyll as a special file.-->
---
layout: default
title: Your Page Name
---
<!-- Header banner -->
<div class="header-container flex-container">
<div class="header-text">
<h1 class="title1">Title</h1>
<p>Description of page (1st paragraph)</p>
<p class="sub-p">Description of page (2nd paragraph - optional)</p>
</div>
<img class="header-hero-image" src="assets/images/yourPageName/yourPageName-icon.svg" alt="description of the image goes here" />
</div>
<!-- Header banner -->
<!-- Page body -->
<div class="content-section">
<!-- Card -->
<!-- Cards have been standardized and can be found in _sass/elements/_cards-->
<div class="page-card card-primary page-card-lg card-body card-width">
<img
src="./assets/images/yourPageName/yourPageName_icon.svg"
/>
<div>
<h3>Card Title</h3>
<img
class="card-icon"
src="./assets/images/sitemap/lightbulb.svg"
/>
<p>
Card content for your page.
</p>
<!-- Buttons have been standardized and can be found in _sass/elements/_buttons.scss-->
<button class="btn btn-primary btn--site-map-suggest">
Button element
</button>
</a>
</div>
</div>
<!-- Card -->
</div>
<!-- Include javaScript -->
<script>
// Include your JavaScript code directly in this tag or create a separate file and import code.
function helloWorld() {
console.log('Hello World');
}
</script>
Click the arrow below each category to view links (or view original alphabetical list by clicking "Pages" above) :