Skip to content

Commit

Permalink
Merge pull request #377 from TomasVotruba/mission
Browse files Browse the repository at this point in the history
Mission
  • Loading branch information
TomasVotruba committed Jun 27, 2018
2 parents 57ea367 + ec2b74c commit 3c2cc23
Show file tree
Hide file tree
Showing 11 changed files with 227 additions and 403 deletions.
1 change: 1 addition & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ gulp.task('default', function () {

// Run local server, open localhost:8000 in your browser
exec('php -S localhost:8000 -t output');
console.log('Local PHP server started at "http://localhost:8000", open browser to see it.');

// For the second arg see: https://github.com/floatdrop/gulp-watch/issues/242#issuecomment-230209702
return watch(['source/**/*', '!**/*___jb_tmp___'], { ignoreInitial: false })
Expand Down
6 changes: 5 additions & 1 deletion source/_data/little-books.yml → source/_data/clusters.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
little_books:
clusters:
-
title: "Master PHP CLI Apps with Symfony"
year_released: 2018
Expand All @@ -11,3 +11,7 @@ parameters:
year_released: 2017
post_ids: [12, 13, 25, 54, 116]
# description @todo

# -
# title: 'Hacking Symfony Dependency Injection'
# year_released: 2018
77 changes: 0 additions & 77 deletions source/_data/projects.yml

This file was deleted.

22 changes: 22 additions & 0 deletions source/_data/references.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
parameters:
helped_companies:
'lekarna.png': 'https://www.lekarna.cz/'
'mall.png': 'https://www.mall.cz/'
'shopsys.png': 'https://www.shopsys.com/'
'igloonet.png': 'https://igloonet.cz'
'lidskasila.png': 'https://lidskasila.cz/'
'naucmese.png': 'https://www.naucmese.cz/'


references:
-
text: "Tomas was able to prepare us lecture fulfilling our specific needs even beyond the area of his portfolio. Thoughts and techniques were clearly provided and easy to comprehend for the whole team."
author: "Roman Veselý, Internal Systems Developer"
company: "Ness KDC"
company_url: "https://www.nesskdc.sk/en/"

-
text: "Tomas doesn't speak about theory you can read on the Internet. He passes you his practical experiences. I recommend him to everyone who's looking for a specialist."
author: "Radek Strnad, PHP Teamleader"
company: "Erudio.cz"
company_url: "http://erudio.cz"
21 changes: 9 additions & 12 deletions source/_snippets/menu.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,12 @@
Clusters
</a>
</li>
<li class="{% if id is defined and id == 'skill' %}active{% endif %}">
<a href="/mentoring-and-lectures/">Mentoring & Lectures</a>
<li class="{% if id is defined and id == 'mission' %}active{% endif %}">
<a href="/mission/">My Mission</a>
</li>
<li class="{% if id is defined and id == 'talks' %}active{% endif %}">
<a href="/talks/">Talks</a>
</li>
<li class="{% if id is defined and id == 'about' %}active{% endif %}">
<a href="/about/">About</a>
</li>
<li class="{% if id is defined and id == 'contact' %}active{% endif %}">
<a href="/contact/">Contact</a>
</li>
Expand All @@ -40,17 +37,17 @@
<br>
PHP Blog
</a>
<a href="/mentoring-and-lectures/" class="col-3 col-sm-3 {% if id is defined and id == skill %}active{% endif %}">
<em class="fa fa-graduation-cap"></em>
<a href="/clusters/" class="col-3 col-sm-3 {% if id is defined and id == 'clusters' %}active{% endif %}">
<em class="fa fa-share-alt"></em>
<br>
Lectures
Clusters
</a>
<a href="/about/" class="col-3 col-sm-3 {% if id is defined and id == about %}active{% endif %}">
<em class="fa fa-id-badge"></em>
<a href="/mission/" class="col-3 col-sm-3 {% if id is defined and id == 'mission' %}active{% endif %}">
<em class="fa fa-heartbeat"></em>
<br>
About
Mission
</a>
<a href="/contact/" class="col-3 col-sm-3 {% if id is defined and id == contact %}active{% endif %}">
<a href="/contact/" class="col-3 col-sm-3 {% if id is defined and id == 'contact' %}active{% endif %}">
<em class="fa fa-phone"></em>
<br>
Contact
Expand Down
111 changes: 2 additions & 109 deletions source/about.twig
Original file line number Diff line number Diff line change
Expand Up @@ -5,113 +5,6 @@ id: about
---

{% block content %}
<div class="container">
<h1>{{ title }}</h1>

<blockquote class="blockquote text-center mt-lg-5 pb-lg-4" id="about-quote">
<p>
"What if we train them and they leave?"
<br>
"What if we don't and they stay."
</p>
<footer class="blockquote-footer">
Tim Williams
</footer>
</blockquote>

<hr>

<div id="about-items" class="mb-5 mt-5">
<p>I love to do these 3 things:</p>

<ul>
<li>
teaching all I know about <a href="/mentoring-and-lectures/"><strong>open source, effective coding, Symfony & Nette</strong></a>
</li>
<li>
<strong>consultancy of PHP projects</strong> along with personal mentoring
</li>
<li>
guiding <strong>private projects to open-source</strong>, recently <a href="https://shopsys.com/">Shopsys</a>
</li>
</ul>
</div>

<hr>

<h2 class="text-center">Sharing is Knowing</h2>

<div class="card-deck">
<div class="card">
<img class=card-img-top" src="/assets/images/talking-square.jpg">
<div class="card-body">
<p>
I think the main value in knowledge is <strong>to share it in way most people can understand</strong>.
</p>
<p>
I do so <a href="/blog"><strong>on my blog</a></strong>, <a href="https://stackoverflow.com/users/1348344/tom%C3%A1%C5%A1-votruba">StackOverflow</a> and by <a href="/talks">giving talks</a> on PHP Meetups and Conferences.
</p>
</div>
</div>
<div class="card">
<a href="https://pehapkari.cz/">
<img class="card-img-top" src="/assets/images/pehapkari.jpg" alt="Czech & Slovak PHP Community logo">
</a>
<div class="card-body border border-bottom-0 border-left-0 border-right-0">
<p>
And I'm not stopping at my ideas. It's much more <strong>amazing what group of friendly people can do when they connect and share they ideas</strong> on regular basis.
</p>
<p>
That's what we grow in <a href="https://pehapkari.cz">Pehapkari</a> - Czech & Slovak PHP Community. Come to <a href="https://facebook.com/pehapkari/events">meetups we organize</a> and you'll see.
</p>
</div>
</div>
</div>
<hr>
<h2 class="text-center">Github is my Facebook</h2>
<br>
<p>When I want to have fun and chat online, I go to "waste" my time on Github. Thanks to this procrastination many projects were born.</p>
<div class="mt-5 mb-5">
<a href="https://github.com/tomasvotruba/">
<img src="/assets/images/github-passion.png" alt="My Github contributions in a graph">
</a>
</div>
{% for project in projects %}
<div class="card card-normal">
<div class="card-body">
<h3 class="card-title">
<em class="fa fa-github"></em>
&nbsp;
{{ project.name }}
</h3>
<ul>
<li>
<a href="{{ project.url }}">{{ project.url }}</a>
</li>
{% for item in project['description'] %}
<li>{{ item|raw }}</li>
{% endfor %}
</ul>
{% if project.intro_post_id is defined %}
{% set activePost = posts[project.intro_post_id] ?? null %}
{% if activePost %}
<a href="/{{ activePost.getRelativeUrl() }}" class="card-link btn btn-info btn-sm mt-2">
<em class="fa fa-fw fa-book"></em>
&nbsp;
Read Intro Post: "{{ activePost.title }}"
</a>
{% endif %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
<!-- redirect to new page -->
<meta http-equiv="refresh" content="0; url=/mission/" />
{% endblock %}
14 changes: 7 additions & 7 deletions source/clusters.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,30 +49,30 @@ inspiration:

<hr>

{% for little_book in little_books %}
<h3 id="{{ little_book.title | webalize }}" class="mb-4">
{{ little_book.title }}
{% for cluster in clusters %}
<h3 id="{{ cluster.title | webalize }}" class="mb-4">
{{ cluster.title }}
</h3>

{% set totalReadingTime = 0 %}
{% for postId in little_book.post_ids %}
{% for postId in cluster.post_ids %}
{% set totalReadingTime = totalReadingTime + posts[postId].getReadingTimeInMinutes %}
{% endfor %}

<ul class="list-inline post-metadata">
<li class="list-inline-item mr-3">
<em class="fa fa-calendar fa-fw"></em> {{ little_book.year_released }}
<em class="fa fa-calendar fa-fw"></em> {{ cluster.year_released }}
</li>
<li class="list-inline-item mr-3">
<em class="fa fa-clock-o fa-fw"></em> {{ totalReadingTime }} mins
</li>
<li class="list-inline-item mr-3">
<a href="#{{ little_book.title | webalize }}">#Anchor</a>
<a href="#{{ cluster.title | webalize }}">#Anchor</a>
</li>
</ul>

<ul class="mt-4 checklist">
{% for postId in little_book.post_ids %}
{% for postId in cluster.post_ids %}
{% set activePost = posts[postId] %}
<li class="mb-3 checklist__item">
<input class="checklist__input" type="checkbox" id="item_{{ activePost.id }}" value="{{ activePost.id }}">
Expand Down
4 changes: 2 additions & 2 deletions source/index.twig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ id: blog

{% block content %}
<div class="container-fluid" id="blog">
<div class="row pt-3 pb-3" id="welcome">
<div class="row pt-3 pb-3 hidden-sm-down" id="welcome">
<div class="col-md-3">
<img src="https://avatars2.githubusercontent.com/u/924196?s=460&v=4" class="rounded img-thumbnail">
</div>
Expand All @@ -15,7 +15,7 @@ id: blog
<h1>Tomas Votruba</h1>
<p>
I write for programmers who want to become <br>
<strong>more effective, creative and innovative</strong><br>
<strong>more effective, creative and <a href="/mission/">happier</a></strong><br>
while using full power of open-source.
</p>
</div>
Expand Down

0 comments on commit 3c2cc23

Please sign in to comment.