Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
our work, for students, etc
  • Loading branch information
tsm15002 committed Jul 12, 2016
1 parent 536701b commit cdb6a7f
Show file tree
Hide file tree
Showing 11 changed files with 95 additions and 11 deletions.
7 changes: 5 additions & 2 deletions dist/css/app.css
Expand Up @@ -1035,11 +1035,13 @@ html {
box-sizing: border-box;
width: 100%;
padding: 2em;
text-align: center;
display: -ms-flexbox;
display: flex;
-ms-flex-align: center;
align-items: center; }
.subPageAside__Banner h3 {
text-align: center;
width: 100%; }

.subPage--degrees h1,
.subPage--degrees h2,
Expand Down Expand Up @@ -2073,7 +2075,8 @@ html {
.aboutUsTiles {
max-width: 60em;
margin: 0 auto;
overflow-y: hidden; }
overflow-y: hidden;
padding: 0.5em 0; }

.aboutUsTile {
box-sizing: border-box;
Expand Down
2 changes: 1 addition & 1 deletion dist/css/app.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page-aboutUs.php → page-about-us.php
Expand Up @@ -7,11 +7,11 @@ $context = Timber::get_context();
$post = new TimberPost();

$query = array(
'post_type' => 'aboutUs',
'post_type' => 'aboutus',
'orderby' => 'date',
'order' => 'ASC'
);
query_posts($query);
$context['about-us'] = Timber::get_posts();
$context['aboutuss'] = Timber::get_posts();
$context['post'] = $post;
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context );
16 changes: 16 additions & 0 deletions page-for-students.php
@@ -0,0 +1,16 @@
<?php
$context = Timber::get_context();
$post = new TimberPost();

$query = array(
'post_type' => 'forstudents',
'orderby' => 'date',
'order' => 'ASC'
);
query_posts($query);
$context['forstudentss'] = Timber::get_posts();
$context['post'] = $post;
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context );



16 changes: 16 additions & 0 deletions page-our-work.php
@@ -0,0 +1,16 @@
<?php
$context = Timber::get_context();
$post = new TimberPost();

$query = array(
'post_type' => 'ourwork',
'orderby' => 'date',
'order' => 'ASC'
);
query_posts($query);
$context['ourworks'] = Timber::get_posts();
$context['post'] = $post;
Timber::render( array( 'page-' . $post->post_name . '.twig', 'page.twig' ), $context );



5 changes: 4 additions & 1 deletion src/scss/base/elements/subpageLayout.scss
Expand Up @@ -77,9 +77,12 @@
box-sizing:border-box;
width:100%;
padding:2em;
text-align:center;
display:flex;
align-items:center;
h3 {
text-align:center;
width:100%;
}
}

@each $val in $colorNames {
Expand Down
1 change: 1 addition & 0 deletions src/scss/base/pages/about-us.scss
Expand Up @@ -2,6 +2,7 @@
max-width:60em;
margin:0 auto;
overflow-y:hidden;
padding:0.5em 0;
}

.aboutUsTile {
Expand Down
6 changes: 3 additions & 3 deletions templates/page-aboutUs.twig → templates/page-about-us.twig
Expand Up @@ -5,14 +5,14 @@
<section class="aboutUsTiles">
<figure class="aboutUsTile aboutUsTile--large">
<a href="#" class="aboutUsTile__inner">
<img src="dist/img/about-us/student-experience.jpg" alt="Student Experience" />
<img src="{{ theme.link }}/dist/img/about-us/student-experience.jpg" alt="Student Experience" />
<div class="aboutUsTile__caption">
<img src="dist/img/about-us/play-button.png" alt="Play Video">
<img src="{{ theme.link }}/dist/img/about-us/play-button.png" alt="Play Video">
<p class="aboutUsTile__captionText">WATCH OUR STUDENTS SHARE THEIR EXPERIENCE</p>
</div>
</a>
</figure>
{% for tile in aboutUsTiles %}
{% for tile in aboutuss %}
<figure class="aboutUsTile aboutUsTile--small">
<a href="{{tile.permalink}}" class="aboutUsTile__inner">
<img src="{{tile.thumbnail.src}}" alt="{{tile.slug}}">
Expand Down
20 changes: 20 additions & 0 deletions templates/page-for-students.twig
@@ -0,0 +1,20 @@
{% extends "base.twig" %}

{% block content %}
<main class="u-container">
<section class="forStudentsTiles">
{% for tile in forstudentss %}
<figure class="forStudentsTile">
<a href="{{tile.permalink}}" class="forStudentsTile__inner">
<div class="forStudentsTile__image">
<img src="{{tile.thumbnail.url}}" alt="{{tile.title}}">
</div>
<figcaption class="forStudentsTile__caption">
<span>{{tile.title}}</span>
</figcaption>
</a>
</figure>
{% endfor %}
</section>
</main>
{% endblock %}
25 changes: 25 additions & 0 deletions templates/page-our-work.twig
@@ -0,0 +1,25 @@
{% extends "base.twig" %}

{% block content %}

<main class="u-container">
<section class="ourWorkTiles">
{% for tile in ourworks %}
<figure class="ourWorkTile">
<a href="{{tile.permalink}}" class="ourWorkTile__inner">
<div class="ourWorkTile__image">
<img src="{{ tile.thumbnail.src }}" alt="{{tile.title}}">
</div>
<figcaption class="ourWorkTile__caption">
<span>{{ tile.title }}</span>
<div class="ourWorkTile__caption ourWorkTile__caption--hover">
<span>{{ tile.title }}</span>
</div>
</figcaption>
</a>
</figure>
{% endfor %}
</section>
</main>

{% endblock %}
4 changes: 2 additions & 2 deletions templates/single.twig
Expand Up @@ -19,8 +19,8 @@
<figure class="subPageAside__Image">
<img src="{{post.get_field('wpcf-side-img')}}" alt="">
</figure>
<a href="#" class="subPageAside__Banner">
<h3>Learn more about the Undergraduate Application Process!</h3>
<a href="{{post.get_field('wpcf-aside-url')}}" class="subPageAside__Banner">
<h3>{{post.get_field('wpcf-aside-text')}}</h3>
</a>
</div>
</aside>
Expand Down

0 comments on commit cdb6a7f

Please sign in to comment.