Code Monkey home page Code Monkey logo

bov-practice-hackathon's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.