forked from zhaoky/flqin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
144 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
<div class="-page"> | ||
footer | ||
<div> | ||
<div id="contact_head"> | ||
<div id="contact_head1">灵感 代码 梦想 未来</div> | ||
<div id="contact_head2"> | ||
<span>inspiration</span> | ||
<span>code</span> | ||
<span>dream</span> | ||
<span>future</span> | ||
</div> | ||
</div> | ||
<div id="contact_info" class="contact_scale"> | ||
<ul></ul> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,11 +4,9 @@ | |
<div class="-photo"></div> | ||
</div> | ||
<div class="-des"> | ||
<p>生活是一种绵延不绝的渴望,渴望不断上升,变得更伟大而高贵。</p> | ||
<p class="-quote">{{$ctrl.quote}}</p> | ||
<div> | ||
<p>我叫赵柯宇</p> | ||
<p>一名前端研发工程师</p> | ||
<p>[email protected]</p> | ||
<p ng-repeat="item in $ctrl.desList track by $index">{{item}}</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,64 @@ | ||
export default angular | ||
.module("rHeader", []) | ||
.component("resumeHeader", { | ||
templateUrl : "components/rHeader/cmpt.html", | ||
controller : ResumeHeaderCtrl | ||
}) | ||
.name; | ||
|
||
function ResumeHeaderCtrl() { | ||
.module("rHeader", []) | ||
.component("resumeHeader", { | ||
templateUrl: "components/rHeader/cmpt.html", | ||
controller: ResumeHeaderCtrl, | ||
bindings: { | ||
pageIndex: "=" | ||
} | ||
}) | ||
.directive("opacityCallback", [ | ||
function () { | ||
function link($scope, ele) { | ||
let vm = $scope.$ctrl; | ||
ele[0].addEventListener("webkitTransitionEnd", transitionEndHandler); | ||
function transitionEndHandler() { | ||
if (vm.isShowNav) { | ||
ele[0].style.display = vm.isShowNav ? "block" : "none"; | ||
} | ||
} | ||
} | ||
return { | ||
restrict: "A", | ||
link: link | ||
} | ||
} | ||
]) | ||
.directive("selectedNavItem", [ | ||
function () { | ||
|
||
function link($scope, ele) { | ||
let vm = $scope.$ctrl; | ||
|
||
ele[0].addEventListener("click", clickHandler); | ||
function clickHandler(evt) { | ||
if (evt.target.nodeName != "LI") { | ||
return; | ||
} | ||
(evt.target.dataset.index !== vm.pageIndex) && (vm.pageIndex = evt.target.dataset.index); | ||
vm.isShowNav = false; | ||
$scope.$apply(); | ||
} | ||
} | ||
|
||
return { | ||
restrict: "A", | ||
link: link | ||
} | ||
} | ||
]) | ||
.name; | ||
|
||
ResumeHeaderCtrl.$inject = ["resumeData","$scope"]; | ||
|
||
function ResumeHeaderCtrl(resumeData) { | ||
|
||
let vm = this; | ||
|
||
console.log(vm); | ||
|
||
resumeData.extend(vm, resumeData.data.cn.header); | ||
|
||
vm.pageIndex = 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,27 +8,61 @@ export default angular | |
rFooter, | ||
rMain | ||
]) | ||
.service(resumeData,[ | ||
.service("resumeData",[ | ||
function(){ | ||
var data = { | ||
this.data = { | ||
cn:{ | ||
header:{ | ||
langList:["中","英"], | ||
titleList:["首页","我的信息","我的技能","我的经历","我的作品","联系我"] | ||
}, | ||
footer:{}, | ||
default:{}, | ||
info:{}, | ||
skill:{}, | ||
default:{ | ||
quote:"生活是一种绵延不绝的渴望,渴望不断上升,变得更伟大而高贵。", | ||
desList:[ | ||
"我叫赵柯宇", | ||
"一名前端研发工程师", | ||
"[email protected]" | ||
] | ||
}, | ||
info:{ | ||
infoList:[ | ||
{icon:"1.png",key:"年龄",value:"26岁"}, | ||
{icon:"2.png",key:"学历",value:"本科"}, | ||
{icon:"3.png",key:"坐标",value:"成都"}, | ||
{icon:"4.png",key:"状态",value:"在职"} | ||
], | ||
desList:[ | ||
"三年互联网经验,两年半全职前端开发经验", | ||
"项目常用原生JS开发,深谙组件化,模块化开发之道", | ||
"高效的自学能力,独立分析解决问题能力,代码强迫症患者" | ||
] | ||
}, | ||
skill:{ | ||
outCircleList:["git","webpack","gulp","less","cordova","angular","nodejs","react"], | ||
innerCircleList:["es6","vue","ng2","fp"], | ||
desList:[ | ||
"三年互联网经验,两年半全职前端开发经验", | ||
"项目常用原生JS开发,深谙组件化,模块化开发之道", | ||
"高效的自学能力,独立分析解决问题能力,代码强迫症患者" | ||
] | ||
}, | ||
demo:{}, | ||
experience:{}, | ||
contact:{} | ||
}, | ||
en:{ | ||
|
||
} | ||
|
||
}; | ||
this.extend = function(destination,source){ | ||
for (let prop in source) { | ||
if (!source.hasOwnProperty(prop)) { | ||
continue; | ||
} | ||
destination[prop] = source[prop]; | ||
} | ||
} | ||
} | ||
]) | ||
|
||
|