Skip to content

Commit

Permalink
Release 0.0.1
Browse files Browse the repository at this point in the history
Co-authored-by: machadovilaca <[email protected]>
Co-authored-by: herulume <[email protected]>

This release includes the following features:

* Change CI's branch
* Add registration of a user with company and login for user (authentication)
* Add Bulma CSS dependency
* Add css to forms of authentication features
  • Loading branch information
BrunoMartins11 authored Oct 25, 2020
2 parents 8346265 + 5a224aa commit e908471
Show file tree
Hide file tree
Showing 45 changed files with 995 additions and 409 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
pull_request:
branches:
- main
- dev

jobs:
test:
Expand Down
94 changes: 5 additions & 89 deletions assets/css/app.scss
Original file line number Diff line number Diff line change
@@ -1,91 +1,7 @@
/* This file is for your main application css. */
@import "./phoenix.css";
@import "../node_modules/nprogress/nprogress.css";

/* LiveView specific classes for your customizations */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
display: none;
}

.phx-click-loading {
opacity: 0.5;
transition: opacity 1s ease-out;
}

.phx-disconnected{
cursor: wait;
}
.phx-disconnected *{
pointer-events: none;
}

.phx-modal {
opacity: 1!important;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}
@import './footer.scss';

.phx-modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
@import 'bulma';

.phx-modal-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}


/* Alerts and form errors */
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}
.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}
.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}
.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}
.alert p {
margin-bottom: 0;
}
.alert:empty {
display: none;
}
.invalid-feedback {
color: #a94442;
display: block;
margin: -1rem 0 2rem;
}
/* This file is for your main application css. */
@import "../node_modules/nprogress/nprogress.css";
@import './phoenix.scss';
17 changes: 17 additions & 0 deletions assets/css/footer.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#page-container {
position: relative;
min-height: 100vh;
}

#content-wrap {
padding-bottom: 6rem;
}

#footer {
position: absolute;
bottom: 0;
width: 100%;
height: 6rem;
padding-top: 1rem;
padding-bottom: 1rem;
}
101 changes: 0 additions & 101 deletions assets/css/phoenix.css

This file was deleted.

98 changes: 98 additions & 0 deletions assets/css/phoenix.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
/* LiveView specific classes for your customizations */
.phx-no-feedback.invalid-feedback,
.phx-no-feedback .invalid-feedback {
display: none;
}

.phx-click-loading {
opacity: 0.5;
transition: opacity 1s ease-out;
}

.phx-disconnected {
cursor: wait;
}

.phx-disconnected * {
pointer-events: none;
}

.phx-modal {
opacity: 1 !important;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0, 0, 0);
background-color: rgba(0, 0, 0, 0.4);
}

.phx-modal-content {
background-color: #fefefe;
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}

.phx-modal-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}

.phx-modal-close:hover,
.phx-modal-close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}


/* Alerts and form errors */
.alert {
padding: 15px;
margin-bottom: 20px;
border: 1px solid transparent;
border-radius: 4px;
}

.alert-info {
color: #31708f;
background-color: #d9edf7;
border-color: #bce8f1;
}

.alert-warning {
color: #8a6d3b;
background-color: #fcf8e3;
border-color: #faebcc;
}

.alert-danger {
color: #a94442;
background-color: #f2dede;
border-color: #ebccd1;
}

.alert p {
margin-bottom: 0;
}

.alert:empty {
display: none;
}

.invalid-feedback {
color: #a94442;
display: block;
margin: -1rem 0 2rem;
}

.bd-lead {
padding: 1.5rem;
}
3 changes: 2 additions & 1 deletion assets/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// its own CSS file.
import "../css/app.scss"

import "./nav-burger"

// webpack automatically bundles all modules in your
// entry points. Those entry points can be configured
// in "webpack.config.js".
Expand Down Expand Up @@ -32,4 +34,3 @@ liveSocket.connect()
// >> liveSocket.enableLatencySim(1000) // enabled for duration of browser session
// >> liveSocket.disableLatencySim()
window.liveSocket = liveSocket

18 changes: 18 additions & 0 deletions assets/js/nav-burger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);

// Check if there are any navbar burgers
if ($navbarBurgers.length > 0) {
// Add a click event on each of them
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);

// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}

5 changes: 5 additions & 0 deletions assets/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions assets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@
"watch": "webpack --mode development --watch"
},
"dependencies": {
"bulma": "^0.9.1",
"nprogress": "^0.2.0",
"phoenix": "file:../deps/phoenix",
"phoenix_html": "file:../deps/phoenix_html",
"phoenix_live_view": "file:../deps/phoenix_live_view",
"nprogress": "^0.2.0"
"phoenix_live_view": "file:../deps/phoenix_live_view"
},
"devDependencies": {
"@babel/core": "^7.0.0",
Expand Down
Loading

0 comments on commit e908471

Please sign in to comment.