Added a neat menu and a profile picture

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2012-09-14 14:43:59 +02:00
parent cd096c1d20
commit fbee2e4c8d
6 changed files with 65 additions and 3 deletions

View File

@ -11,11 +11,13 @@ use GergelyPolonkai\FrontBundle\Entity\Post;
* Description of BlogController
*
* @author polonkai.gergely
*
* @Route("/blog")
*/
class BlogController extends Controller
{
/**
* @Route("/blog/{year}/{month}/{day}/{slug}.html", name="GergelyPolonkaiFront_blogViewPost")
* @Route("/{year}/{month}/{day}/{slug}.html", name="GergelyPolonkaiFront_blogViewPost")
* @Template
*/
public function viewPostAction($year, $month, $day, $slug)

View File

@ -29,6 +29,15 @@ class DefaultController extends Controller
);
}
/**
* @Route("/about-me.html", name="GergelyPolonkaiFrontBundle_about")
* @Template
*/
public function aboutAction()
{
return array();
}
/**
* @Route("/disclaimer.html", name="GergelyPolonkaiFrontBundle_disclaimer")
* @Template

View File

@ -21,11 +21,27 @@ body {
color: #ffffff;
position: absolute;
width: 960px;
height: 190px;
}
#header #picture {
background-color: white;
position: relative;
width: 170px;
height: 170px;
display: inline;
float: left;
top: 40px;
left: 20px;
}
#header #picture img {
margin: 10px;
}
#header h1 {
text-align: right;
margin: 0 10px 0 0;
margin: 40px 10px 0 0;
font-size: 41px;
font-weight: bold;
padding-top: 45px;
@ -54,12 +70,28 @@ body {
display: block;
}
#menu {
}
#menu ul {
margin: 0;
padding: 0;
list-style-type: none;
text-align: right;
}
#menu ul li {
display: inline;
margin-left: 1em;
}
#content {
clear: both;
padding: 8px;
}
#content-padding {
height: 120px;
height: 200px;
}
#content h3 {

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -0,0 +1,10 @@
{% extends 'GergelyPolonkaiFrontBundle:Default:front_base.html.twig' %}
{% block title %} - About Me{% endblock %}
{% block content %}
<p>I'm Gergely Polonkai, systems engineer of a financial advisor company, and a freelancer developer.</p>
<p>I'm learning about different IT subjects since the late '90s. These include web development, application building, systems engineering, systems security and many others. I also dug my nose into free software, dealing with different types of Linux and its applications, while also writing and contributing to some open source projects.</p>
<p>On this site I will write blog posts about different stuff I face during work (oh my, yet another IT solutions blog), hoping they can help you with your own, or just to get along with your brand new netbook that shipped with Linux.</p>
<p>Feel free to send me any suggestions on what should I post. I will try my best to provide some help or directions.</p>
{% endblock content %}

View File

@ -12,6 +12,9 @@
<body>
<div id="content-wrapper">
<div id="header" style="background-image: url('{{ asset('bundles/gergelypolonkaifront/images/' ~ random_header) }}');">
<div id="picture">
<img src="{{ asset('bundles/gergelypolonkaifront/images/profile.png') }}" alt="" />
</div>
<h1><a href="{{ path('GergelyPolonkaiFrontBundle_homepage') }}">Gergely Polonkai</a></h1>
<h2>developer, systems engineer and administrator</h2>
<div id="contact-list">
@ -29,6 +32,12 @@
</div>
<div id="content">
<div id="content-padding"></div>
<div id="menu">
<ul>
<li><a href="{{ path('GergelyPolonkaiFrontBundle_about') }}">About me</a></li>
<li><a href="{{ path('GergelyPolonkaiFrontBundle_homepage') }}">Blog</a></li>
</ul>
</div>
{% block content %}{% endblock content %}
</div>
</div>