Jump to content

Recommended Posts

Posted

This was the first full site I built with Processwire. We launched it several months ago, but I immediately got swept up in another project, and forgot to post it. In case the name didn't clue you in, it's a site for my bother's company.

http://www.renobuilding.com

  • Like 13
Posted

Love it. Love the cleverness of the headline too - I was immediately wondering why the full stops were there, but it works well as a sentence and separate statements too.

Good stuff!

  • Like 2
Posted

Hi renobird,

wow looks great! It has some clear, cheerful, structured ... cool i love that.

;) I´m a little bit interested in your configuration?

In the area "our Exprerience" you have some subareas for the separate groups (for each group one page).

Are the different projects (entries) on this pages in PW subpages from the groups or how did you solve this?

Second question, the last and next (at the left and right) fly in of the Experiences are really cool - could you tell me with which technique you realise it??

Thanks for sharing it!

  • Like 1
Posted

In the area "our Exprerience" you have some subareas for the separate groups (for each group one page).

Are the different projects (entries) on this pages in PW subpages from the groups or how did you solve this?

The /our-experience/ page shows the first project from each child page.

foreach($pages->get("/our-experience/")->children as $project) {
$image = $project->child->images->first()->size(286,190);;
echo "<a href='{$project->url}'><div class='thumb'>";
if ($image) {
echo "<img src='{$image->url}' width='286' height='190' alt='{$image->get('description|name')}'/>";
}
echo "<h5>{$project->title}</h5>";
echo "</div></a>";
}

Second question, the last and next (at the left and right) fly in of the Experiences are really cool - could you tell me with which technique you realise it??

Here's how I grabbed the prev/next images and titles in Processwire:

if ($page->prev->id) {
$prev = $page->prev()->child()->images->first()->size(250,175);
echo "<a href='{$page->prev->url}' class='sub-nav-left'><div class='arrow'>←</div><img src='{$prev->url}' /><br />{$page->prev->title}</a>";
}

if ($page->next->id) {
$next = $page->next()->child()->images->first()->size(250,175);
echo "<a href='{$page->next->url}' class='sub-nav-right'><div class='arrow'>→</div><img src='{$next->url}' /><br />{$page->next->title}</a>";
}

A little bit of jQuery handles the animation:

$('.sub-nav-right').hover(function() {
$(this).stop().animate({
right: '0'
}, 300)
}, function() {
$(this).stop().animate({
right: '-280'
}, 400)
});

$('.sub-nav-left').hover(function() {
$(this).stop().animate({
left: '0'
}, 300)
}, function() {
$(this).stop().animate({
left: '-280'
}, 400)
});

:)

Edit: GAH! The code editor is a nightmare.

Hopefully you get the idea.

  • Like 2
Posted

This is probably the most stylish construction company website I've ever seen -- not that I'd seen that many of them but I hope you get my point anyway. Awesome work! :)

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...