diff --git a/wp-content/themes/tedx_theme/assets/line.png b/wp-content/themes/tedx_theme/assets/line.png new file mode 100644 index 00000000..fcbd29bf Binary files /dev/null and b/wp-content/themes/tedx_theme/assets/line.png differ diff --git a/wp-content/themes/tedx_theme/functions.php b/wp-content/themes/tedx_theme/functions.php index f3fe67f3..02c42fac 100755 --- a/wp-content/themes/tedx_theme/functions.php +++ b/wp-content/themes/tedx_theme/functions.php @@ -164,4 +164,11 @@ function ourWidgetsInit(){ )); } -add_action('widgets_init', 'ourWidgetsInit'); \ No newline at end of file +add_action('widgets_init', 'ourWidgetsInit'); + + + +function get_link_by_slug($slug, $type = 'post'){ + $post = get_page_by_path($slug, OBJECT, $type); + return get_permalink($post->ID); + } \ No newline at end of file diff --git a/wp-content/themes/tedx_theme/page-templates/default.php b/wp-content/themes/tedx_theme/page-templates/default.php new file mode 100755 index 00000000..4390ac30 --- /dev/null +++ b/wp-content/themes/tedx_theme/page-templates/default.php @@ -0,0 +1,20 @@ + + +
+
+ +
+ +
+ +
+
+ + { slidesToShow: 3, slidesToScroll: 1, infinite: true, - dots: true + } }, {breakpoint: 1024, @@ -46,7 +46,7 @@ window.onload = () => { slidesToShow: 2, slidesToScroll: 1, infinite: false, - dots: true + } }, { @@ -55,7 +55,7 @@ window.onload = () => { dots: false, slidesToShow: 1, slidesToScroll: 1, - dots: true + } }, { @@ -64,7 +64,7 @@ window.onload = () => { dots: false, slidesToShow: 1, slidesToScroll: 1, - dots: true + } } // You can unslick at a given breakpoint now by adding: diff --git a/wp-content/themes/tedx_theme/src/scss/_base.scss b/wp-content/themes/tedx_theme/src/scss/_base.scss index 7c7a5bb9..e7f8d28b 100755 --- a/wp-content/themes/tedx_theme/src/scss/_base.scss +++ b/wp-content/themes/tedx_theme/src/scss/_base.scss @@ -18,8 +18,6 @@ body { color: $c--black; } - - * { box-sizing: border-box; } diff --git a/wp-content/themes/tedx_theme/src/scss/preview/_highlights.scss b/wp-content/themes/tedx_theme/src/scss/preview/_highlights.scss index cadc9f6a..fc454eb9 100755 --- a/wp-content/themes/tedx_theme/src/scss/preview/_highlights.scss +++ b/wp-content/themes/tedx_theme/src/scss/preview/_highlights.scss @@ -7,24 +7,47 @@ } .preview__wrap-text, .preview__wrap-text.pr4 { - padding-right: 24rem; + .preview__title{ font-size: $font--150; - text-align: right; div { strong { - background-color: white; - color:$c--primary; + background-color: $c--primary; + color: white; } } } .preview__subtitle { + font-weight: bold; font-size: $font--120; color: white; .subtitle__background { - background-color: white; + color: $c--primary; } } + @media screen and (max-width: 640px){ + margin-top: 2rem; + margin-left: 11rem; + font-size: 15px; + margin-bottom: 15rem; + + .preview__title { + letter-spacing: .6rem; + font-size: $font--140; + } + } + @media screen and (max-width: 400px){ + margin-top: 2rem; + margin-left: 3rem; + font-size: 15px; + margin-bottom: 15rem; + + .preview__title { + letter-spacing: .6rem; + font-size: $font--150; + } + } + } .preview__background { max-height: 100%; diff --git a/wp-content/themes/tedx_theme/src/scss/sections/_form.scss b/wp-content/themes/tedx_theme/src/scss/sections/_form.scss index ff82bb65..257a2164 100644 --- a/wp-content/themes/tedx_theme/src/scss/sections/_form.scss +++ b/wp-content/themes/tedx_theme/src/scss/sections/_form.scss @@ -27,6 +27,7 @@ body { @include input-form(); } textarea { + width: 321px; resize: none; padding: 1rem 1.75rem 1rem 1.75rem; &::placeholder { diff --git a/wp-content/themes/tedx_theme/src/scss/sections/_hero.scss b/wp-content/themes/tedx_theme/src/scss/sections/_hero.scss index bd67f7ff..1fe6b476 100755 --- a/wp-content/themes/tedx_theme/src/scss/sections/_hero.scss +++ b/wp-content/themes/tedx_theme/src/scss/sections/_hero.scss @@ -1,17 +1,87 @@ /* HERO ----------------------------- */ @import 'preview/highlights'; +.homepage--hero { + margin-top: 10rem; + max-width: 45rem; + +} + +.section__event { + + .section__background { + div { + background: $c--lightgray; + } + + .section__highlight { + .preview__event-description { + p { + margin: 0; + } + column-count: 2; + + @media screen and(max-width: 400px) { + column-count: 1; + } + } + } + + } + + position: relative; + + background-color: $c--lightgray; + h1 { + color: $c--primary; + } + +} .section--hero { + &.section--home-hero { + .contain-image { + max-height: 245px !important; + padding-top: .8rem; + + + @media screen and (max-width: 640px) { + max-height: 533px !important; + left: -50%; + margin-top: -4rem; + position: absolute; + + } + + @media screen and (max-width: 400px) { + max-height: 404px !important; + padding-top: -2.2rem; + left: 0%; + transform: translatey(22%); + margin-top: -5rem; + opacity: .3; + position: absolute; + } + } + + } &.section--ted-circle { background-color: $c--primary; } .section__container { - .contain-image { + img { max-height: calc((100vh - 180px)/2); } } } + +.section__line { + overflow: hidden; + .line { + transform: translateX(-50%); + margin-bottom: 5rem; + } +} \ No newline at end of file diff --git a/wp-content/themes/tedx_theme/src/scss/sections/_newsletter.scss b/wp-content/themes/tedx_theme/src/scss/sections/_newsletter.scss index dc297113..9a847dcb 100644 --- a/wp-content/themes/tedx_theme/src/scss/sections/_newsletter.scss +++ b/wp-content/themes/tedx_theme/src/scss/sections/_newsletter.scss @@ -28,7 +28,7 @@ input { @include input-form(); - padding-right: 10rem; + } } } diff --git a/wp-content/themes/tedx_theme/src/scss/utils/_vars.scss b/wp-content/themes/tedx_theme/src/scss/utils/_vars.scss index 090d09e6..f9a8048c 100755 --- a/wp-content/themes/tedx_theme/src/scss/utils/_vars.scss +++ b/wp-content/themes/tedx_theme/src/scss/utils/_vars.scss @@ -28,6 +28,7 @@ $bar-spacing: .5rem; /* COLORS ----------------------------- */ $c--navbar: white; +$c--lightgray: #f5f5f5; $c--navbar-shadow: #C4C4C4; $c--black: #393939; $c--primary: #E63822; diff --git a/wp-content/themes/tedx_theme/template-parts/block-social.php b/wp-content/themes/tedx_theme/template-parts/block-social.php index 1f63a5e5..0bfe7587 100755 --- a/wp-content/themes/tedx_theme/template-parts/block-social.php +++ b/wp-content/themes/tedx_theme/template-parts/block-social.php @@ -1,14 +1,16 @@ - +
-

-

+ +

+ +

+
+
+ + +
+
+

+
+
+ +
+
+ + +
+
+ +
+ +
+ + + diff --git a/wp-content/themes/tedx_theme/template-parts/preview-highlight.php b/wp-content/themes/tedx_theme/template-parts/preview-highlight.php index 09b9c936..509722d7 100755 --- a/wp-content/themes/tedx_theme/template-parts/preview-highlight.php +++ b/wp-content/themes/tedx_theme/template-parts/preview-highlight.php @@ -1,30 +1,31 @@ -
-
+ +
+
+ -
-
+
+
-
+
-
-
- img -
+
+
- -
-
    - Hero Image Logo -
-
+ +
+
    + Hero Image Logo +
+
+ + +
+
+ Hero Image Logo +
+
+ +