This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function site_post_types() { | |
// Project | |
register_post_type('project', array( | |
'show_in_rest' => true, | |
'supports' => array('title', 'editor', 'excerpt'), | |
'rewrite' => array('slug' => 'projects'), | |
'has_archive' => true, | |
'public' => true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action('rest_api_init', 'getawayRegisterRoute'); | |
function getawayRegisterRoute() { | |
register_rest_route( 'getaway/v1', 'data', array( | |
'methods' => WP_REST_SERVER::READABLE, | |
'callback' => 'getawayDataResults' | |
)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script> | |
<title>Document</title> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.card { | |
// FUNCTIONALITY | |
perspective: 150rem; | |
-moz-perspective: 150rem; | |
position: relative; | |
height: 52rem; | |
&__side { | |
height: 52rem; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.composition { | |
position: relative; | |
&__photo { | |
width: 55%; | |
box-shadow: 0 1.5rem 4rem rgba($color-black, 0.4); | |
border-radius: 2px; | |
position: absolute; | |
z-index: 10; | |
transition: all 0.2s; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.section-about { | |
background-color: $color-gray-light-1; | |
padding: 25rem 0; | |
margin-top: -20vh; | |
@include respond(tab-port) { | |
padding: 20rem 0; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*, | |
*::after, | |
*::before { | |
margin: 0; | |
padding: 0; | |
box-sizing: inherit; | |
} | |
html { | |
// This defines what 1rem is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Media query manager | |
/* | |
0 - 600px: Phone | |
600 - 900px: Tablet in portrait | |
900 - 1200px: Tablet in landscape | |
[1200 - 1800] is where our normal styles apply | |
1800+: Big desktop | |
$breakpoint argument choices: |
NewerOlder