Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Huỳnh Thiên Phước
venjob
Commits
dcd2b835
Commit
dcd2b835
authored
Aug 10, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create Job detail
parent
cbe87ae5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
3 deletions
+121
-3
app/assets/images/job-details.jpg
+0
-0
app/assets/stylesheets/jobs.scss
+45
-2
app/views/jobs/access_jobs.html.erb
+76
-1
No files found.
app/assets/images/job-details.jpg
0 → 100644
View file @
dcd2b835
84.2 KB
app/assets/stylesheets/jobs.scss
View file @
dcd2b835
...
@@ -6,5 +6,48 @@
...
@@ -6,5 +6,48 @@
margin
:
5px
;
margin
:
5px
;
padding
:
5px
;
padding
:
5px
;
}
}
.details-banner
{
position
:
relative
;
width
:
100%
;
height
:
50vh
;
}
.job-details-banner
{
background-image
:
url('job-details.jpg')
;
width
:
100%
;
height
:
100%
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
}
.job-info
{
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
background-color
:
#e6e6e6
;
color
:
#262626
;
font-size
:
16px
;
font-family
:
Bookman
,
URW
Bookman
L
,
serif
;
}
.apply-job
{
position
:
absolute
;
right
:
5%
;
top
:
10%
;
border
:
2px
solid
#006080
;
border-radius
:
12px
;
width
:
20%
;
text-align
:
center
;
color
:
white
;
background
:
rgb
(
2
,
0
,
36
);
background
:
linear-gradient
(
90deg
,
rgba
(
2
,
0
,
36
,
1
)
0%
,
rgba
(
7
,
251
,
89
,
1
)
28%
,
rgba
(
0
,
212
,
255
,
1
)
100%
);
}
.info
{
background-color
:
#cce6ff
;
margin
:
20px
;
padding
:
20px
;
}
.under-descrip
{
text-align
:
center
;
}
.apply-btn
,
.favorite-btn
{
margin
:
20px
;
padding
:
20px
;
}
app/views/jobs/access_jobs.html.erb
View file @
dcd2b835
<div
class=
"container"
>
<div
class=
"container"
>
<%=
@job_details
.
title
%>
<div
class=
"details-banner"
>
<div
class=
"job-details-banner"
>
<div
class=
"job-info"
>
<div><strong>
<%=
@job_details
.
title
%>
</strong></div>
<div>
<%=
@job_details
.
company_name
%>
</div>
<div
class=
"breadcrumb"
>
<%=
link_to
"TOP"
,
root_path
%>
 
/
 
<%
@job_details
.
cities
.
each
do
|
city
|
%>
<%=
link_to
'🎯'
+
city
.
name
,
city_jobs_path
(
converted_name:
city
.
converted_name
)
%>
<%
end
%>
 
/
 
<%
@job_details
.
industries
.
each
do
|
industry
|
%>
<%=
link_to
'👉'
+
industry
.
name
,
industry_jobs_path
(
converted_name:
industry
.
converted_name
)
%>
<%
end
%>
 
/
 
<%=
@job_details
.
title
.
truncate_words
(
5
)
%>
</div>
<%=
link_to
'#'
do
%>
<div
class=
"apply-job"
>
<strong>
Apply Now
</strong>
</div>
<%
end
%>
</div>
</div>
</div>
<div
class=
"details"
>
<div
class=
"job-infomation"
>
<h1>
<%=
@job_details
.
title
%>
</h1>
<div
class=
"row info border border-dark"
>
<div
class=
"col-6"
>
<div
class=
"city"
>
<strong>
Location:
</strong>
<%=
@job_details
.
cities
.
map
(
&
:name
).
join
(
' | '
)
%>
</div>
<div
class=
"created-day"
>
<strong>
Created at
</strong>
:
<%=
@job_details
.
created_at
.
strftime
(
'%d/%m/%Y'
)
%>
</div>
<div
class=
"industry"
>
<strong>
Industry:
</strong>
<%=
@job_details
.
industries
.
map
(
&
:name
).
join
(
', '
)
%>
</div>
</div>
<div
class=
"col-6"
>
<div
class=
"salary-detail"
>
<strong>
Salary:
</strong>
<%=
@job_details
.
salary
%>
</div>
<%
if
@job_details
.
experience
.
present?
%>
<div
class=
"experience"
>
<strong>
Experience:
</strong>
<%=
@job_details
.
experience
%>
</div>
<%
end
%>
<div
class=
"level"
>
<strong>
Level:
</strong>
<%=
@job_details
.
level
%>
</div>
<div
class=
"expiration-date"
>
<strong>
Expiration date:
</strong>
<%=
@job_details
.
expiration_date
%>
</div>
</div>
</div>
</div>
<div
class=
"job-description"
>
<%=
@job_details
.
description
.
html_safe
%>
</div>
</div>
<div
class=
"row under-descrip"
>
<div
class=
"col-6"
>
<%=
link_to
'#'
do
%>
<div
class=
"btn btn-info btn-lg apply-btn"
>
<strong>
Apply Now
</strong>
</div>
<%
end
%>
</div>
<div
class=
"col-6"
>
<%=
link_to
'#'
do
%>
<div
class=
"btn btn-danger btn-lg favorite-btn"
>
<strong>
Favorite
</strong>
</div>
<%
end
%>
</div>
</div>
</div>
</div>
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