Permalink
Browse files

cocktails, forgot to add this

  • Loading branch information...
1 parent 1c7caa7 commit 6a744aa62f75fe8bab971ba3b45afdf977e33ba5 @idiot idiot committed Feb 24, 2012
Binary file not shown.
View
@@ -150,6 +150,34 @@ h1 {
color: #2e2e2e;
}
+ h1 + a {
+ background: #f5f5f5;
+ color: #333;
+
+ font-weight: bold;
+ text-decoration: none;
+
+ display: block;
+ float: right;
+
+ padding: 8px 18px;
+ margin-top: -34px;
+
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+
+ -webkit-transition: background .25s, color .25s;
+ -moz-transition: background .25s, color .25s;
+ -ms-transition: background .25s, color .25s;
+ -o-transition: background .25s, color .25s;
+ transition: background .25s, color .25s;
+ }
+ h1 + a:hover {
+ background: #379ad3;
+ color: #fff;
+ }
+
a {
color: #379ad3;
@@ -538,6 +566,83 @@ div.primary {
+/* @group Theme Garden */
+
+ul.submissions {
+ padding-top: 30px;
+ width: 990px;
+}
+ ul.submissions li {
+ float: left;
+ width: 300px;
+
+ list-style: none;
+
+ margin-right: 30px;
+ margin-bottom: 40px;
+ }
+ ul.submissions figure {
+ position: relative;
+ }
+ ul.submissions figure a.img {
+ display: block;
+ overflow: hidden;
+
+ width: 100%;
+ height: 150px;
+
+ margin-bottom: 15px;
+
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+ }
+ ul.submissions figure:before {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ right: 0;
+ z-index: 10;
+
+ height: 148px;
+
+ -webkit-border-radius: 4px;
+ -moz-border-radius: 4px;
+ border-radius: 4px;
+
+ border: 1px solid #000;
+
+ -webkit-box-shadow: 0 1px 1px rgba(0,0,0,.3), inset 0 -1px 1px rgba(0,0,0,.5);
+ -moz-box-shadow: 0 1px 1px rgba(0,0,0,.3), inset 0 -1px 1px rgba(0,0,0,.5);
+ box-shadow: 0 1px 1px rgba(0,0,0,.3), inset 0 -1px 1px rgba(0,0,0,.5);
+
+ opacity: .1;
+
+ pointer-events: none;
+ }
+ ul.submissions figure img {
+ width: 100%;
+ height: auto;
+ }
+ ul.submissions h2 {
+ float: left;
+ width: 60%;
+
+ font-size: 18px;
+ }
+ ul.submissions em {
+ float: right;
+ width: 33%;
+
+ font-size: 13px;
+ text-align: right;
+ }
+
+/* @end */
+
+
+
/* @group Animations */
@-webkit-keyframes fade { 0% { opacity: 0; margin-top: -40px; } 100% { opacity: 1; } }
View
@@ -6,29 +6,9 @@
?>
-<style>
- .submissions {
- margin: 0 0 1em 0;
- padding: 0;
- list-style-type: none;
- }
- .submissions li {
- float: left;
- width: 200px;
- margin: 10px 20px;
- }
- .submissions li figure img {
- width: 100%;
- }
- .submissions li figure figcaption {
- padding: 10px;
- }
-</style>
-
<hgroup role="banner">
- <h1>Market Place</h1>
-
- <p><a href="#">Submit your theme</a></p>
+ <h1>Marketplace</h1>
+ <a href="/themes/submit">Submit your theme</a>
</hgroup>
<section>
@@ -37,12 +17,12 @@
<?php foreach($themes as $key => $theme): ?>
<li>
<figure>
- <a href="/themes/view/<?php echo $key; ?>">
+ <a class="img" href="/themes/view/<?php echo $key; ?>">
<img src="/submissions/<?php echo $key; ?>/preview.png">
</a>
<figcaption>
- <a href="/themes/view/<?php echo $key; ?>" class="theme"><?php echo $theme['name']; ?></a> by
- <a href="/themes/author/<?php echo url_title($theme['author']); ?>" class="author"><?php echo $theme['author']; ?></a>
+ <h2><a href="/themes/view/<?php echo $key; ?>" class="theme"><?php echo $theme['name']; ?></a></h2>
+ <em>by <a href="/themes/author/<?php echo url_title($theme['author']); ?>" class="author"><?php echo $theme['author']; ?></a></em>
</figcaption>
</figure>
</li>
View
@@ -6,22 +6,15 @@
$key = end($segments);
$theme = Themes::find($key);
-?>
+$url = PATH . 'submissions/' . $key . '/views.txt';
+$count = file_get_contents($url) + 1;
+
+file_put_contents($url, $count);
-<style>
- .submission figure {
- width: 400px;
- }
- .submission figure img {
- width: 100%;
- border: 1px solid #ddd;
- padding: 8px;
- margin-bottom: 1em;
- }
-</style>
+?>
<hgroup role="banner">
- <h1>Market Place</h1>
+ <h1><a href="/themes">Marketplace</a></h1>
</hgroup>
<section>
@@ -30,13 +23,26 @@
<ul>
<li><a href="/submissions/<?php echo $key; ?>/<?php echo $key; ?>.zip">Download</a></li>
</ul>
+
+ <dl>
+ <dt>License</dt>
+ <dd><?php echo isset($theme['license']) ? preg_replace('/\(.*\)/', '', $theme['license']) : '<a href="http://sam.zoy.org/wtfpl/COPYING">WTFPL</a>'; ?></dd>
+
+ <dt>Author</dt>
+ <dd><a href="/themes/author/<?php echo url_title($theme['author']); ?>"><?php echo $theme['author']; ?></a></dd>
+
+ <dt>Views</dt>
+ <dd><?php echo $count; ?></dd>
+ </dl>
</aside>
<div class="primary submission">
+ <figure class="prev">
+ <img src="/submissions/<?php echo $key; ?>/preview.png">
+ </figure>
+
<h2><?php echo $theme['name']; ?></h2>
- <p>by <a href="/themes/author/<?php echo url_title($theme['author']); ?>" class="author"><?php echo $theme['author']; ?></a></p>
- <figure><img src="/submissions/<?php echo $key; ?>/preview.png"></figure>
<p><?php echo $theme['description']; ?></p>
<?php if(isset($theme['license'])): ?>
<p>License: <?php echo $theme['license']; ?></p>
@@ -0,0 +1,5 @@
+Theme name: Corporated
+Description: Add an extra layer of shine to your themes. Give off the perfect professional feel.
+Author name: Visual Idiot
+Author site: http://visualidiot.com
+License: WTFPL (http://sam.zoy.org/wtfpl/COPYING)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+2
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+7
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,5 @@
+Theme name: Diamante
+Description: Mixing grunge with readability, this theme is perfect for the lightweight blogger with a cause.
+Author name: Visual Idiot
+Author site: http://visualidiot.com
+License: WTFPL (http://sam.zoy.org/wtfpl/COPYING)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+87
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,5 @@
+Theme name: Noteworthy
+Description: Picture-heavy, type-heavy, emotion-heavy: this theme is perfect for the budding designer/photographer.
+Author name: Visual Idiot
+Author site: http://visualidiot.com
+License: WTFPL (http://sam.zoy.org/wtfpl/COPYING)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+4

0 comments on commit 6a744aa

Please sign in to comment.