Skip to content

Commit

Permalink
Integrasi Home
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfahan committed Oct 11, 2020
1 parent ba1d6e6 commit 6f99c27
Show file tree
Hide file tree
Showing 13 changed files with 846 additions and 49 deletions.
1 change: 0 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

VUE_APP_BASE_URL = http://localhost:3000/api/v1
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
node_modules
/dist

.env

# local env files
.env.local
Expand Down
49 changes: 49 additions & 0 deletions src/components/CardUser.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template>
<div class="card-user">
<div class="user-box">
<div class="profile-image">
<span></span>
</div>
<p class="text-secondary mt-3 text-center" style="margin-left: -15px;"><b-icon icon="pencil-fill" class="mr-1"></b-icon> Edit</p>
</div>
<div class="user-data mt-3">
<div class="user-name">
<h5 class="font-weight-bold" style="margin-bottom: 0;">Louis Tomlinson</h5>
<p>Web Developer</p>
</div>
<div>
<p class="text-secondary" style="margin-bottom: 0;"><img src="../assets/img/map-pin (4) 1.png" alt="mappin"> Purwokerto, Jawa Tengah</p>
<p class="text-secondary">Freelancer</p>
</div>
</div>
</div>
</template>

<script>
export default {
name: 'CardUser'
}
</script>

<style scoped>
.card-user {
width: 320px;
height: 100%;
background: #FFFFFF;
border-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
}
.profile-image {
width: 130px;
background-image: url('../assets/img/Ellipse 325.png');
background-size: cover;
height: 130px;
border-radius: 70px;
}
.user-data {
width: 100%;
}
</style>
323 changes: 323 additions & 0 deletions src/components/EditProfile.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,323 @@
<template>
<div>
<div v-if="this.status === 'pekerja'">
<!-- form pencari kerja -->
<b-row class="users">
<b-col lg="12" class="profile-user">
<b-row class="px-5">
<h1 class="px-2 py-3">Data Diri</h1>
<div class="line py-2"></div>
<b-col lg="12">
<form>
<div class="form-group">
<label>Nama Lengkap</label>
<input type="text" class="form-control" placeholder="Masukan nama lengkap">
</div>
<div class="form-group">
<label>Jobdesk</label>
<input type="text" class="form-control" placeholder="Masukan Jobdesk">
</div>
<div class="form-group">
<label>Domisili</label>
<input type="text" class="form-control" placeholder="Masukan Domisili">
</div>
<div class="form-group">
<label>Tempat Kerja</label>
<input type="text" class="form-control" placeholder="Masukan Tempat Kerja">
</div>
<div class="form-group">
<label>Deskripsi singkat</label>
<textarea class="form-control" rows="5" placeholder="Tuliskan deskripsi singkat"></textarea>
</div>
</form>
</b-col>
</b-row>
</b-col>
<!-- skil -->
<b-col lg="12" class="skill-search my-4">
<b-row class="input-search px-5">
<h1 class="px-2 py-3"></h1>
<div v-for="(item,index) in dataSkill" :key="index">
<button class="btn b">{{ item }}</button>
</div>
<b-col lg="12">
<div class="input-group mb-3">
<input type="text" class="form-control" v-model="skill" placeholder="Golang">
<button class="btn search-btn mx-3" @click="saveSkill">Simpan</button>
</div>
</b-col>
</b-row>
</b-col>

<!-- experience -->
<b-col lg="12" class="experience my-4">
<b-row class="px-5">
<h1 class="px-2 py-3">Pengalaman Kerja</h1>
<div class="line py-2"></div>
<b-col lg="12">
<form>
<div class="form-group">
<label>Posisi</label>
<input type="text" class="form-control" placeholder="Fullstack Developer">
</div>
</form>
</b-col>
<b-col lg="12">
<b-row>
<b-col lg="6" class="text-left">
<div class="form-group">
<label>Nama Perusahaan</label>
<input type="text" class="form-control" placeholder="PT Apa Aja Boleh">
</div>
</b-col>
<b-col lg="6">
<div class="form-group">
<label class="text-left">Bulan/Tahun</label>
<input type="text" class="form-control" placeholder="Januari 2088">
</div>
</b-col>
</b-row>
</b-col>
<b-col lg="12">
<div class="form-group">
<label>Deskripsi singkat</label>
<textarea class="form-control" rows="5" placeholder="Deskripsi Pekerjaan anda"></textarea>
</div>
</b-col>
<b-col lg="12" class="my-3">
<button class="btn btn-experience">Tambah Pengalaman</button>
</b-col>
</b-row>
</b-col>
<!-- end experience -->

<!-- start portofolio -->
<b-col lg="12" class="portofolio my-4">
<b-row class="px-5">
<h1 class="px-2 py-3">Portofolio</h1>
<div class="line py-2"></div>
<b-col lg="12">
<form>
<div class="form-group">
<label>Nama Aplikasi</label>
<input type="text" class="form-control" placeholder="Masukkan nama aplikasi">
</div>
<div class="form-group">
<label>Link Repository</label>
<input type="text" class="form-control" placeholder="Masukkan link repository">
</div>
<div class="form-group">
<label>Type Portfolio</label>
<b-row>
<b-col lg="6" sm="6" cols="6" class="radio">
<div class="radio-box text-left py-2">
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>
<label class="form-check-label" for="exampleRadios1">
Aplikasi Web
</label>
</div>
</div>
</b-col>
<b-col lg="6" sm="6" cols="6" class="radio">
<div class="radio-box text-left py-2">
<div class="form-check">
<input class="form-check-input" type="radio" name="exampleRadios" id="exampleRadios1" value="option1" checked>
<label class="form-check-label" for="exampleRadios1">
Aplikasi Mobile
</label>
</div>
</div>
</b-col>
</b-row>
</div>
<div class="form-group">
<label>Upload Gambar</label>
<input type="file" class="form-control" >
</div>
</form>
</b-col>
<b-col lg="12" class="my-3">
<button class="btn btn-experience">Tambah Portfolio</button>
</b-col>
</b-row>
</b-col>
<!-- end portofolio -->
</b-row>
<!-- end form pencari kerja -->
</div>

<div v-else>
<!-- company / perekrut -->
<b-row >
<b-col lg="12" class="profile-company">
<b-row class="">
<h1 class="px-2 py-3">Data Diri</h1>
<div class="line py-2"></div>
<b-col lg="12">
<form>
<div class="form-group">
<label>Nama Perusahaan</label>
<input type="text" class="form-control" placeholder="Masukan nama Perusahaan">
</div>
<div class="form-group">
<label>Bidang</label>
<input type="text" class="form-control" placeholder="Masukan bidang perusahaan ex : Financial">
</div>
<div class="form-group">
<label>Kota</label>
<input type="text" class="form-control" placeholder="Masukan Kota">
</div>
<div class="form-group">
<label>Deskripsi singkat</label>
<textarea class="form-control" rows="5" placeholder="Tuliskan deskripsi singkat"></textarea>
</div>
<div class="form-group">
<label>Email</label>
<input type="text" class="form-control" placeholder="Masukan Email">
</div>
<div class="form-group">
<label>Instagram</label>
<input type="text" class="form-control" placeholder="Masukan Nama Instagram">
</div>
<div class="form-group">
<label>Nomor Telepon</label>
<input type="text" class="form-control" placeholder="Masukan Nomor Telepon">
</div>
<div class="form-group">
<label>Linkedin</label>
<input type="text" class="form-control" placeholder="Masukan Nama Linkedin">
</div>
</form>
</b-col>
</b-row>
</b-col>
</b-row>
</div>
</div>
</template>
<script>
export default {
data () {
return {
status: 'pekerja',
dataSkill: [],
skill: null
}
},
methods: {
saveSkill () {
this.dataSkill.push(this.skill)
console.log(this.dataSkill)
this.skill = ''
}
}
}
</script>
<style scoped>
.profile-user{
background: #FFFFFF;
border-radius: 8px;
}
.skill-search{
background: #FFFFFF;
border-radius: 8px;
}
.experience{
background: #FFFFFF;
border-radius: 8px;
}
.input-search .form-control{
height: 55px;
}
.search-btn{
background: #FBB017;
border-radius: 4px;
color: white;
border: 2px solid #FBB017;
}
.search-btn:hover{
background: white;
border-radius: 4px;
color: #FBB017;
border: 2px solid #FBB017;
}
.line{
border-bottom: 1px solid #C4C4C4;
}
.form-group label{
color: #9EA0A5;
font-size: 13px;
}
.form-control{
background: #FFFFFF;
border: 1px solid #E2E5ED;
box-sizing: border-box;
border-radius: 4px;
}
/* experience */
.btn-experience{
height: 60px;
width: 100%;
border: 2px solid #FBB017;
box-sizing: border-box;
border-radius: 4px;
color: #FBB017;
}
.btn-experience:hover{
height: 60px;
width: 100%;
border: 2px solid #FBB017;
box-sizing: border-box;
border-radius: 4px;
background-color: #FBB017;
color: white;
}
/* portofolio */
.portofolio{
background: #FFFFFF;
border-radius: 8px;
}
.radio-box{
height: 40px;
background: #FFFFFF;
border: 1px solid #E2E5ED;
box-sizing: border-box;
border-radius: 4px;
padding: 5px;
}
.radio:hover{
cursor: pointer;
}
.b {
background: rgba(251, 176, 23, 0.6);
border: 1px solid #FBB017;
box-sizing: border-box;
border-radius: 4px;
font-weight: 600;
font-size: 12px;
line-height: 20px;
color: #FFFFFF;
padding: 5px 20px;
margin-right: 10px;
}
.b:hover {
color: white;
}
/* company */
.profile-company{
padding: 0px 45px;
background: #FFFFFF;
border-radius: 8px;
}
@media only screen and (max-width: 600px) {
.radio-box {
padding: 1px;
}
.profile-company{
padding: 6px;
background: #FFFFFF;
border-radius: 8px;
}
}
</style>
Loading

0 comments on commit 6f99c27

Please sign in to comment.