Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site redesign #21

Open
wants to merge 146 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
146 commits
Select commit Hold shift + click to select a range
9f2ee5a
Pin dependencies to a working version
hacknug Feb 14, 2023
aa029fd
Comment out sass-related tasks
hacknug Feb 14, 2023
e17af72
Upgrade `tailwindcss` to its latest version
hacknug Feb 16, 2023
7f1ee4a
Add new styles for common components
hacknug Feb 16, 2023
092bb9e
Remove old sass styles
hacknug Feb 16, 2023
6e9e522
Add new `postcss` dev dependencies
hacknug Feb 17, 2023
f90d105
Add `Aileron` to default font stack
hacknug Feb 17, 2023
b888a2d
Add content for front page template
hacknug Feb 20, 2023
3f7d65f
Use `composer` to track PHP dependencies
hacknug Feb 20, 2023
eb651e7
Import ACF config from prod env
hacknug Feb 20, 2023
a4359a5
Update contact page design
hacknug Feb 20, 2023
58c2092
Improve button styles
hacknug Mar 1, 2023
a6cb8a2
Style home and archive pages
hacknug Mar 7, 2023
71fb078
Add single post styles
hacknug Mar 14, 2023
133c063
Add single event styles
hacknug Mar 15, 2023
e9834d0
Allow editors to add images to footer contact fields
hacknug Mar 15, 2023
9c7b241
Make header navigation scrollable on small screens
hacknug Mar 15, 2023
b9fb981
Cleanup talent pages
hacknug Mar 15, 2023
6ad10b7
Allow opting-out of rounded corners
hacknug Mar 15, 2023
1c70dd7
Remove unnecessary fields from ACF config
hacknug Mar 16, 2023
d9a4bfd
Show latest posts sections only on front page
hacknug Mar 16, 2023
1f49731
Use flexible content for front page sections
hacknug Mar 17, 2023
c258e0c
Cleanup default page section styles
hacknug Mar 17, 2023
1977c9e
Add missing logo to site header
hacknug Mar 17, 2023
685655d
Add responsive styles to most components and pages
hacknug Mar 17, 2023
1de1848
Add responsive styles to Contact page
hacknug Mar 21, 2023
0b774b9
Fix slider images not being aligned with content
hacknug Mar 21, 2023
41a0e4e
Fix newsletter section responsive styles
hacknug Mar 21, 2023
c9f1c85
Add responsive styles to site header
hacknug Mar 21, 2023
8f5d2c8
Move map to the end of the single Event page
hacknug Mar 21, 2023
19dbc69
Fix meta row being too narrow on small screens
hacknug Mar 21, 2023
3851887
Cleanup single post responsive styles
hacknug Mar 22, 2023
50c64b1
Fix hero component height growing too tall on big screens
hacknug Mar 22, 2023
c80807e
Fix featured posts sliders growing too tall on big screens
hacknug Mar 22, 2023
33d3c7e
Fix using big images for button icons
hacknug Mar 22, 2023
d67b3eb
Version bump
hacknug Mar 22, 2023
396f7b4
Update theme metadata
hacknug Mar 22, 2023
11e48fa
Fix events card styles not matching spec on front page
hacknug Mar 23, 2023
33354c9
Fix card title being too big and bold
hacknug Mar 23, 2023
a1cc3a9
Fix modal missing responsive styles
hacknug Mar 23, 2023
8aa825a
Add custom icons to slider navigation arrows
hacknug Mar 23, 2023
88d7eca
Add missing offset to visual intro component
hacknug Mar 23, 2023
dcde383
Add missing styles to About page sections
hacknug Mar 27, 2023
93220c4
Remove old unused files
hacknug Mar 27, 2023
3d16972
Fix flash of main navigation on small screens
hacknug Mar 27, 2023
e3c77d8
Remove unused font files
hacknug Mar 27, 2023
f3d5442
Update Aileron to its latest version + Use .woff2
hacknug Mar 27, 2023
ccfb646
Remove unused image files
hacknug Mar 27, 2023
f2b68bd
Fix component not using vector arrow
hacknug Mar 27, 2023
02566b7
Fix corner size being too small on big screens
hacknug Mar 27, 2023
2e8d6e0
Version bump
hacknug Mar 27, 2023
5448394
Fix issues displaying faucets in Events page
hacknug Mar 29, 2023
032def2
Add missing pagination to archive sliders
hacknug Mar 29, 2023
df36e82
Fix newsletter styles
hacknug Mar 29, 2023
275b847
Add different swiper configs for each slider type
hacknug Mar 29, 2023
d4c8a20
Add missing links to posts sections in front page
hacknug Mar 29, 2023
1caaacb
Fix wrong link for latest events section
hacknug Mar 29, 2023
cefcffb
Fix cards not using post type colors
hacknug Mar 30, 2023
bde7840
Fix visual intro sliders missing desktop styles
hacknug Apr 3, 2023
990fecc
Fix mobile blob showing up on big screens
hacknug Apr 3, 2023
bb25a54
Fix title font sizes and weights
hacknug Apr 3, 2023
c91d2df
Cleanup old classes
hacknug Apr 3, 2023
1840c7b
Fix more slider styles
hacknug Apr 3, 2023
cfd3ab8
Version bump
hacknug Apr 4, 2023
0093303
Add space between blog and posts
hacknug Apr 13, 2023
39a02e0
Center cards content
hacknug Apr 13, 2023
27cb0ae
Reduce space between latest posts title and content
hacknug Apr 13, 2023
a0678cc
Increase size of hero images and sliders
hacknug Apr 13, 2023
404375c
Hide page title in all pages except the front page
hacknug Apr 13, 2023
1841bee
Allow users to change slides clicking adjacents
hacknug Apr 13, 2023
b5e47be
Increase margin in related posts section in single post
hacknug Apr 13, 2023
4a2249c
Improve rich-test styles
hacknug Apr 13, 2023
386e377
Fix space between title and sections being too big
hacknug Apr 13, 2023
5a37171
Fix newsletter section being too small on big screens
hacknug Apr 13, 2023
1e2f811
Improve interactive styles for buttons
hacknug Apr 13, 2023
75682b0
Version bump
hacknug Apr 13, 2023
99ea182
Fix layout issues in WebKit browsers
hacknug Apr 14, 2023
4e9a293
Allow editors to center banner contents
hacknug Apr 14, 2023
21d2d29
Add interactive styles to menu items
hacknug Apr 14, 2023
9f70ebe
Allow editors to edit the number of columns
hacknug Apr 14, 2023
524a292
Version bump
hacknug Apr 14, 2023
012c05c
Fix container not growing
hacknug Apr 14, 2023
2b110c9
Version bump
hacknug Apr 14, 2023
b1c2f33
Improve footer styles
hacknug Apr 17, 2023
3f1685f
Fix font-size in small screens being too big
hacknug Apr 17, 2023
a2eb0af
Fix latest posts section not covering parent completely
hacknug Apr 17, 2023
4e40aa7
Remove old enqueues
hacknug Apr 17, 2023
dbce943
Fix arrow icon not showing up in Safari
hacknug Apr 17, 2023
a802434
Improve newsletter section styles
hacknug Apr 17, 2023
af61163
Improve footer styles for small screens
hacknug Apr 17, 2023
a9e96dd
Fix overflow issues in small screens
hacknug Apr 18, 2023
89e85a0
Version bump
hacknug Apr 18, 2023
3274539
Allow users to click on cards to navigate to single posts
hacknug Apr 21, 2023
2ee4a36
Update partner fields in Options page
hacknug Apr 21, 2023
e6ca174
Version bump
hacknug Apr 21, 2023
9dbcec1
Fix missing fields
hacknug Apr 21, 2023
9a71cdb
Version bump
hacknug Apr 21, 2023
3a0dd04
Allow editors to reuse partners content from Options page
hacknug Apr 21, 2023
292cc0c
Version bump
hacknug Apr 21, 2023
284ee55
Fix accessing non-existing fields
hacknug Apr 21, 2023
548b5d6
Version bump
hacknug Apr 21, 2023
0f88413
Fix not accessing the field properly
hacknug Apr 21, 2023
9f826f8
Fix extra space in Visual Intro section
hacknug Apr 24, 2023
1faeb82
Fix icons not showing up on Safari
hacknug Apr 24, 2023
d695e57
Fix current page not showing underline
hacknug Apr 24, 2023
ad71de7
Add new partners map section
hacknug Apr 25, 2023
6652839
Fix upcoming events not being shown in archive
hacknug Apr 26, 2023
eec8d08
Update map section layout
hacknug Apr 26, 2023
e7bc7b4
Version bump
hacknug Apr 26, 2023
aa23a7b
Fix facets not working as expected
hacknug Apr 27, 2023
e4a3bc8
Improve layout styles for cards section
hacknug Apr 28, 2023
21fbd9c
Fix posts content not being centered
hacknug Apr 28, 2023
3109ef6
Allow editos to overwrite author name in posts
hacknug Apr 28, 2023
f18f14a
Add missing blob to visual intro section
hacknug Apr 28, 2023
45f9f50
Fix footer credit logos alignment in small screens
hacknug Apr 28, 2023
09e937e
Add missing resources cards from stash
hacknug Apr 28, 2023
4877524
Fix some names and titles not fitting in aspect ratio containers
hacknug Apr 28, 2023
aa980cf
Fix slider being too tall sometimes
hacknug Apr 28, 2023
f20af1e
Fix content overflowing parent container sometimes
hacknug Apr 28, 2023
cd6d733
Add missing subtitle from posts slider
hacknug Apr 28, 2023
5f25f36
Fix extra margin on first headings
hacknug Apr 28, 2023
4c0e780
Version bump
hacknug Apr 28, 2023
1b9f70f
Upgrade dependencies to their latest version
hacknug May 8, 2023
80c707e
Revert hiding titles in pages other than Home
hacknug May 8, 2023
6a2c677
Allow resource cards to show full titles
hacknug May 8, 2023
7299c9c
Allow editors to change archive post subtitles inside Options page
hacknug May 8, 2023
5ed9dd0
Try to fix visible corners in WebKit browsers
hacknug May 8, 2023
5573bfd
Version bump
hacknug May 8, 2023
509d761
Fix missing rich text styles in resource descriptions
hacknug May 8, 2023
a1f56bf
Fix broken rounded corners for Home talents slider
hacknug May 8, 2023
162b8d2
Fix broken styles in newsletter section
hacknug May 8, 2023
1b625ab
Version bump
hacknug May 8, 2023
4b6f5ce
Add styles for front-end forms
hacknug Jun 2, 2023
266af4a
Version bump
hacknug Jun 2, 2023
146b314
Fix broken layout in Firefox
hacknug Jun 14, 2023
1979da2
Fix using taxonomy color on inactive items
hacknug Jun 15, 2023
7cab3ac
Enable pagination for award submissions
hacknug Jun 27, 2023
6ca15cf
Version bump
hacknug Jun 27, 2023
d55e5f9
Cleanup form classes
hacknug Nov 13, 2023
795e29b
Add newsletter subscription success modal and
hacknug Nov 14, 2023
8599ebe
Remove unused old dependencies
hacknug Nov 14, 2023
60c7642
Disable Vue code actions in `settings.json`
hacknug Nov 14, 2023
e11e878
Upgrade dependencies to their latest version
hacknug Nov 14, 2023
ce277b3
Update theme details
hacknug Nov 14, 2023
9c399db
Balance title lines in card components
hacknug Nov 14, 2023
eb78b38
Version bump
hacknug Nov 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ module.exports = {
'standard',
],
env: {
'browser': true,
browser: true,
},
globals: {
'jQuery': true,
'Swiper': true,
'acf': true,
'bodyScrollLock': true,
jQuery: true,
Swiper: true,
acf: true,
bodyScrollLock: true,
},
rules: {
'comma-dangle': [
'error', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'never',
'exports': 'never',
'functions': 'never',
arrays: 'always-multiline',
objects: 'always-multiline',
imports: 'never',
exports: 'never',
functions: 'never',
},
],
'no-cond-assign': ['error', 'except-parens'],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules/
vendor/
views/cache/
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"vue.features.codeActions.enable": false,
"vue.codeActions.enabled": false
}
57 changes: 0 additions & 57 deletions archive-resources.php

This file was deleted.

115 changes: 115 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<?php

acf_form_head();
get_header();

$facet = do_shortcode( '[facetwp template="archive_' . get_post_type() . '"]' );

$section = array(
'title' => array(
'post' => get_the_title( get_option('page_for_posts', true) ),
'talent' => post_type_archive_title( '', false ),
'tribe_events' => get_the_title( get_page_template_id( 'archive-events' )[0]->ID ),
'resources' => post_type_archive_title( '', false ),
'page' => get_the_title(),
)[ get_post_type() ],
'color' => array(
'post' => 'bg-blue',
'talent' => 'bg-yellow',
'tribe_events' => 'bg-purple',
'resources' => 'bg-red',
'page' => 'bg-purple',
)[ get_post_type() ],
);

$slider = array(
'slides' => get_posts(array(
'post_type' => get_post_type(),
'posts_per_page' => '5',
)),
'config' => 'featured',
'component' => 'template-parts/base/slider-slide-post',
'pagination' => true,
);

?>


<main class="container flex-grow">
<article class="grid gap-12 px-8 py-12">

<?php set_query_var( 'title', $section['title'] ); ?>
<?php get_template_part( 'template-parts/page/header' ); ?>

<aside class="z-0 relative flex max-h-[70vh] bg-gray">
<div class="aspect-w-4 aspect-h-3"></div>
<div class="absolute inset-0 w-full h-full">
<div class="bleed h-full">
<div class="relative h-full">
<div class="z-10 absolute inset-0 <?php echo $section['color']; ?>"></div>
<!-- <div class="z-30 absolute inset-0 bg-gradient-to-br from-blue via-transparent to-transparent"></div> -->
<div class="z-30 absolute inset-0 bg-gradient-corner-blue pointer-events-none"></div>
<div class="z-20 relative h-full bg-black rounded-br-[8rem] lg:rounded-br-[16rem] overflow-hidden">
<?php set_query_var( 'slider', $slider ); ?>
<?php get_template_part( 'template-parts/base/slider' ); ?>
</div>
</div>
</div>
</div>
</aside>

<nav class="grid-layout grid-cols-10 gap-8 text-center">
<div class="flex flex-col gap-8 col-span-full lg:col-start-2 lg:col-span-8">
<p class="text-xl lg:text-3xl font-light">Filter and customize your search</p>
<?php echo wp_kses_post( do_shortcode( '[facetwp facet="archive_' . get_post_type() . '"]' ) ); ?>
</div>
</nav>

<?php if ( $facet ) : ?>
<?php echo wp_kses_post( $facet ); ?>

<?php /* elseif ( get_post_type() === 'tribe_events' ) : */ ?>

<?php else : ?>
<section class="">
<ul class="grid-layout <?php echo esc_attr( get_post_type() === 'resources' ? 'grid-cols-1 gap-8 lg:gap-16' : 'md:grid-cols-2 lg:grid-cols-3'); ?>">
<?php while ( have_posts() ) : ?>
<?php the_post(); ?>
<?php

$is_event_upcoming = function () {
$date = date( 'Y-m-d' );
$date_start = tribe_get_start_date( null, false, 'Y-m-d' );
$date_end = tribe_get_end_date( null, false, 'Y-m-d' );

return DateTime::createFromFormat( 'Y-m-d', $date_end ?: $date_start ) > DateTime::createFromFormat( 'Y-m-d', $date );
};

$card = array(
'theme' => get_post_type() === 'tribe_events'
? ( $is_event_upcoming() ? '' : 'text-white bg-black' )
: ( '' ),
);

?>

<li class="">
<?php set_query_var( 'card', $card ); ?>
<?php get_template_part( in_array( get_post_type(), array( 'resources', 'af_entry' ) ) ? 'template-parts/base/card-' . get_post_type() : 'template-parts/base/card' ); ?>
</li>

<?php endwhile ?>
</ul>
</section>

<?php endif; ?>


<?php get_template_part( 'template-parts/archive/navigation' ); ?>
<?php /* get_template_part( 'template-parts/forms/index' ); */ ?>

</article>
</main>


<?php get_footer(); ?>
30 changes: 15 additions & 15 deletions assets/build/tasks/styles.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
var gulp = require('gulp')
var rename = require('gulp-rename')
var sass = require('gulp-sass')
// var sass = require('gulp-sass')
var postcss = require('gulp-postcss')
var atImport = require('postcss-import')
var fontPath = require('postcss-fontpath')
var tailwindcss = require('tailwindcss')
// var easingGradients = require('postcss-easing-gradients')
var inlineSvg = require('postcss-inline-svg')
// var inlineSvg = require('postcss-inline-svg')
var presetEnv = require('postcss-preset-env')
var purgecss = require('@fullhuman/postcss-purgecss')
// var purgecss = require('@fullhuman/postcss-purgecss')
var purgecssWordpress = require('purgecss-with-wordpress')
var autoprefixer = require('autoprefixer')
var perfectionist = require('perfectionist')
Expand Down Expand Up @@ -101,19 +101,19 @@ function watchStyles () {
], styles)
}

function stylesSass () {
return gulp.src('assets/css/theme.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('assets/css/'))
}
// function stylesSass () {
// return gulp.src('assets/css/theme.scss')
// .pipe(sass().on('error', sass.logError))
// .pipe(gulp.dest('assets/css/'))
// }

function watchStylesSass () {
return gulp.watch([
'assets/css/**/*.scss',
], stylesSass)
}
// function watchStylesSass () {
// return gulp.watch([
// 'assets/css/**/*.scss',
// ], stylesSass)
// }

exports.default = styles
exports.watch = watchStyles
exports.stylesSass = stylesSass
exports.watchStylesSass = watchStylesSass
// exports.stylesSass = stylesSass
// exports.watchStylesSass = watchStylesSass
48 changes: 0 additions & 48 deletions assets/css/accordion.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/css/admin-styles.css

This file was deleted.

Loading