diff --git a/.gitignore b/.gitignore index ed4e1db4..f3a73b58 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ /content /static/images .vscode +.DS_Store ### Hugo ### # Generated files by hugo diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index 2babb32a..3f295910 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -159,69 +159,70 @@ params: - "Express" # Experience - experience: - enable: true - # title: "Custom Name" - items: - - job: "Senior Software Developer" - company: "Facebook" - companyUrl: "https://example.com" - date: "Jan 2022 - present" - featuredLink: - enable: true - name: "View the project" - url: "https://example.com" - content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." - - - job: "Software Developer" - company: "Amazon" - companyUrl: "https://example.com" - date: "Sep 2020 - Dec 2021" - featuredLink: - enable: true - url: "https://example.com" - info: - enable: true - content: I worked as a software developer for more than one year in Amazon. - content: | - I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. - - - Lead backend developer for a product. - - Created a frontend design for a product. - - - job: "Junior Software Developer" - company: "Apple" - companyUrl: "https://example.com" - date: "Jan 2020 - Aug 2020" - info: - enable: false - featuredLink: - enable: true - url: "https://example.com" - content: | - I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. - - - Lead backend developer for a product. - - Created a frontend design for a product. - - - job: "UI/UX Designer" - company: "Netflix" - companyUrl: "https://example.com" - date: "June 2017 - Nov 2019" - featuredLink: - enable: true - url: "https://example.com" - content: | - I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. - - - Lead backend developer for a product. - - Created a frontend design for a product. - - - job: "Product Designer" - company: "Google" - companyUrl: "https://example.com" - date: "Feb 2016 - Mar 2017" - content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." + experiences: + - key: "exp" + enable: true + # title: "Custom Name" + items: + - job: "Senior Software Developer" + company: "Facebook" + companyUrl: "https://example.com" + date: "Jan 2022 - present" + featuredLink: + enable: true + name: "View the project" + url: "https://example.com" + content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." + + - job: "Software Developer" + company: "Amazon" + companyUrl: "https://example.com" + date: "Sep 2020 - Dec 2021" + featuredLink: + enable: true + url: "https://example.com" + info: + enable: true + content: I worked as a software developer for more than one year in Amazon. + content: | + I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. + + - Lead backend developer for a product. + - Created a frontend design for a product. + + - job: "Junior Software Developer" + company: "Apple" + companyUrl: "https://example.com" + date: "Jan 2020 - Aug 2020" + info: + enable: false + featuredLink: + enable: true + url: "https://example.com" + content: | + I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. + + - Lead backend developer for a product. + - Created a frontend design for a product. + + - job: "UI/UX Designer" + company: "Netflix" + companyUrl: "https://example.com" + date: "June 2017 - Nov 2019" + featuredLink: + enable: true + url: "https://example.com" + content: | + I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city. + + - Lead backend developer for a product. + - Created a frontend design for a product. + + - job: "Product Designer" + company: "Google" + companyUrl: "https://example.com" + date: "Feb 2016 - Mar 2017" + content: "I am currently working as a software developer at [example org.](https://example.com) in San Francisco, CA. I am currently working on a project that will be used to help people find the best way to get around the city." # Education education: diff --git a/layouts/index.html b/layouts/index.html index 146fb5b6..ba53c506 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -14,7 +14,9 @@ {{ define "main" }} {{- partial "sections/hero/index.html" . -}} {{- partial "sections/about.html" . -}} -{{- partial "sections/experience.html" . -}} +{{ range $index, $element := .Site.Params.experiences }} + {{- partial "sections/experience/experience.html" $element -}} +{{ end }} {{- partial "sections/education.html" . -}} {{- partial "sections/projects.html" . -}} {{- partial "sections/achievements.html" . -}} diff --git a/layouts/partials/sections/experience.html b/layouts/partials/sections/experience.html deleted file mode 100644 index f9c2d13d..00000000 --- a/layouts/partials/sections/experience.html +++ /dev/null @@ -1,130 +0,0 @@ -{{ if .Site.Params.experience.enable | default false }} -
-
-

{{ .Site.Params.experience.title | default "Experience" }}

-
-
-
- -
- {{ range $index, $element := .Site.Params.experience.items }} - {{ if (eq $index 0) }} -
-
- {{ .job }} - - - {{ .company }} -
- {{ .date }} - {{ if .info.enable | default true }} - - - - - - {{ end }} -
- - {{ if .featuredLink.enable | default false }} - - {{ end }} -
- - {{ .content | markdownify}} -
- {{ else }} -
-
- {{ .job }} - - - {{ .company }} - -
- {{ .date }} - {{ if .info.enable | default true }} - - - - - - {{ end }} -
- - {{ if .featuredLink.enable | default false }} - - {{ end }} -
- -
- {{ .content | markdownify}} -
-
- {{ end }} - {{ end }} -
-
-
-
-
-
-{{ end }} diff --git a/layouts/partials/sections/experience/experience-tab-entry.html b/layouts/partials/sections/experience/experience-tab-entry.html new file mode 100644 index 00000000..87a8f687 --- /dev/null +++ b/layouts/partials/sections/experience/experience-tab-entry.html @@ -0,0 +1,58 @@ + + +
+
+ {{ .job }} + - + {{ .company }} +
+ {{ .date }} + {{ if .info | default false}} + {{ if .info.enable | default true }} + + + + + + {{ end }} + {{ end }} +
+ + {{ if .featuredLink | default false}} + {{ if .featuredLink.enable | default false }} + + {{ end }} + {{ end}} +
+ + {{ .content | markdownify}} +
\ No newline at end of file diff --git a/layouts/partials/sections/experience/experience-tab.html b/layouts/partials/sections/experience/experience-tab.html new file mode 100644 index 00000000..a65ca242 --- /dev/null +++ b/layouts/partials/sections/experience/experience-tab.html @@ -0,0 +1,21 @@ + + + \ No newline at end of file diff --git a/layouts/partials/sections/experience/experience.html b/layouts/partials/sections/experience/experience.html new file mode 100644 index 00000000..c8ebb1d6 --- /dev/null +++ b/layouts/partials/sections/experience/experience.html @@ -0,0 +1,43 @@ +{{ if .enable | default false }} +{{$key := .key}} +
+
+

{{ .title | default "Experience" }}

+
+
+
+ +
+ {{ range $index, $element := .items }} + {{ partial "sections/experience/experience-tab-entry.html" + (dict + "index" $index + "key" $key + "info" .info + "company" .company + "companyUrl" .companyUrl + "date" .date + "job" .job + "featuredLink" .featuredLink + "content" .content + ) + }} + {{ end }} +
+
+
+
+
+
+{{ end }} diff --git a/static/css/index.css b/static/css/index.css index ef2b9156..513dd93e 100644 --- a/static/css/index.css +++ b/static/css/index.css @@ -264,39 +264,39 @@ header .navbar.animate { /* experience */ -#experience h3 { +.experience h3 { color: var(--text-secondary-color) !important; } -#experience * { +.experience * { background-color: transparent !important; } -#experience .tab-pane > * { +.experience .tab-pane > * { opacity: 0.9; } -#experience .tab-pane small { +.experience .tab-pane small { opacity: 0.8; } -#experience .tab-pane ul { +.experience .tab-pane ul { padding-top: 1%; padding-bottom: 1%; } -#experience .experience-container .tab-content > .tab-pane p { +.experience .experience-container .tab-content > .tab-pane p { padding: 1% 0; margin: 0; } -#experience .experience-container { +.experience .experience-container { background-color: var(--secondary-color) !important; border-radius: .75rem; box-shadow: 0px 8px 56px rgb(15 80 100 / 16%); } -#experience .nav-item .nav-link { +.experience .nav-item .nav-link { color: var(--text-color) !important; border-bottom: 2px solid transparent; border-radius: 0%; @@ -304,29 +304,29 @@ header .navbar.animate { cursor: pointer; } -#experience .nav-item .nav-link.active { +.experience .nav-item .nav-link.active { color: var(--text-color) !important; border-bottom: 2px solid var(--primary-color); opacity: 0.8; } -#experience .nav-item .nav-link.active:hover { +.experience .nav-item .nav-link.active:hover { transition: none !important; } -#experience .nav-item .nav-link:hover { +.experience .nav-item .nav-link:hover { border-bottom: 2px solid var(--primary-color); opacity: 0.8; } -#experience a { +.experience a { opacity: 0.9; display: inline-block; text-decoration: none; color: var(--primary-color) !important; } -#experience a::after { +.experience a::after { content: ""; display: block; width: 0px; @@ -337,30 +337,30 @@ header .navbar.animate { opacity: 0.5; } -#experience a:hover::after, #experience a:focus::after, #experience a:active::after { +.experience a:hover::after, .experience a:focus::after, .experience a:active::after { width: 100%; } -#experience .experience-container .tab-content .tab-pane ul { +.experience .experience-container .tab-content .tab-pane ul { overflow: hidden; list-style: none; margin-bottom: 0; } -#experience .experience-container .tab-content .tab-pane ul li { +.experience .experience-container .tab-content .tab-pane ul li { position: relative; margin-bottom: 10px; padding-left: 20px; } -#experience .experience-container .tab-content .tab-pane ul li::before { +.experience .experience-container .tab-content .tab-pane ul li::before { content: "▹"; color: var(--primary-color); position: absolute; left: 0px; } -#experience .experience-container .tab-content .tab-pane .featuredLink a::after { +.experience .experience-container .tab-content .tab-pane .featuredLink a::after { display: block; width: auto; height: auto; @@ -370,17 +370,17 @@ header .navbar.animate { opacity: 1; } -#experience .experience-container .tab-content .tab-pane .featuredLink a.btn { +.experience .experience-container .tab-content .tab-pane .featuredLink a.btn { border: 1px solid var(--primary-color); border-radius: .75rem; transition: none; } -#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:focus { +.experience .experience-container .tab-content .tab-pane .featuredLink a.btn:focus { box-shadow: none; } -#experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover { +.experience .experience-container .tab-content .tab-pane .featuredLink a.btn:hover { color: var(--text-color) !important; opacity: 0.7; }