Browse Source

pg studio

windhamdavid 1 year ago
parent
commit
c9449ff66a
4 changed files with 16 additions and 10 deletions
  1. 6 2
      .gitignore
  2. 1 1
      gulpfile.js
  3. 4 4
      js/studio.js
  4. 5 3
      page-studio.php

+ 6 - 2
.gitignore

@@ -1,6 +1,10 @@
 .DS_store
+
 img/*
+inc/lib/call/auth.php
+
 npm-debug.log
 node_modules/
-.idea/ 
-inc/lib/call/auth.php
+
+.idea/
+.vscode/

+ 1 - 1
gulpfile.js

@@ -134,7 +134,7 @@ function run() {
     proxy: 'https://daw.ovid',
     port: '333'
   });
-  gulp.watch(['./**/*.php', './**/*.css']).on('change', gulp.series(reload));
+  gulp.watch(['./**/*.php', './**/*.js', './**/*.css']).on('change', gulp.series(reload));
   console.log("🔥 Run");
 }
 

+ 4 - 4
js/studio.js

@@ -35,8 +35,8 @@ jQuery(document).ready(function($) {
   });
 
 	$('#caro').carousel({
-		interval: 5000,
-		wrap: true,
+		interval: false,
+		keyboard: false
 	});
 	$(document).bind('keyup', function(e) {
     if (e.which === 39){
@@ -50,7 +50,7 @@ jQuery(document).ready(function($) {
 	  e.preventDefault()
 	  $(this).tab('show')
 	})
-  $("#studio-caro").backstretch("../wp-content/themes/daw/img/desk2.jpg");
+  $("#studio-caro").backstretch("../wp-content/themes/daw/img/studio.jpg");
 	$('#caro').on('slid.bs.carousel', function(event) {
     var consta = $('#caro li.active');
     //console.log('target: ' + consta.data('target') + ' value: ' + consta.data('value') + ' slide-to: ' + consta.data('slideTo'));
@@ -61,7 +61,7 @@ jQuery(document).ready(function($) {
 				$('#studio-caro').addClass('caro-grad5').removeClass('caro-grad caro-grad3 caro-grad2 caro-grad5');
 				$('.site-title a').addClass('light');
 				$('.carousel-indicators li').removeClass('darken-carousel-indicators');
-				$("#studio-caro").backstretch({url:'../wp-content/themes/daw/img/desk2.jpg', fade: 250 });
+				$("#studio-caro").backstretch({url:'../wp-content/themes/daw/img/studio.jpg', fade: 250 });
 			}
 			if (consta.data('slideTo') === 1) {
 				$('.studio-subnav a[href="#webdev"]').tab('show')

+ 5 - 3
page-studio.php

@@ -149,7 +149,9 @@
 					<div role="tabpanel" class="tab-pane wow fadeIn active" id="studio">
             <div class="row">
   						<div class="col-sm-9 mt-4">
+							<h2 class="fs-5">Note: It's been some time since I've updated this page, so I'm working on it... I started by replacing the photo above from a stock image I was using.  </h2>
   							<div class="entry-content">
+									
   								<h4 class="georgia"><em><span class="firstcharacter">A</span>lthough it seems that in the shower or sleeping is where my best work occurs,</em> the studio is the place where the shoe leather hits the pavement. I mostly work with web and application development, but I also do a good deal of graphic, print, and multimedia design. On my off hours, I like to turn off the computers to paint with camel hair, canvas, and minerals.</h4>
   							</div>
   						</div>
@@ -259,12 +261,12 @@
 	</div>
 
 	<div class="container">
-		<div class="row">
+		<div class="row mt-5">
 			<h4><em>Projects</em></h4>
 		</div>
 		<div class="row">
     <?php $i = 0; $query = new WP_Query(array('category_name' => 'studio', 'posts_per_page' => -1));  while ( $query->have_posts() ) : $query->the_post(); ?>
-			<div class="col-sm-4">
+			<div class="col-lg-3">
 				<div class="studio-thumbnail">
           <?php
             if (has_post_thumbnail()) {
@@ -282,7 +284,7 @@
 					</div>
 				</article>
 			</div>
-    <?php if((++$i % 3) == 0): ?>
+    <?php if((++$i % 4) == 0): ?>
     </div>
     <div class="row">
     <?php endif; ?>