Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
Avalon
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sergey
Avalon
Commits
3fee6418
Commit
3fee6418
authored
Jun 25, 2020
by
Sergey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pages profiles for employer version is done
parent
90bfec98
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
2769 additions
and
48 deletions
+2769
-48
img_substrate_employee.png
src/img/img_substrate_employee.png
+0
-0
img_substrate_employer.png
src/img/img_substrate_employer.png
+0
-0
main.js
src/js/main.js
+36
-22
main.html
src/main.html
+13
-1
post-resume-step1.html
src/post-resume-step1.html
+5
-5
profile-editing-employer.html
src/profile-editing-employer.html
+684
-0
profile-employee.html
src/profile-employee.html
+587
-0
profile-employer.html
src/profile-employer.html
+681
-0
profile-preview-employer.html
src/profile-preview-employer.html
+573
-0
_media.scss
src/scss/_media.scss
+5
-5
style.scss
src/scss/style.scss
+183
-14
webpack.config.js
webpack.config.js
+2
-1
No files found.
src/img/img_substrate.png
→
src/img/img_substrate
_employee
.png
View file @
3fee6418
File moved
src/img/img_substrate_employer.png
0 → 100644
View file @
3fee6418
3.33 KB
src/js/main.js
View file @
3fee6418
...
@@ -303,18 +303,19 @@ if(window.matchMedia('(max-width: 650px)').matches)
...
@@ -303,18 +303,19 @@ if(window.matchMedia('(max-width: 650px)').matches)
// Для input[type="file"]
// Для input[type="file"]
var
inputFile
=
document
.
querySelectorAll
(
'input[type="file"]'
);
let
inputFile
=
document
.
querySelectorAll
(
'input[type="file"]'
);
if
(
inputFile
.
length
)
if
(
inputFile
.
length
)
{
{
inputFile
.
forEach
(
function
(
input
)
inputFile
.
forEach
(
function
(
input
)
{
{
input
.
addEventListener
(
'change'
,
function
(
e
)
input
.
addEventListener
(
'change'
,
function
(
e
)
{
{
var
value
=
input
.
value
;
if
(
input
.
id
===
'load-photo'
)
return
;
value
=
value
.
replace
(
'C:
\\
fakepath
\
\'
, '');
var
value
=
input
.
value
;
input.parentElement.querySelector('
.
file
-
value
').innerHTML = value;
value
=
value
.
replace
(
'C:
\\
fakepath
\
\'
, '');
});
input.parentElement.querySelector('
.
file
-
value
').innerHTML = value;
});
});
});
}
}
...
@@ -896,28 +897,29 @@ if(buttonMailingPhone && buttonMailingEmail)
...
@@ -896,28 +897,29 @@ if(buttonMailingPhone && buttonMailingEmail)
// Загрузка фото
// Загрузка фото
let
canvasAvatar
=
document
.
querySelector
(
'#canvas-avatar
'
);
// let canvasPhoto = document.querySelector('#canvas-photo
');
if
(
canvasAvatar
)
let
loadPhoto
=
document
.
querySelector
(
'#load-photo'
);
let
photoBlock
=
document
.
querySelector
(
'.load-photo__block'
);
if
(
loadPhoto
&&
photoBlock
)
{
{
let
ctx
=
canvasAvatar
.
getContext
(
"2d"
);
// let ctx = canvasPhoto
.getContext("2d");
let
initialAvatar
=
new
Image
();
//
let initialAvatar = new Image();
// Загружаем файл изображения
// Загружаем файл изображения
initialAvatar
.
src
=
"../img/img_substrate.png"
;
// initialAvatar.src = "../img/img_substrate_employee.png";
initialAvatar
.
onload
=
function
()
{
ctx
.
drawImage
(
initialAvatar
,
0
,
0
,
210
,
210
);
}
let
loadAvatar
=
document
.
querySelector
(
'#load-avatar'
);
// initialAvatar.onload = function()
// {
// ctx.drawImage(initialAvatar, 0, 0, 210, 210);
// }
load
Avatar
.
addEventListener
(
'change'
,
()
=>
{
load
Photo
.
addEventListener
(
'change'
,
()
=>
{
let
file
=
load
Avatar
.
files
[
0
];
let
file
=
load
Photo
.
files
[
0
];
let
img
;
let
img
;
let
reader
=
new
FileReader
();
let
reader
=
new
FileReader
();
...
@@ -927,11 +929,23 @@ if(canvasAvatar)
...
@@ -927,11 +929,23 @@ if(canvasAvatar)
function
drawNewImage
()
function
drawNewImage
()
{
{
img
=
new
Image
();
img
=
new
Image
();
img
.
src
=
reader
.
result
;
img
.
onload
=
function
()
img
.
onload
=
function
()
{
{
ctx
.
drawImage
(
img
,
0
,
0
,
210
,
210
);
// 1 способ через канвас без масштабирования
// ctx.drawImage(img, 0, 0, 210, 210);
// 2 способ через канвас с масштабированием
// let scaleFactor = Math.min((canvasPhoto.width / img.width),(canvasPhoto.height / img.height));
// ctx.drawImage(img,0,0,img.width*scaleFactor,img.height*scaleFactor);
// console.log(canvasPhoto.width, canvasPhoto.height, img.width, img.height, scaleFactor);
// 3 способ через background
photoBlock
.
style
.
backgroundImage
=
'url('
+
img
.
src
+
')'
;
}
}
img
.
src
=
reader
.
result
;
}
}
});
});
...
...
src/main.html
View file @
3fee6418
...
@@ -323,7 +323,7 @@
...
@@ -323,7 +323,7 @@
<a
href=
"profile.html"
>
Профиль
</a>
<a
href=
"profile.html"
>
Профиль
</a>
</li>
</li>
<li>
<li>
<a
href=
"profile-editing.html"
>
Редактирование профиля
</a>
<a
href=
"profile-editing.html"
>
Профиль - Редактирование
</a>
</li>
</li>
<li>
<li>
<a
href=
"my-resumes.html"
>
Мои резюме
</a>
<a
href=
"my-resumes.html"
>
Мои резюме
</a>
...
@@ -456,6 +456,18 @@
...
@@ -456,6 +456,18 @@
<li>
<li>
<a
href=
"mailing.html"
>
Рассылка
</a>
<a
href=
"mailing.html"
>
Рассылка
</a>
</li>
</li>
<li>
<a
href=
"profile-employer.html"
>
Профиль
</a>
</li>
<li>
<a
href=
"profile-editing-employer.html"
>
Профиль - Редактирование
</a>
</li>
<li>
<a
href=
"profile-preview-employer.html"
>
Профиль - Предпросмотр
</a>
</li>
<li>
<a
href=
"profile-employee.html"
>
Профиль - Сотрудник
</a>
</li>
</ul>
</ul>
</div>
</div>
</div>
</div>
...
...
src/post-resume-step1.html
View file @
3fee6418
...
@@ -322,12 +322,12 @@
...
@@ -322,12 +322,12 @@
</div>
</div>
<div
class=
"block-mt-blue"
>
<div
class=
"block-mt-blue"
>
<form
action=
""
name=
"post-resume-step1"
id=
"post-resume-step1"
>
<form
action=
""
name=
"post-resume-step1"
id=
"post-resume-step1"
>
<div
class=
"load-
avatar
"
>
<div
class=
"load-
photo
"
>
<div
class=
"load-
avatar__block
"
>
<div
class=
"load-
photo__block"
style=
"background-image: url(./img/img_substrate_employee.png);
"
>
<
canvas
id=
"canvas-avatar"
width=
"210"
height=
"210"
></canvas
>
<
!-- <canvas id="canvas-photo" width="210" height="210"></canvas> --
>
</div>
</div>
<label
for=
"load-
avatar
"
>
<label
for=
"load-
photo
"
>
<input
type=
"file"
name=
"load-
avatar"
id=
"load-avatar
"
hidden
>
<input
type=
"file"
name=
"load-
photo"
id=
"load-photo"
accept=
"image/gif, image/jpeg
"
hidden
>
Загрузить фото
Загрузить фото
</label>
</label>
</div>
</div>
...
...
src/profile-editing-employer.html
View file @
3fee6418
This diff is collapsed.
Click to expand it.
src/profile-employee.html
0 → 100644
View file @
3fee6418
This diff is collapsed.
Click to expand it.
src/profile-employer.html
View file @
3fee6418
This diff is collapsed.
Click to expand it.
src/profile-preview-employer.html
0 → 100644
View file @
3fee6418
This diff is collapsed.
Click to expand it.
src/scss/_media.scss
View file @
3fee6418
...
@@ -10,6 +10,11 @@
...
@@ -10,6 +10,11 @@
padding-left
:
0
;
padding-left
:
0
;
padding-right
:
0
;
padding-right
:
0
;
}
}
.load-photo
{
position
:
relative
;
margin-bottom
:
32px
;
}
}
}
@media
(
max-width
:
1280px
)
@media
(
max-width
:
1280px
)
{
{
...
@@ -158,11 +163,6 @@
...
@@ -158,11 +163,6 @@
flex
:
0
0
50%
;
flex
:
0
0
50%
;
max-width
:
50%
;
max-width
:
50%
;
}
}
.load-avatar
{
position
:
relative
;
margin-bottom
:
32px
;
}
.header-scroll-right
.button-text
p
.header-scroll-right
.button-text
p
{
{
display
:
none
;
display
:
none
;
...
...
src/scss/style.scss
View file @
3fee6418
...
@@ -581,24 +581,24 @@ select
...
@@ -581,24 +581,24 @@ select
right
:
20px
;
right
:
20px
;
}
}
.choices.disabled
.choices.
is-
disabled
{
{
pointer-events
:
none
;
pointer-events
:
none
;
}
}
.choices.disabled
.choices__inner
.choices.
is-
disabled
.choices__inner
{
{
border
:
solid
2px
#dddce8
!
important
;
border
:
solid
2px
#dddce8
!
important
;
border-color
:
#dddce8
!
important
;
border-color
:
#dddce8
!
important
;
background
:
transparent
;
background
:
transparent
;
}
}
.choices.disabled
.choices__list--single
.choices__item
.choices.
is-
disabled
.choices__list--single
.choices__item
{
{
color
:
#b7b6c3
!
important
;
color
:
#b7b6c3
!
important
;
}
}
.choices.disabled
[
data-type
*=
select-one
]
:after
.choices.
is-
disabled
[
data-type
*=
select-one
]
:after
{
{
border-top-color
:
#dddce8
;
border-top-color
:
#dddce8
;
}
}
...
@@ -845,6 +845,10 @@ ul
...
@@ -845,6 +845,10 @@ ul
border-color
:
#dddce8
;
border-color
:
#dddce8
;
background
:
transparent
;
background
:
transparent
;
}
}
input
[
type
=
"radio"
]
:disabled
~
p
{
color
:
#b7b6c3
;
}
input
[
type
=
"radio"
]
:disabled
~
.radio
:before
input
[
type
=
"radio"
]
:disabled
~
.radio
:before
{
{
background-color
:
#b7b6c3
;
background-color
:
#b7b6c3
;
...
@@ -982,6 +986,11 @@ textarea.field-error
...
@@ -982,6 +986,11 @@ textarea.field-error
border-color
:
red
!
important
;
border-color
:
red
!
important
;
}
}
textarea
:disabled
{
background-color
:
transparent
;
}
// Пагинация
// Пагинация
...
@@ -4281,7 +4290,7 @@ input[type="submit"]
...
@@ -4281,7 +4290,7 @@ input[type="submit"]
&
-row
&
-row
{
{
margin-left
:
-25px
;
margin-left
:
-25px
;
margin-right
:
-
2
5px
;
margin-right
:
-5px
;
.col-3
.col-3
{
{
padding-left
:
25px
;
padding-left
:
25px
;
...
@@ -4290,7 +4299,7 @@ input[type="submit"]
...
@@ -4290,7 +4299,7 @@ input[type="submit"]
.col-9
.col-9
{
{
padding-left
:
25px
;
padding-left
:
25px
;
padding-right
:
2
5px
;
padding-right
:
5px
;
}
}
.detailed-description
.detailed-description
{
{
...
@@ -4762,23 +4771,43 @@ input[type="submit"]
...
@@ -4762,23 +4771,43 @@ input[type="submit"]
// Страница Подписка
// Страница Подписка
.
subscription
,
.mailing
.
row
{
{
form
.block-checkbox
,
.block-radio
{
{
.block-checkbox
margin-top
:
0
;
margin-bottom
:
22px
;
label
{
{
margin-top
:
0
;
margin
:
0
;
margin-bottom
:
22px
;
}
}
.col-4
.block-checkbox
:last-child
}
.col-4
{
p
{
font-size
:
15px
;
}
}
.col-8
{
.col-4
.block-checkbox
:last-child
,
.col-4
.block-radio
:last-child
,
.col-12
.block-checkbox
:last-child
,
.col-12
.block-radio
:last-child
{
{
margin-bottom
:
0
;
margin-bottom
:
0
;
}
}
.col-4
.block-checkbox
:first-child
.col-4
.block-checkbox
:first-child
,
.col-4
.block-radio
:first-child
,
.col-12
.block-checkbox
:first-child
,
.col-12
.block-radio
:first-child
{
{
margin-bottom
:
22px
;
margin-bottom
:
22px
;
}
}
}
}
.subscription
,
.mailing
{
form
{
.other-position
.other-position
{
{
display
:
flex
;
display
:
flex
;
...
@@ -4908,17 +4937,21 @@ input[type="submit"]
...
@@ -4908,17 +4937,21 @@ input[type="submit"]
}
}
}
}
.load-
avatar
.load-
photo
{
{
width
:
210px
;
width
:
210px
;
height
:
263px
;
height
:
263px
;
position
:
absolute
;
position
:
absolute
;
box-shadow
:
0
10px
20px
0
rgba
(
15
,
20
,
91
,
0
.1
);
right
:
0
;
right
:
0
;
top
:
0
;
top
:
0
;
&
__block
&
__block
{
{
width
:
100%
;
width
:
100%
;
height
:
210px
;
height
:
210px
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
}
label
label
{
{
...
@@ -5732,6 +5765,142 @@ hr
...
@@ -5732,6 +5765,142 @@ hr
}
}
}
}
// Таблица сотрудников
.employees
{
background-color
:
#fff
;
border-top
:
4px
solid
#dddce8
;
box-shadow
:
0
10px
20px
0
rgba
(
15
,
20
,
91
,
0
.1
);
&
-header
{
padding
:
22px
20px
;
&
-row
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
&
-block
{
display
:
block
;
p
{
font-family
:
Raleway
Bold
;
font-size
:
14px
;
font-stretch
:
normal
;
font-style
:
normal
;
line-height
:
1
;
letter-spacing
:
normal
;
color
:
$color-primary
;
}
}
}
}
&
-content
{
&
-row
{
border-top
:
1px
solid
#dddce8
;
padding
:
22px
20px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
&
-block
{
display
:
block
;
p
{
line-height
:
normal
;
}
}
}
&
-row_new
{
background-color
:
rgba
(
146
,
200
,
62
,
0
.1
);
.employees-label-column
{
p
{
opacity
:
1
;
pointer-events
:
auto
;
}
}
.employees-button-column
{
.add-employee
{
opacity
:
1
;
pointer-events
:
auto
;
}
}
}
}
&
-label-column
{
width
:
10%
;
p
{
opacity
:
0
;
pointer-events
:
none
;
font-family
:
Montserrat
Bold
;
font-size
:
14px
;
font-stretch
:
normal
;
font-style
:
normal
;
line-height
:
normal
;
letter-spacing
:
normal
;
color
:
$color-hover
;
}
}
&
-name-column
{
width
:
22%
;
}
&
-button-column
{
width
:
14%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.add-employee
{
opacity
:
0
;
pointer-events
:
none
;
padding-bottom
:
4px
;
line-height
:
normal
;
}
}
&
-status-column
{
width
:
14%
;
text-align
:
center
;
}
&
-email-column
{
width
:
22%
;
}
&
-remove-column
{
width
:
9%
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
.remove-employee
{
border
:
0
;
display
:
block
;
}
.remove-employee
:hover
{
.img-svg
path
{
fill
:
$color-hover
;
}
}
}
}
// Футер
// Футер
...
...
webpack.config.js
View file @
3fee6418
...
@@ -12,7 +12,8 @@ const pages = ['index', 'articles', 'faq', 'vacancies-list', 'current-article',
...
@@ -12,7 +12,8 @@ const pages = ['index', 'articles', 'faq', 'vacancies-list', 'current-article',
'current-article-employer'
,
'service-rules-employer'
,
'access-account-employer'
,
'tariffs'
,
'password-recovery-employer'
,
'registration-employer'
,
'current-article-employer'
,
'service-rules-employer'
,
'access-account-employer'
,
'tariffs'
,
'password-recovery-employer'
,
'registration-employer'
,
'resumes-list'
,
'resumes-map'
,
'current-resume-employer'
,
'resume-paid'
,
'current-vacancy-employer'
,
'favorites-employer'
,
'my-vacancies'
,
'resumes-list'
,
'resumes-map'
,
'current-resume-employer'
,
'resume-paid'
,
'current-vacancy-employer'
,
'favorites-employer'
,
'my-vacancies'
,
'response-employer'
,
'response-vacancy-employer1'
,
'response-vacancy-employer2'
,
'employee-invitation'
,
'payment-services'
,
'invoice-payment'
,
'my-orders'
,
'response-employer'
,
'response-vacancy-employer1'
,
'response-vacancy-employer2'
,
'employee-invitation'
,
'payment-services'
,
'invoice-payment'
,
'my-orders'
,
'post-vacancy-step1'
,
'post-vacancy-step2'
,
'post-vacancy-step3'
,
'post-vacancy-step4'
,
'post-vacancy-step5'
,
'mailing'
,
'profile-employer'
,
'profile-editing-employer'
];
'post-vacancy-step1'
,
'post-vacancy-step2'
,
'post-vacancy-step3'
,
'post-vacancy-step4'
,
'post-vacancy-step5'
,
'mailing'
,
'profile-employer'
,
'profile-editing-employer'
,
'profile-preview-employer'
,
'profile-employee'
];
const
webpackConfig
=
{
const
webpackConfig
=
{
context
:
path
.
resolve
(
__dirname
,
'src'
),
context
:
path
.
resolve
(
__dirname
,
'src'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment