hugo-simpleIntro/layouts/partials/home.html

99 lines
3.2 KiB
HTML
Raw Normal View History

2020-08-12 17:15:08 -05:00
<div>
<div id="mainBG" style="background-image: url('{{ $.Site.Params.mainbg }}');">
2020-08-13 08:25:54 -05:00
<div
class="wave wave1"
2020-08-13 08:30:59 -05:00
style="background-image: url('{{ .Site.BaseURL }}/img/wave.png');"
2020-08-13 08:25:54 -05:00
></div>
<div
class="wave wave2"
2020-08-13 08:30:59 -05:00
style="background-image: url('{{ .Site.BaseURL }}/img/wave.png');"
2020-08-13 08:25:54 -05:00
></div>
<div
class="wave wave3"
2020-08-13 08:30:59 -05:00
style="background-image: url('{{ .Site.BaseURL }}/img/wave.png');"
2020-08-13 08:25:54 -05:00
></div>
<div
class="wave wave4"
2020-08-13 08:30:59 -05:00
style="background-image: url('{{ .Site.BaseURL }}/img/wave.png');"
2020-08-13 08:25:54 -05:00
></div>
2020-08-12 17:15:08 -05:00
<div class="centerAll">
2020-08-12 18:27:16 -05:00
<div class="title text-6xl font-bold text-center">
{{ $.Site.Params.maintitle }}
</div>
<div class="text text-xl text-center">{{ $.Site.Params.maintext }}</div>
2020-08-12 17:15:08 -05:00
</div>
</div>
2020-08-12 18:27:16 -05:00
{{ $data := .Site.Data.home }}
2020-08-13 04:41:37 -05:00
<main class="container mx-auto mt-8 px-4 xl:px-0">
<section id="about" class="md:flex justify-around">
2020-08-13 05:49:55 -05:00
<div class="my-auto md:mr-4">
2020-08-13 04:41:37 -05:00
{{ partial "home_title" (dict "title" "About Me") }}
2020-08-12 18:27:16 -05:00
<div class="flex mt-3 gap-3 text-xl">
2020-08-13 04:41:37 -05:00
{{ range $data.about.link }}
2020-08-12 18:27:16 -05:00
<i class="{{ .icon }}"></i>{{end}}
</div>
</div>
2020-08-13 05:49:55 -05:00
<div class="mt-4 md:mt-0 md:ml-4">
<div class="text-2xl font-bold">{{$data.about.title}}</div>
<div class="text-lg mt-3">
<div>{{ replace $data.about.text "\n" "<br />" | safeHTML }}</div>
</div>
2020-08-12 18:27:16 -05:00
</div>
</section>
2020-08-13 05:49:55 -05:00
<section id="skills" class="mt-12">
2020-08-13 04:41:37 -05:00
<div class="md:flex justify-center">
2020-08-12 18:27:16 -05:00
{{ partial "home_title" (dict "title" "Skills") }}
</div>
2020-08-13 04:41:37 -05:00
<div
2020-08-13 05:49:55 -05:00
class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"
2020-08-13 04:41:37 -05:00
>
{{ range $data.skills.list }}
<div class="w-full rounded overflow-hidden shadow-lg">
<div class="">
<div class="font-bold text-xl mb-2 py-2 px-6 bg-gray-500">
<div class="flex">
<img
src="{{ .icon }}"
width="50px"
class="bg-gray-300 py-1 px-1 rounded-full"
/>
<div class="my-auto ml-2">
{{ .name }}
</div>
</div>
</div>
<p class="text-gray-700 text-base px-6 pb-4">
{{ replace .text "\n" "<br />" | safeHTML }}
</p>
</div>
</div>
{{end}}
</div>
</section>
2020-08-13 05:49:55 -05:00
<section id="projects" class="mt-12">
2020-08-13 04:41:37 -05:00
<div class="md:flex justify-center">
{{ partial "home_title" (dict "title" "Projects") }}
</div>
<div
2020-08-13 05:49:55 -05:00
class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"
2020-08-13 04:41:37 -05:00
>
{{ range $data.project.list }}
<div class="w-full rounded overflow-hidden shadow-lg">
<img
class="w-full h-48"
src="{{ .image }}"
alt="Sunset in the mountains"
/>
<div class="px-6 py-4">
<div class="font-bold text-xl mb-2">{{ .title }}</div>
<p class="text-gray-700 text-base">
{{ .text }}
</p>
</div>
</div>
{{end}}
</div>
2020-08-12 18:27:16 -05:00
</section>
</main>
2020-08-12 17:15:08 -05:00
</div>