Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Port orbit theme #101

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*.exe
resumic
/resumic
2 changes: 1 addition & 1 deletion cmd/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ var renderCmd = &cobra.Command{
}

func init() {
renderCmd.Flags().StringP("theme", "t", "test-theme", "Theme to use")
renderCmd.Flags().StringP("theme", "t", "orbit", "Theme to use")
renderCmd.Flags().StringP("themesDir", "d", "", "Filesystem path to themes directory")
rootCmd.AddCommand(renderCmd)
}
234 changes: 231 additions & 3 deletions example.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,234 @@
<html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>
John Doe resume
</title>


<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Responsive HTML5 Resume/CV Template for Developers">
<meta name="author" content="Xiaoying Riley at 3rd Wave Media">
<link rel="shortcut icon" href="/images/favicon.ico">

<link href="https://fonts.googleapis.com/css?family=Roboto:400,500,400italic,300italic,300,500italic,700,700italic,900,900italic" rel="stylesheet" type="text/css">

<script defer src="https://use.fontawesome.com/releases/v5.1.0/js/all.js" integrity="sha384-3LK/3kTpDE/Pkp8gTNp2gR/2gOiwQ6QaO7Td0zV76UFJVhqLl4Vl3KL1We6q6wR9" crossorigin="anonymous"></script>

<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.2/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-Smlep5jCw/wG7hdkwQ/Z5nLIefveQRIY9nfy6xoR1uRYBtpZgI6339F5dgvm/e9B" crossorigin="anonymous">

<link id="theme-style" rel="stylesheet" href="/css/orbit-6.css">
</head>

<body>
<div class="wrapper">
<div class="sidebar-wrapper">
<div class="profile-container">

<img class="profile" src="example.com/Abcxyz" alt="" />



<h1 class="name">John Doe</h1>



<h3 class="tagline">Software Engineer</h3>

</div>
<div class="contact-container container-block">
<ul class="list-unstyled contact-list">

<li class="email">
<i class="fas fa-envelope"></i>
<a href="mailto:[email protected]">[email protected]</a>
</li>



<li class="phone">
<i class="fas fa-phone"></i>
<a href="tel:912-217-7923">912-217-7923</a>
</li>



<li class="website">
<i class="fas fa-globe"></i>
<a href="http://www.example.com/" target="_blank">www.example.com/</a>
</li>




<li class="social-media">

<i class="fab fa-github"></i>

<a href="https://github.com/john_doe" target="_blank">github.com/john_doe</a>
</li>


</ul>
</div>

<div class="education-container container-block">
<h2 class="container-block-title">Education</h2>

<div class="item">
<h4 class="degree">
Bachelor in Engineering
</h4>

<h5 class="meta">XYZ Institute of Technology</h5>

<div class="time">
2017
-

2013

</div>
</div>

</div>


<div class="languages-container container-block">
<h2 class="container-block-title">Languages</h2>

<ul class="list-unstyled interests-list">

<li>
English
<span class="lang-desc">
(Fluent)
</span>
</li>

</ul>
</div>


<div class="interests-container container-block">
<h2 class="container-block-title">Interests</h2>

<ul class="list-unstyled interests-list">

<li>Machine Learning</li>

</ul>
</div>

</div>

<div class="main-wrapper">

<section class="section summary-section">
<h2 class="section-title">
<span class="icon-holder"><i class="fas fa-user"></i></span>
Career Profile
</h2>

<div class="summary">
<p>The man who sold the world!</p>
</div>
</section>


<section class="section experiences-section">
<h2 class="section-title">
<span class="icon-holder"><i class="fas fa-briefcase"></i></span>
Experiences
</h2>


<div class="item">
<div class="meta">
<div class="upper-row">
<h3 class="job-title">Software Engineer</h3>
<div class="time">
2017
-

2018

</div>
</div>
<div class="company">
XYZ Inc
</div>
</div>


<div class="details">
<p> Developing and maintaining the company website using syna </p>
</div>

</div>

</section>


<section class="section projects-section">
<h2 class="section-title">
<span class="icon-holder"><i class="fas fa-archive"></i></span>
Projects
</h2>


<div class="item">
<span class="project-title">
<a href="http://www.example.org/csdl/mags/co/1996/10/rx069-abs.html">File Transfer application</a>
</span>

-
<span class="project-tagline">Developed a client and server based application</span>

</div>

John Doe - Software Engineer
</section>


<section class="skills-section section">
<h2 class="section-title">
<span class="icon-holder"><i class="fas fa-rocket"></i></span>
Skills &amp; Proficiency
</h2>

<div class="skillset">

<div class="item">
<h3 class="level-title">Web Development</h3>





<div class="progress level-bar">
<div class="progress-bar theme-progress-bar"
role="progressbar" style="width: 80%"
aria-valuenow="80"
aria-valuemin="0"
aria-valuemax="100">
</div>
</div>
</div>

</div>
</section>

</div>
</div>

<footer class="footer">
<div class="text-center">

<small class="copyright">Designed with <i class="fas fa-heart"></i> by <a href="http://themes.3rdwavemedia.com" target="_blank">Xiaoying Riley</a> for developers</small>
</div>
</footer>

</body>
</html>
</html>
6 changes: 3 additions & 3 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,7 @@
"institution",
"area",
"studyType",
"startDate",
"endDate"
"startDate"
],
"type": "object"
},
Expand Down Expand Up @@ -271,7 +270,8 @@
}
},
"required": [
"language"
"language",
"level"
],
"type": "object"
},
Expand Down
6 changes: 3 additions & 3 deletions schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ type educationSchema struct {
Area string `json:"area" schema:"description:area of study;example:Engineering"`
StudyType string `json:"studyType" schema:"description:type of study;example:Bachelor"`
StartDate string `json:"startDate" schema:"description:start date;format:date;example:2017-06-28"`
EndDate string `json:"endDate,omitepmty" schema:"description:end date;format:date;example:2013-06-28"`
EndDate string `json:"endDate,omitempty" schema:"description:end date;format:date;example:2013-06-28"`
Score scoreSchema `json:"score,omitempty"`
Courses []string `json:"courses,omitempty" schema:"description:notable courses/subjects;items_example:CS302 - Introduction to Algorithms"`
Honors []string `json:"honors,omitempty" schema:"description:some education honours;items_example:Magna Cum Laude"`
Expand Down Expand Up @@ -153,8 +153,8 @@ type referenceSchema struct {
}

type languageSchema struct {
Language string `json:"language,omitepty" schema:"description:name of language;example:English"`
Level string `json:"level,omitempty" schema:"description:proficiency level for the language;enum:basic,conversational,fluent,native;example:fluent"`
Language string `json:"language" schema:"description:name of language;example:English"`
Level string `json:"level" schema:"description:proficiency level for the language;enum:basic,conversational,fluent,native;example:fluent"`
}

type interestSchema struct {
Expand Down
43 changes: 43 additions & 0 deletions theme/defaults/orbit/layouts/partials/contant.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<div class="contact-container container-block">
<ul class="list-unstyled contact-list">
{{ with .personal.email }}
<li class="email">
<i class="fas fa-envelope"></i>
<a href="mailto:{{ . }}">{{.}}</a>
</li>
{{ end }}

{{ with .personal.phone }}
<li class="phone">
<i class="fas fa-phone"></i>
<a href="tel:{{ . }}">{{.}}</a>
</li>
{{ end }}

{{ with .personal.url }}
<li class="website">
<i class="fas fa-globe"></i>
<a href="{{ . }}" target="_blank">{{ . | replaceRE "^https?://(.*)" "$1" }}</a>
</li>
{{ end }}

{{ with .personal.profiles }}
{{ range . }}
<li class="social-media">
{{ if eq .network "github" }}
<i class="fab fa-github"></i>
{{ else if eq .network "twitter" }}
<i class="fab fa-twitter"></i>
{{ else if eq .network "linkedin" }}
<i class="fab fa-linkedin-in"></i>
{{ else if eq .network "facebook" }}
<i class="fab fa-facebook"></i>
{{ else }}
<i class="fas fa-user-friends"></i>
{{ end }}
<a href="{{ .url }}" target="_blank">{{ .url | replaceRE "^https?://(.*)" "$1" }}</a>
</li>
{{ end }}
{{ end }}
</ul>
</div>
24 changes: 24 additions & 0 deletions theme/defaults/orbit/layouts/partials/education.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ with .education }}
<div class="education-container container-block">
<h2 class="container-block-title">Education</h2>
{{ range . }}
<div class="item">
<h4 class="degree">
{{ .studyType }} in {{ .area }}
</h4>

<h5 class="meta">{{ .institution }}</h5>

<div class="time">
{{ .startDate | dateFormat "2006" }}
-
{{ with .endDate }}
{{ . | dateFormat "2006" }}
{{ else }}
Present
{{ end }}
</div>
</div>
{{ end }}
</div>
{{ end }}
Loading