cbracco / bov-practice-hackathon

MD Practice Hackathon, Oct. 21-23 2016.

Home Page:https://cbracco.github.io/bov-practice-hackathon/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

bov-practice-hackathon

By @cbracco and @ModernTek

Overview

This repository contains our attempt at Project #1 of the Bov Academy Practice Hackathon. We have chosen the following four UI elements to create:

Usage

Accordion

The accordion UI element is useful for condensing groups of content on a website into collapsed sections that can be expanded by the user when clicking its associated toggle button.

Structure

The HTML for this UI element is as follows:

<div class="accordion">
  <div class="accordion-panel">
    <h1 class="accordion-toggle">First</h1>
    <div class="accordion-content">...</div>
  </div>
  <div class="accordion-panel">
    <h1 class="accordion-toggle">Second</h1>
    <div class="accordion-content">...</div>
  </div>
  <div class="accordion-panel">
    <h1 class="accordion-toggle">Third</h1>
    <div class="accordion-content">...</div>
  </div>
</div>

Assets

Make sure to also include the required CSS and JS in your web page and initialize it, like so:

<html>
  <head>
    <link rel="stylesheet" href="./path/to/accordion.css">
  </head>
  <body>
    <div class="accordion">...</div>
    <script src="./path/to/accordion.js"></script>
    <script>accordion.init();</script>
  </body>
</html>

View the demo

Modal

The modal UI element is useful for overlaying subordinate content above the main window, for the purpose of diverting the user’s focus to a specific task or notifying them of important information before proceeding back to the main window.

Structure

The HTML for this UI element is as follows:

<a class="modal-toggle" href="#openModal1">Open Modal</a>
<div class="modal" id="openModal1">
  <div class="modal-container">
    <a class="modal-close" href="#closeModal1">
      <span class="modal-close-icon">&times;</span>
    </a>
    <div class="modal-content">
      <h1 class="modal-heading">Modal Heading</h1>
      <div class="modal-body">
        <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Quidem ad nostrum aut architecto, odio, ratione eum debitis quos atque excepturi, voluptatum dignissimos ullam voluptatibus neque doloremque repellendus quis modi porro!</p>
        <p>Architecto repellendus sit cumque nobis quasi aliquid provident, consequatur commodi odit suscipit saepe hic. Odit sunt id totam omnis excepturi repudiandae fuga laboriosam beatae. Dolor aperiam, est sunt omnis nisi.</p>
      </div>
    </div>
  </div>
</div>

Assets

Make sure to also include the required CSS in your web page, like so:

<html>
  <head>
    <link rel="stylesheet" href="./path/to/modal.css">
  </head>
  <body>
    <a class="modal-toggle" href="#openModal1">...</div>
    <div class="modal" id="openModal1">...</div>
  </body>
</html>

View the demo

Popover

[Description]

[Structure]

[Assets]

View the demo

Wave

[Description]

[Structure]

[Assets]

View the demo

About

MD Practice Hackathon, Oct. 21-23 2016.

https://cbracco.github.io/bov-practice-hackathon/


Languages

Language:JavaScript 47.3%Language:HTML 28.9%Language:CSS 23.8%