11<template lang="pug">
2- h1 Welcome to the Vue App
3- </template >
2+ form.form
3+ input( type ="text" placeholder ="Login" v-model ="user.login" )
4+ input( type ="password" placeholder ="password" v-model ="user.password" )
5+ button( type ="submit" ) LogIn
6+
7+ body
8+ .wrapper
9+ .maincontent
10+ section.about
11+ .container.about__container
12+ header.header
13+ .header__top
14+ .about__user
15+ .user__avatar
16+ img( src =require (" images/content/Aigor.jpg" )) .user__avatar-pic
17+ .user__name Игорь Немгиров
18+ .adm__panel
19+ h2 Панель администрирования
20+ a( href ="" ) .quit__btn Выйти
21+ .header__bottom
22+ .header__menu
23+ nav.nav
24+ - var menu = [' Обо мне' , ' Работы' , ' Отзывы' ]
25+ ul.nav__list
26+ each item in menu
27+ li.nav__item
28+ a( href ="" ) .nav__link #item
29+
30+ .about__block
31+ .head__part
32+ .block__title
33+ h1 Блок "Обо мне"
34+ .add__btn
35+ button.add__btn-group
36+ .button__name Добавить группу
37+ .about__wrapper
38+ .about__groups
39+ ul.groups__list
40+ li.groups__item
41+ tr
42+ tr
43+ tr
44+ tr
45+ tr
46+ li.groups__item
47+ tr
48+ li.groups__item
49+ tr
50+
51+ section.works
52+ container.works__container
53+ .works__block
54+ .head__part
55+ .block__title
56+ h2 Блок "Работы"
57+ .works__wrapper
58+ .works__collection
59+ .edit__work
60+ h3 Редактирование работы
61+ .edit__content
62+ .edit__content-left
63+ .edit__content-right
64+ .works__preview
65+ .works__add
66+ ul.works__list
67+ li.works__item
68+
69+ section.reviews
70+ container.reviews__container
71+ .reviews__block
72+ .head__part
73+ .block__title
74+ h2 Блок "Отзывы"
75+ .reviews__wrapper
76+ .reviews__collection
77+ .reviews__new
78+ h3 Новый отзыв
79+ .reviews__content
80+ .reviews__content-left
81+ .reviews__content-right
82+ .reviews__preview
83+ .reviews__add
84+ ul.reviews__list
85+ li.reviews__item
86+
87+ </template >
88+
89+ <script >
90+ import SimpleVueValidator from ' simple-vue-validator' ;
91+ const Validator = SimpleVueValidator .Validator ;
92+ export default {
93+ mixins: [SimpleVueValidator .mixin ],
94+ validators: {
95+ ' user.login ' : function (value ) {
96+ return Validator .custom (function () {
97+ if (value .length < 5 ) {
98+ return ' Не менее 5 символов'
99+ }
100+ });
101+ },
102+ ' user.password ' : function (value ) {
103+ return Validator .custom (function () {
104+ if (value .length < 8 ) {
105+ return ' Не менее 8 символов'
106+ }
107+ });
108+ },
109+ }
110+ }
111+ </script >
112+
113+ <style lang="postcss">
114+
115+ </style >
116+
0 commit comments