Skip to content

Commit

Permalink
Add event pages nav + url rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
cabgfx committed Mar 4, 2014
1 parent 9ef0fc4 commit b790e54
Show file tree
Hide file tree
Showing 8 changed files with 58 additions and 7 deletions.
15 changes: 15 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
<IfModule mod_rewrite.c>
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /

# To externally redirect /dir/foo.php to /dir/foo
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L]

# To internally forward /dir/foo to /dir/foo.php
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)/?$ $1.php [L]
</IfModule>

# Apache Configuration File
# https://github.com/h5bp/server-configs-apache

Expand Down
9 changes: 7 additions & 2 deletions 1.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,18 @@

<body class="event-1">
<header role="banner" class="masthead">
<nav>
<a href="/">Forge 1</a>
<a href="/1">Forge 2</a>
</nav>

<div class="container" id="top">
<h1 class="logo"><a href="/">Forge</a></h1>

<p class="lead">
The very first forge event was held on October 25th, 2013.
More than 200 people got together and listened to 4 amazing talks, enjoyed food &amp; drink and a surplus of inspiration.
Relive the moment below.
More than 200 people got together and listened to 4 amazing talks, enjoyed food, drinks and a surplus of inspiration.
Rewind below.
</p>
</div>
</header>
Expand Down
Empty file added assets/css/_speakers.css
Empty file.
2 changes: 1 addition & 1 deletion assets/css/forge.css

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions assets/scss/_chrome.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,28 @@ body {font-family: $base-font; background: $sand url($img-path + 'header-bg.gif'
}
}

nav {
& {margin: 30px auto 0; text-align: center;}
a {
display: inline-block;
padding: 7px 20px;
color: #fff;
text-decoration: none;
font: 300 16px $base-font;
border: 2px solid;
opacity: .5;
border-radius: 20px;
letter-spacing: .05em;

@include transition(opacity .15s);

&:hover, &:focus {opacity: 1;}
&:active {position: relative; top: 1px; left: 1px;}

.frontpage &[href="/"], .event-1 &[href="/1"] {opacity: 1;}
}
}

.content {
@extend .clearfix;

Expand Down
10 changes: 7 additions & 3 deletions assets/scss/_event-1.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,14 @@

.masthead .lead {text-shadow: none;}
.masthead .logo {
$width: 1893px;
$height: 307px;
$width: 605px;
$height: 226px;

> a {@include retina('logo-full-event-1', $width, $height);}
& {width: $width; height: $height;}
> a {
@include retina('logo-full-event-1', $width, $height);
width: $width; height: $height;
}

@media (max-width: $screen-small-max) {
$width: 40px;
Expand Down
2 changes: 1 addition & 1 deletion assets/scss/_masthead.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}

@media (min-width: $screen-medium) {
padding-top: 131px;
padding-top: 101px;
padding-bottom: 244px;
}
}
Expand Down
5 changes: 5 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@

<body class="frontpage">
<header role="banner" class="masthead">
<nav>
<a href="/">Forge 1</a>
<a href="/1">Forge 2</a>
</nav>

<div class="container" id="top">
<h1 class="logo"><a href="/">Forge</a></h1>

Expand Down

0 comments on commit b790e54

Please sign in to comment.