Browse Source

ceration of new-ad-form page

pull/146/head
Francesca Sperati 7 years ago
parent
commit
a91a292021
5 changed files with 384 additions and 12 deletions
  1. +9
    -3
      src/_topbar.html
  2. +21
    -1
      src/assets/styles/nomit.scss
  3. +155
    -8
      src/index.html
  4. +198
    -0
      src/new-ad.html
  5. +1
    -0
      webpack/plugins/htmlPlugin.js

+ 9
- 3
src/_topbar.html View File

@ -17,12 +17,18 @@
<li class="search-input visible-referee visible-nomit" ng-show="user.role=='nomit' || user.role == ‘referee’"> <li class="search-input visible-referee visible-nomit" ng-show="user.role=='nomit' || user.role == ‘referee’">
<input class="form-control" type="text" placeholder="Search users, companies, or anything.."> <input class="form-control" type="text" placeholder="Search users, companies, or anything..">
</li> </li>
<li class="visible-nomit" ng-show="user.role=='nomit'">
<li class="visible-nomit ml-2" ng-show="user.role=='nomit'">
<button type="button" class="btn btn-gradient "> <button type="button" class="btn btn-gradient ">
<i class="fa fa-plus pdd-right-5 text-white"></i> <i class="fa fa-plus pdd-right-5 text-white"></i>
Add new user
ADD NEW USER
</button> </button>
</li>
</li>
<li class="visible-referee visible-nomit visible-company ml-2" ng-show="user.role=='nomit' || user.role == 'referee' || user.role == 'company'">
<button type="button" onclick="window.location.href = 'new-ad.html'" class="btn btn-gradient" >
<i class="fa fa-plus pdd-right-5 text-white"></i>
CREATE NEW AD
</button>
</li>
</ul> </ul>
<ul class="nav-right"> <ul class="nav-right">
<!-- #RIGHT ============================ --> <!-- #RIGHT ============================ -->


+ 21
- 1
src/assets/styles/nomit.scss View File

@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css?family=Fredoka+One');
// ***** GENERIC ***** // // ***** GENERIC ***** //
.sidebar{ .sidebar{
box-shadow: 0 0 15px rgba(0,0,0,0.5); box-shadow: 0 0 15px rgba(0,0,0,0.5);
@ -138,6 +140,17 @@ h1{
display: inline; display: inline;
justify-content: flex-start; justify-content: flex-start;
} }
.btn-industry{
color: #ee38a4;
background-color: transparent;
border: 1px solid #ee38a4;
border-radius: 30px;
align-items: center;
outline: none;
padding: 5px;
display: inline;
justify-content: flex-start;
}
// ***** TOGGLE BTN ***** // // ***** TOGGLE BTN ***** //
@ -290,7 +303,6 @@ textarea {
width: 100%; width: 100%;
} }
.btn-cv { .btn-cv {
box-shadow: 0 8px 7px 0 rgba(192, 192, 192, 0.521), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 8px 7px 0 rgba(192, 192, 192, 0.521), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
color: #fff; color: #fff;
@ -501,3 +513,11 @@ textarea {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
//new-ad page
.form-h2{
font-family: 'Roboto', sans-serif;
color: #454545;
font-size: 20px;
font-weight: bold;
}

+ 155
- 8
src/index.html View File

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html>
<html ng-app="NomitWisp">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
@ -87,15 +87,16 @@
<main class='main-content bgc-grey-300'> <main class='main-content bgc-grey-300'>
<div id='mainContent row'> <div id='mainContent row'>
<div class="row content-title mT-60"> <div class="row content-title mT-60">
<h1 class="col-8 ml-1 mb-3">
<div class="col-8 ml-1 mb-3">
Dashboard Dashboard
</h1>
</div>
</div> </div>
<div class=" gap-20 masonry pos-r"> <div class=" gap-20 masonry pos-r">
<!-- #content container ===== --> <!-- #content container ===== -->
<div class="masonry-sizer col-md-6"></div> <div class="masonry-sizer col-md-6"></div>
<div class="masonry-item w-100">
<!-- #First line ========= -->
<!-- #NOMIT & REFEREE ===== -->
<div class="masonry-item w-100 visible-nomit visible-referee" ng-show="user.role=='nomit' || user.role == 'referee'"><!-- #First line ========= -->
<div class="row gap-20"> <div class="row gap-20">
<div class='col-md-4 '><!-- #Total Ads Views ==================== --> <div class='col-md-4 '><!-- #Total Ads Views ==================== -->
@ -155,7 +156,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="masonry-item col-12"> <!-- #New Registered Users ==================== -->
<div class="masonry-item col-12 visible-nomit visible-referee" ng-show="user.role=='nomit' || user.role == 'referee'"> <!-- #New Registered Users ==================== -->
<div class="bd bgc-white item-box"> <div class="bd bgc-white item-box">
<div class="layers"> <div class="layers">
<div class="layer w-100 pX-20 pT-20"> <div class="layer w-100 pX-20 pT-20">
@ -177,8 +178,7 @@
</div> </div>
</div> </div>
</div> </div>
<div class="masonry-item w-100">
<div class="masonry-item w-100 visible-nomit visible-referee" ng-show="user.role=='nomit' || user.role == 'referee'"><!-- #Successful Mathches & #Nationality ==================== -->
<div class="row gap-20"> <div class="row gap-20">
<div class="col-3 "><!-- #Successful Mathches %==================== --> <div class="col-3 "><!-- #Successful Mathches %==================== -->
<div class="bd bgc-white p-20 peer peer-greed succ-match-perc item-box"> <div class="bd bgc-white p-20 peer peer-greed succ-match-perc item-box">
@ -266,6 +266,153 @@
</div> </div>
</div> </div>
<!-- #COMPANY / REFEREE / NOMIT ===== -->
<div class="masonry-item content-title w-100 visible-company visible-nomit visible-referee" ng-show="user.role=='company' || user.role == 'referee' || user.role == 'nomit'">
<div class="col-8 ml-1 mb-3">
Your Adds
</div>
</div>
<div class="masonry-item col-12 visible-company visible-nomit visible-referee" ng-show="user.role=='company' || user.role == 'referee' || user.role == 'nomit'"> <!-- #suggested ads ==================== -->
<div class="row gap-30">
<!-- # ad n 1 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
<!-- # ad n 2 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
<!-- # ad n 3 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="masonry-item w-100">
<button type="button" class="btn btn-gradient "><i class="fa fa-plus pdd-right-5"></i>CREATE NEW ADD</button>
</div>
<!-- #USERS ===== -->
<div class="masonry-item col-12 visible-user" ng-show="user.role=='user'"> <!-- #suggested ads ==================== -->
<div class="row gap-30">
<!-- # ad n 1 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
<div>
<a class='' href="" > <span class="icon-holder" style="color:#EE38A4"><i class="fa fa-heart" ></i></span></a>
</div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
<!-- # ad n 2 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
<div>
<a class='' href="" > <span class="icon-holder" style="color:#EE38A4"><i class="fa fa-heart" ></i></span></a>
</div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
<!-- # ad n 3 ==================== -->
<div class='col-md-4'>
<div class="card item-box" >
<img class="card-img-top" src="assets/static/images/bg.jpg" alt="Card image cap">
<div class="card-body">
<h5 class="card-title d-flex" style="justify-content:space-between; margin-bottom:1px; font-weight: bolder; text-align: left;">
<div>Adv title </div>
<div>
<a class='' href="" > <span class="icon-holder" style="color:#EE38A4"><i class="fa fa-heart" ></i></span></a>
</div>
</h5>
<h5 class="card-title" style="font-size:11px; margin-top: 1px;">Adv title</h5>
<p class="card-text">Some quick example text to build on the card title and make up the bulk of the card's content.</p>
</div>
<a href="ads_1.html">
<div class="card-body view-more-btn" style="color:#fff; background-color:#EE38A4; font-weight: bolder; text-align: center; margin: 0px">
VIEW MORE <i class=" ti-angle-right" style="color:#fff; font-weight: bolder;"></i>
</div>
</a>
</div>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>


+ 198
- 0
src/new-ad.html View File

@ -0,0 +1,198 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>About the Job</title>
<style>
#loader {
transition: all 0.3s ease-in-out;
opacity: 1;
visibility: visible;
position: fixed;
height: 100vh;
width: 100%;
background: #fff;
z-index: 90000;
}
#loader.fadeOut {
opacity: 0;
visibility: hidden;
}
.spinner {
width: 40px;
height: 40px;
position: absolute;
top: calc(50% - 20px);
left: calc(50% - 20px);
background-color: #333;
border-radius: 100%;
-webkit-animation: sk-scaleout 1.0s infinite ease-in-out;
animation: sk-scaleout 1.0s infinite ease-in-out;
}
@-webkit-keyframes sk-scaleout {
0% { -webkit-transform: scale(0) }
100% {
-webkit-transform: scale(1.0);
opacity: 0;
}
}
@keyframes sk-scaleout {
0% {
-webkit-transform: scale(0);
transform: scale(0);
} 100% {
-webkit-transform: scale(1.0);
transform: scale(1.0);
opacity: 0;
}
}
</style>
</head>
<body class="app">
<!-- @TOC -->
<!-- =================================================== -->
<!--
+ @Page Loader
+ @App Content
- #Left Sidebar
> $Sidebar Header
> $Sidebar Menu
- #Main
> $Topbar
> $App Screen Content
-->
<!-- @Page Loader -->
<!-- =================================================== -->
<div id='loader'>
<div class="spinner"></div>
</div>
<script>
window.addEventListener('load', () => {
const loader = document.getElementById('loader');
setTimeout(() => {
loader.classList.add('fadeOut');
}, 300);
});
</script>
<!-- @App Content -->
<!-- =================================================== -->
<div>
${require('html-loader!./_sidebar.html')}
<div class="page-container">
${require('html-loader!./_topbar.html')}
<!-- ### $App Screen Content ### -->
<main class='main-content bgc-grey-300'>
<div id='mainContent row'>
<div class="row content-title mT-60">
<h1 class="col-8 ml-1 mb-4">Create a new Internship Ad</h1>
</div>
<div class=" gap-30 masonry pos-r"> <!-- #content container ===== -->
<div class="masonry-sizer col-md-6 "></div>
<!-- ### Job Details Card ### -->
<form>
<div class="masonry-item w-50">
<div class="card item-box">
<div class="row">
<div class="col-2">
<img class="img-fluid ml-4 mb-4 companies-update-img" src="assets/static/images/nomit-logo.png" alt="company" class="avatar">
</div>
<div class="col-9 card-body">
<textarea id="description" class="form-h2 ard-text" name="story" rows="1" cols="11" required>Job Name</textarea>
<h6 class="card-title mr-4">Name of the Company loggedin</h6>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<h5 class="card-title mt-4 ml-4 mr-4">About the business:</h5>
<textarea id="description" class=" col-11 company-description ard-text ml-4 mr-10" name="story" rows="5" required>Please, include here a briefh description of your company, helping new users to understand your goals and target</textarea>
<h5 class="card-title mt-4 ml-4 mr-4">About the role:</h5>
<textarea id="description" class=" col-11 company-description ard-text ml-4 mr-10" name="story" rows="5" required>Please, include here a briefh description of the role, summarizeing the essential responsibilities, activities, qualifications and skills for a role. </textarea>
</div>
</div>
</div>
<!-- ### Other Info Card ### -->
<div class="masonry-item w-50 ">
<div class="card item-box">
<div class="card-body">
<h5 class="card-title mt-4 ml-4 mr-4">Location:</h5>
<label class="">Address</label>
<input type="text" class="form-control" id="" placeholder="Melbourne, CBD & Inner Suburbs" required>
<div class="form-row">
<div class="mt-2 form-group col-md-6">
<label for="inputCity">City</label>
<input type="text" class="form-control" id="inputCity" required>
</div>
<div class="mt-2 form-group col-md-4">
<label for="inputState">State</label>
<select id="inputState" class="form-control" required>
<option selected>Choose...</option>
<option>...</option>
</select>
</div>
<div class="mt-2 form-group col-md-2">
<label for="inputZip">Zip</label>
<input type="text" class="form-control" id="inputZip" required>
</div>
</div>
<h5 class="card-title mt-4 ml-4 mr-4">Application close:</h5>
<input type="text" class="form-control bdc-grey-200 start-date" placeholder="Application Closing Data" data-provide="datepicker">
<h5 class="card-title mt-4 ml-4 mr-4">Main Classification:</h5>
<input type="text" class="form-control" id="" placeholder="Industry" required>
<h5 class="card-title mt-4 ml-4 mr-4">Skills:</h5>
<input type="text" class="form-control" id="" placeholder="Preofessions" value="" >
<div class="mt-4">
<div class=" ml-4 mb-4 btn btn-industry mt-4">Graphic Design</div>
<div class="ml-1 mb-4 btn btn-skills">Adobe Creaetive CC</div>
<div class="ml-1 mb-4 btn btn-skills">Illustration</div>
</div>
<p class="card-text ml-4 my-4"><small class="text-muted">Posted 3 days ago</small></p>
</div>
</div>
</div>
<!-- ### Buttons ### -->
<div class="masonry-item w-50 m-auto btn-centered-container ">
<button type="submit" href="#" class="col-5 mr-1 btn btn-gradient btn-centered mt-6">Create</button>
<button type="button" href="#" class="col-5 ml-1 btn btn-border btn-centered mt-6">Save</button>
</div>
</form>
</div>
</div><!--content row-->
</main>
<!-- ### $App Screen Footer ### -->
${require('html-loader!./_footer.html')}
</div><!-- page-container -->
</div> <!-- App Content -->
</body>
</html>

+ 1
- 0
webpack/plugins/htmlPlugin.js View File

@ -11,6 +11,7 @@ const titles = {
'charts': 'Charts', 'charts': 'Charts',
'ads': 'ads', 'ads': 'ads',
'ads_1':'ads_1', 'ads_1':'ads_1',
'new-ad':'new-ad',
'ad-details':'ad-details', 'ad-details':'ad-details',
'reports':'reports', 'reports':'reports',
'chat': 'Chat', 'chat': 'Chat',


Loading…
Cancel
Save