Welcome to mirror list, hosted at ThFree Co, Russian Federation.

home.html « partials « layouts - github.com/gangjun06/SimpleIntro.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ecb66b0364d5c256a09f35edcef9e16e23f5106f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<div>
  <div id="mainBG" style="background-image: url('{{ $.Site.Params.mainbg }}');">
    <div class="wave wave1"></div>
    <div class="wave wave2"></div>
    <div class="wave wave3"></div>
    <div class="wave wave4"></div>
    <div class="centerAll">
      <div class="title text-6xl font-bold text-center">
        {{ $.Site.Params.maintitle }}
      </div>
      <div class="text text-xl text-center">{{ $.Site.Params.maintext }}</div>
    </div>
  </div>
  {{ $data := .Site.Data.home }}
  <main class="container mx-auto mt-8 px-4 xl:px-0">
    <section id="about" class="md:flex justify-around">
      <div class="my-auto md:mr-4">
        {{ partial "home_title" (dict "title" "About Me") }}
        <div class="flex mt-3 gap-3 text-xl">
          {{ range $data.about.link }}
          <i class="{{ .icon }}"></i>{{end}}
        </div>
      </div>
      <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>
      </div>
    </section>
    <section id="skills" class="mt-12">
      <div class="md:flex justify-center">
        {{ partial "home_title" (dict "title" "Skills") }}
      </div>
      <div
        class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"
      >
        {{ 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>
    <section id="projects" class="mt-12">
      <div class="md:flex justify-center">
        {{ partial "home_title" (dict "title" "Projects") }}
      </div>
      <div
        class="mt-8 grid grid-flow-row grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"
      >
        {{ 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>
    </section>
  </main>
</div>