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

index.html « layouts - github.com/vickylaixy/hugo-theme-introduction.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d1721f1ca20520f96081f5c948cdadcb05876a2 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!--
    Hey! Thanks for looking at my code! You win a cookie. :) The nice kind with chocolate chips, not the sneaky spying kind.

    This page was originally created for the Personal Portfolio Webpage challenge on FreeCodeCamp's Front End Development Certification course. It's totally responsive, and the first web page I ever coded from scratch.

    Enjoy, and I hope you find what you're looking for! If you have questions or want to get in touch, please do: hello@vickylai.io.
-->

{{ partial "header.html" . }}

<div class="section" id="top"> <!-- Where all the awesome begins -->

<div class="hero is-{{ .Site.Params.introheight }}">
<!-- Possible hero-head not used -->
    <!-- Super sweet Hero body title -->
    <div class="hero-body">
        <div class="container has-text-centered">
            <!-- Title and tagline -->
            <h1 class="bold-title {{ if .Site.Params.fadein }}fade-in one{{ end }}">
                Hi, I'm {{ .Site.Params.firstname }}.
            </h1>
            <h3 class="subtitle is-3 {{ if.Site.Params.fadein }} fade-in two{{ end }}">
                {{ .Site.Params.tagline }}
            </h3>
            <!-- End title and tagline -->
            <!-- Some social icons -->
            <div class="{{ if .Site.Params.fadein }}fade-in three{{ end }}">
                {{ partial "social.html" . }}
            </div>
            <!-- End top social icons -->
        </div>
    </div> <!-- Hero body title end -->
    <!-- Hero foot has nav bar -->
    <div class="hero-foot {{ if .Site.Params.fadein }}fade-in three{{ end }}">
    <hr>
    <nav class="nav-center">
        <a class="nav-item" href="#about">About</a>
        {{ if .Site.Params.showprojects }}
        <a class="nav-item" href="#projects">Projects</a>
        {{ end }}
        {{ if .Site.Params.showblog }}
        <a class="nav-item" href="#blog">Blog</a>
        {{ end }}
        <a class="nav-item" href="#contact">Contact</a>
    </nav>
    <hr>
    </div><!-- Done with nav bar -->
</div><!-- Done with Hero -->
</div><!-- End of top section -->

<!-- Everything below fades in three! -->
<div class="section no-padding {{ if .Site.Params.fadein }}fade-in three{{ end }}">

<!-- Tell them all about it! -->
<div class="section" id="about">
    <div class="container">
    <h2 class="title is-2 has-text-centered">About</h2>

        <div class="columns"><!-- Avatar and about.md side by side except mobile -->
            {{ if .Site.Params.avatar }}
            <div class="column is-one-third has-text-centered">
              <img class="img-responsive avatar" src="/{{ .Site.Params.avatar }}" alt="My profile picture.">
            </div>
            {{ end }}
            <div class="column markdown">
                {{ range .Data.Pages }}
                    {{if eq .Title "about" }}
                            {{.Content}}
                        {{end}}
                    {{ end }}
            </div>
        </div>
    </div><!-- End About container-->

<div class="container has-text-centered top-pad"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
</div><!-- End About section -->

<div class="container"><hr></div>


<!-- Now for some cool projects -->
    {{ if .Site.Params.showprojects }}
    <div class="section" id="projects">
        {{ partial "projects.html" . }}
    </div><!-- End Projects section -->

    <div class="container"><hr></div>
    {{ end }}


<!-- Let's show some blog posts -->
    {{ if .Site.Params.showblog }}
    <div class="section" id="blog">
        {{ partial "blogsection.html" . }}
    </div><!-- End Blog section -->

    <div class="container"><hr></div>
    {{ end }}

<!-- Let's chat, shall we? -->
<div class="section" id="contact">
    <div class="container has-text-centered">
    <h2 class="title is-2">Contact</h2>
        <div class="markdown">
            {{ range .Data.Pages }}
                {{if eq .Title "contact" }}
                        {{.Content}}
                    {{end}}
                {{ end }}
        </div>

        {{ if .Site.Params.localtime }}
        <p>My current local time is <span id="time"></span>.</p>
        <script type="text/javascript" src="/js/moment.js"></script>
        <script type="text/javascript" src="/js/moment-timezone.js"></script>
        <script type="text/javascript" src="/js/moment-timezone-with-data-2012-2022.js"></script>

        <script>
        $(document).ready(function() {
        var time = moment().tz("{{ .Site.Params.timezone }}").format("h:mm A");
        $('#time').html(time);
        })
        </script>
        {{ end }}

        {{ if .Site.Params.email }}
        <h3 class="subtitle is-3 has-text-centered top-pad"><a href="mailto:{{ .Site.Params.email }}">{{ .Site.Params.email }}</a></h3>
        {{ end }}

        {{ partial "social.html" . }}
    </div><!-- End Contact container -->

	<div class="container has-text-centered top-pad"><a href="#top"><i class="fa fa-arrow-up"></i></a></div>
</div><!-- End Contact section -->

<div class="container"><hr></div>


<!-- Nice clean finish -->
{{ partial "footer.html" . }}
<!-- Footer done! -->
</div><!-- End of fade in three section -->
<!-- Where all the awesome ends. Aww. -->

<!-- Bitty scrolling links script -->
<script>
$('a[href^="#"]').click(function(e) {
    e.preventDefault();
    var target = this.hash;
    $('html, body').animate({
    scrollTop: $(target).offset().top
    }, 500);
    return false;
})
</script>

</body>