-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
team page done, moved css to folders
- Loading branch information
Showing
20 changed files
with
226 additions
and
25 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
docker-compose up -d | ||
(cd ./themes/argo/ && npm run watch) | ||
2 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?php | ||
/** | ||
* Disabling emoji library from Wordpress. | ||
*/ | ||
function disable_emojis() { | ||
|
||
// Let's remove a bunch of actions & filters. | ||
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); | ||
remove_action( 'admin_print_scripts', 'print_emoji_detection_script' ); | ||
remove_action( 'wp_print_styles', 'print_emoji_styles' ); | ||
remove_action( 'admin_print_styles', 'print_emoji_styles' ); | ||
remove_filter( 'the_content_feed', 'wp_staticize_emoji' ); | ||
remove_filter( 'comment_text_rss', 'wp_staticize_emoji' ); | ||
remove_filter( 'wp_mail', 'wp_staticize_emoji_for_email' ); | ||
|
||
// We also take care of Tiny MCE. | ||
add_filter( 'tiny_mce_plugins', 'disable_emojis_tinymce' ); | ||
add_filter( 'wp_resource_hints', 'disable_emojis_remove_dns_prefetch', 10, 2 ); | ||
} | ||
|
||
// Let's do this at the init. | ||
add_action( 'init', 'disable_emojis' ); | ||
|
||
/** | ||
* Filter funcion to remove the emoji plugin from TinyMCE. | ||
* @param array $plugins | ||
* @return array Difference betwen the two arrays. | ||
*/ | ||
function disable_emojis_tinymce($plugins) { | ||
if ( is_array( $plugins ) ) { | ||
return array_diff( $plugins, array( 'wpemoji' ) ); | ||
} else return array(); | ||
} | ||
|
||
/** | ||
* Removing emoji CDN hostname from DNS prefetching hints. | ||
* @param array $urls URLs to print for resource hints. | ||
* @param string $relation_type The relation type the URLs are printed for. | ||
* @return array Difference betwen the two arrays. | ||
*/ | ||
function disable_emojis_remove_dns_prefetch( $urls, $relation_type ) { | ||
if ( 'dns-prefetch' == $relation_type ) { | ||
/** This filter is documented in wp-includes/formatting.php */ | ||
$emoji_svg_url = apply_filters( 'emoji_svg_url', 'https://s.w.org/images/core/emoji/2/svg/' ); | ||
$urls = array_diff( $urls, array( $emoji_svg_url ) ); | ||
} | ||
return $urls; | ||
} | ||
?> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,19 @@ | ||
<?php | ||
get_header(); | ||
?> | ||
<main> | ||
<main class="page-team"> | ||
<header> | ||
<h1>hello</h1> | ||
<!-- <h1>Das Team</h1> --> | ||
</header> | ||
|
||
<?php the_content()?> | ||
|
||
</main> | ||
|
||
<?php | ||
include get_template_directory() . '/inc/contact-us.php'; | ||
?> | ||
|
||
|
||
<?php get_footer(); ?> | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
// @import "./trispace-font.scss"; | ||
@import "./old-style.scss"; | ||
@import "./typography.scss"; | ||
|
||
// General CSS | ||
html, body.home, body.home #page { | ||
height: -webkit-fill-available; | ||
} | ||
|
||
body { | ||
font-family: "Space Mono", monospace; | ||
font-weight: 400; | ||
} | ||
@import "./general/typography.scss"; | ||
@import "./general/scrollbar.scss"; | ||
@import "./scroll-effects.scss"; | ||
|
||
// Components | ||
@import "./components/main-header.scss"; | ||
@import "./components/footer.scss"; | ||
@import "./components/landing-header.scss"; | ||
@import "./components/landing-body.scss"; | ||
@import "./components/testimonials.scss"; | ||
@import "./components/contact-us.scss"; | ||
|
||
|
||
@import "./main-header.scss"; | ||
@import "./footer.scss"; | ||
@import "./contact-us.scss"; | ||
@import "./blog.scss"; | ||
@import "./landing-header.scss"; | ||
@import "./landing-body.scss"; | ||
@import "./testimonials.scss"; | ||
@import "./temp.scss"; | ||
@import "./portfolio.scss"; | ||
@import "./contact-form.scss"; | ||
@import "./scrollbar.scss" | ||
// Pages | ||
@import "./pages/portfolio.scss"; | ||
@import "./pages/contact-form.scss"; | ||
@import "./pages/blog.scss"; | ||
@import "./pages/team.scss" |
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
2 changes: 2 additions & 0 deletions
2
themes/argo/scss/contact-form.scss → themes/argo/scss/pages/contact-form.scss
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
.contact-form { | ||
margin-bottom: 5rem; | ||
|
||
.label { | ||
display: block; | ||
margin: 2rem 0 .5rem; | ||
|
20 changes: 20 additions & 0 deletions
20
themes/argo/scss/portfolio.scss → themes/argo/scss/pages/portfolio.scss
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
.page-team { | ||
h1, h2 { | ||
text-align: center; | ||
} | ||
|
||
figure { | ||
margin: 0; | ||
position: relative; | ||
|
||
&.fullwidth img { | ||
width: 100%; | ||
} | ||
|
||
img { | ||
display: block; | ||
border: 1px solid black; | ||
|
||
} | ||
|
||
figcaption { | ||
// position: absolute; | ||
border: 1px solid black; | ||
background-color: white; | ||
padding: 1rem; | ||
display: block; | ||
margin: 0; | ||
width: 80%; | ||
transform: translate(10%, -2rem); | ||
} | ||
|
||
&.phillip { | ||
margin-top: 4rem; | ||
margin-bottom: 4rem; | ||
figcaption { | ||
transform: translate(0); | ||
width: 70%; | ||
position: absolute; | ||
bottom: -1rem; | ||
right: calc(45px); | ||
} | ||
} | ||
|
||
&.luis { | ||
margin-bottom: 5rem; | ||
|
||
img { | ||
width: 80%; | ||
margin-left: 20%; | ||
} | ||
figcaption { | ||
position: absolute; | ||
bottom: -3rem; | ||
left:45px; | ||
width: 70%; | ||
|
||
|
||
transform: translate(0); | ||
|
||
max-width: 400px; | ||
} | ||
} | ||
|
||
&.malte { | ||
margin-bottom: 4rem; | ||
figcaption { | ||
transform: translate(0); | ||
width: 70%; | ||
position: absolute; | ||
bottom: -1rem; | ||
right: calc(45px); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@media (max-width: 600px) { | ||
.page-team { | ||
padding-left: 0; | ||
padding-right: 0; | ||
|
||
p, figure:not(.fullwidth) { | ||
padding: 0 40px; | ||
} | ||
|
||
img { | ||
max-height: 60vh; | ||
width: auto; | ||
|
||
} | ||
} | ||
} |
File renamed without changes.
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