Browse Source

Files und NewMsg Componente hinzugefügt

pull/1/head
Xenia Grünzinger 6 years ago
parent
commit
b2df5884dd
7 changed files with 115 additions and 46 deletions
  1. 1
    1
      public/bookmark.js
  2. 34
    0
      public/createMessage.js
  3. 14
    7
      public/files.js
  4. 4
    5
      public/index.html
  5. 25
    2
      public/style/style.css
  6. 26
    5
      public/style/style.less
  7. 11
    26
      public/template-test.html

+ 1
- 1
public/bookmark.js View File

const BookmarkRouter = { const BookmarkRouter = {
template: ` template: `
<div> <div>
<div class="bookmark-headline"><h4><b>Gepeicherte Beiträge</b></h4></div>
<div class="bookmark-headline"><h3>Gepeicherte Beiträge</h3></div>
<MsgCard <MsgCard
v-for="(msg, index) in messages" v-for="(msg, index) in messages"
:key="msg.id" :key="msg.id"

+ 34
- 0
public/createMessage.js View File

const CreateMsgRouter = {
template: `
<div class="card om-card">
<h5>Neue Nachricht erstellen</h5>
<form class="new-msg-form" action="#" methord="GET">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Betreff</label>
<input type="text" class="form-control" id="subject">
</div>
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Tags</label>
<input type="text" class="form-control" id="hashtags">
</div>
<div class="form-group">
<label class="bmd-label-floating">Nachricht</label>
<textarea class="form-control" id="message" rows="5"></textarea>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox"> Zusätzlich als E-mail versenden
</label>
</div>
</div>
<button class="btn btn-default"><a href="index.html#/home">ABBRECHEN </a></button>
<button type="submit" class="btn btn-raised om-btn">SENDEN</button>
</form>
</div>
`,
data: function () {
},
methods: {
},
};

+ 14
- 7
public/files.js View File

Vue.component('Files', {
data: function() {
return {
count: 0
}
const FileRouter = {
template: `
<div>
<h3>Dateiablage</h3>
<div class="empty-state">
<i class="material-icons"> folder_open </i><br>
Diese Funktion steht noch nicht bereit.
</div>
</div>
`,
data: function () {
}, },
template: `<button v-on:click="count++"> You clicked me {{ count }} times. </button>`
})
methods: {
},
};

+ 4
- 5
public/index.html View File

</div> </div>
</div> </div>




<div class="om-content"> <div class="om-content">
<router-view></router-view> <router-view></router-view>
</div> </div>

<nav class="nav nav-tabs nav-justified om-nav "> <nav class="nav nav-tabs nav-justified om-nav ">
<router-link to="/home" class="nav-item nav-link"><i class="material-icons">home</i></router-link> <router-link to="/home" class="nav-item nav-link"><i class="material-icons">home</i></router-link>
<router-link to="/files" class="nav-item nav-link"><i class="material-icons">folder</i></router-link> <router-link to="/files" class="nav-item nav-link"><i class="material-icons">folder</i></router-link>
const routes = [ const routes = [
{ path: "/", component: HomeRouter }, { path: "/", component: HomeRouter },
{ path: "/home", component: HomeRouter }, { path: "/home", component: HomeRouter },
{ path: "/files", component: FileRouter },
{ path: "/createMessage", component: CreateMsgRouter },
{ path: "/bookmark", component: BookmarkRouter }, { path: "/bookmark", component: BookmarkRouter },
/* { path: "/files", component: FileRouter },
{ path: "/createMessage", component: CreateMsgRouter },
{ path: "/profil", component: ProfilRouter },*/
{ path: "/profil", component: ProfilRouter },
]; ];
const router = new VueRouter({ const router = new VueRouter({
routes routes

+ 25
- 2
public/style/style.css View File

.bookmark-headline { .bookmark-headline {
margin: 10px; margin: 10px;
} }
.form-group.is-focused .form-control {
.empty-state {
margin: 40px;
margin-top: 40%;
color: #6c757d;
text-align: center;
}
.empty-state i {
font-size: 50px;
margin: 10px;
}
.form-group.is-focused .form-control .custom-file-control,
.form-control,
.is-focused .custom-file-control,
.is-focused .form-control {
background-image: linear-gradient(0deg, #0046a0 2px, rgba(0, 150, 136, 0) 0), linear-gradient(0deg, rgba(0, 0, 0, 0.26) 1px, transparent 0); background-image: linear-gradient(0deg, #0046a0 2px, rgba(0, 150, 136, 0) 0), linear-gradient(0deg, rgba(0, 0, 0, 0.26) 1px, transparent 0);
} }
.form-group .bmd-form-group .is-focused .bmd-label-floating {
.checkbox label input[type=checkbox]:checked + .checkbox-decorator .check:before,
label.checkbox-inline input[type=checkbox]:checked + .checkbox-decorator .check:before {
color: #0046a0;
}
.checkbox label input[type=checkbox]:checked + .checkbox-decorator .check,
label.checkbox-inline input[type=checkbox]:checked + .checkbox-decorator .check {
color: #0046a0;
border-color: #0046a0;
}
.is-focused [class*="bmd-label"],
.is-focused[class^=bmd-label] {
color: #0046a0; color: #0046a0;
} }

+ 26
- 5
public/style/style.less View File

margin: 10px; margin: 10px;
} }


//empty state
.empty-state{
margin: 40px;
margin-top: 40%;
color: #6c757d;
text-align: center;
i{
font-size: 50px;
margin: 10px;
}
}


//bmd changes


//bmd changes


.form-group.is-focused .form-control {
background-image: linear-gradient(0deg,@color 2px,rgba(0,150,136,0) 0),linear-gradient(0deg,rgba(0,0,0,.26) 1px,transparent 0);
//border
.form-group.is-focused .form-control .custom-file-control, .form-control, .is-focused .custom-file-control, .is-focused .form-control {
background-image: linear-gradient(0deg, @color 2px,rgba(0,150,136,0) 0),linear-gradient(0deg,rgba(0,0,0,.26) 1px,transparent 0);
} }


.form-group .bmd-form-group .is-focused .bmd-label-floating{
//checkbox
.checkbox label input[type=checkbox]:checked+.checkbox-decorator .check:before, label.checkbox-inline input[type=checkbox]:checked+.checkbox-decorator .check:before {
color: @color;
}


color: @color;
.checkbox label input[type=checkbox]:checked+.checkbox-decorator .check, label.checkbox-inline input[type=checkbox]:checked+.checkbox-decorator .check {
color: @color;
border-color: @color;
}


//label
.is-focused [class*="bmd-label"], .is-focused[class^=bmd-label]{
color: @color;
} }

public/message.html → public/template-test.html View File

</div> </div>


<div class="om-content"> <div class="om-content">
<div class="card om-card">
<h5>Neue Nachricht erstellen</h5>
<form class="new-msg-form">
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Betreff</label>
<input type="text" class="form-control" id="subject">
</div>
<div class="form-group bmd-form-group">
<label class="bmd-label-floating">Tags</label>
<input type="text" class="form-control" id="hashtags">
</div>
<div class="form-group">
<label class="bmd-label-floating">Nachricht</label>
<textarea class="form-control" id="message" rows="5"></textarea>
</div>
<div class="form-group">
<div class="checkbox">
<label>
<input type="checkbox"> Zusätzlich als E-mail versenden
</label>
</div>
</div>
<button class="btn btn-default"><a href="index.html">ABBRECHEN </a></button>
<button type="submit" class="btn btn-raised om-btn">SENDEN</button>
</form>
</div>

</div>

<div>
<nav class="nav nav-tabs nav-justified om-nav ">
<router-link to="/home" class="nav-item nav-link"><i class="material-icons">home</i></router-link>
<router-link to="/files" class="nav-item nav-link"><i class="material-icons">folder</i></router-link>
<router-link to="/createMessage" class="nav-item nav-link outlined"><i class="material-icons">add_circle</i></router-link>
<router-link to="/bookmark" class="nav-item nav-link"><i class="material-icons">bookmark</i></router-link>
<router-link to="/profil" class="nav-item nav-link"><i class="material-icons">person</i></router-link>
</nav>
</div> </div>


<!-- Optional JavaScript --> <!-- Optional JavaScript -->

Loading…
Cancel
Save