Commit 638943fc authored by Christopher Guindon's avatar Christopher Guindon
Browse files
parent c51858d1
......@@ -17,7 +17,35 @@ links: [[href: "#members", text: "Get Involved"],[href: "https://accounts.eclips
{{< sponsors >}}
{{< news >}}
{{< grid/div class="featured-section featured-news-events row" isMarkdown="false" >}}
{{< grid/div class="container" isMarkdown="false" >}}
{{< grid/div class="row" isMarkdown="false" >}}
{{< grid/div class="col-sm-12 featured-news-block" isMarkdown="false" >}}
{{< grid/div class="featured-news" isMarkdown="false" >}}
<h2>News</h2>
{{< newsroom/news id="news-template-id" templateId="custom-news-template" templatePath="/js/templates/news-home.mustache" id="news-list-container" containerClass="match-height-item-by-row" count="2" class="news-list-custom" publishTarget="eclipse_ide" includeList="true">}}
{{</ grid/div >}}
{{</ grid/div >}}
{{< grid/div class="col-sm-12 text-center featured-events-block" isMarkdown="false" >}}
{{< grid/div class="featured-events" isMarkdown="false" >}}
<h2>Upcoming Events</h2>
{{< newsroom/events
id="event-list-container"
publishTarget="eclipse_ide"
class="events-list-custom"
containerClass="match-height-item-by-row"
upcoming="1"
templateId="custom-events-template"
templatePath="/js/templates/event-list-format.mustache"
includeList="true"
count="4"
>}}
{{</ grid/div >}}
{{</ grid/div >}}
{{</ grid/div >}}
{{</ grid/div >}}
{{</ grid/div >}}
{{< about >}}
......
/*!
* Copyright (c) 2019 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Eric Poirier <eric.poirier@eclipse-foundation.org>
*
*
* SPDX-License-Identifier: EPL-2.0
*/
*/
(function($, document) {
$('.matchheight-item').matchHeight();
import 'eclipsefdn-solstice-assets';
import 'jquery';
(function ($) {
if ($('.ide-members-slider').length) {
$.ajax({
url: 'https://api.eclipse.org/public/member?pagesize=100&page=1&working_group=eclipse-ide',
type: 'GET',
dataType: 'json',
success: function (data) {
console.log(data);
$(data).each(function() {
$featuredMembersItem = $("<div></div>");
$featuredMembersItem.attr({
"class": "featured-members-item item padding-20"
});
url: 'https://api.eclipse.org/public/member?pagesize=100&page=1&working_group=eclipse-ide',
type: 'GET',
dataType: 'json',
success: function (data) {
$(data).each(function () {
const featuredMembersItem = $('<div></div>');
featuredMembersItem.attr({
class: 'featured-members-item item padding-20',
});
$img = $('<img>');
$img.attr({
'alt': $(this)[0]['name'],
'class': 'img-responsive',
'src': $(this)[0]['logos']['full']
});
const img = $('<img>');
img.attr({
alt: $(this)[0]['name'],
class: 'img-responsive',
src: $(this)[0]['logos']['full'],
});
if ($(this)[0]['website']) {
$link = $("<a></a>");
$link.attr({
'target': '_blank',
'href': $(this)[0]['website']
});
$link.append($img);
$featuredMembersItem.append($link);
}
else {
$featuredMembersItem.append($img);
}
if ($(this)[0]['website']) {
const link = $('<a></a>');
link.attr({
target: '_blank',
href: $(this)[0]['website'],
});
link.append(img);
featuredMembersItem.append(link);
} else {
featuredMembersItem.append(img);
}
$('.ide-members-slider').append($featuredMembersItem);
});
$('.ide-members-slider').append(featuredMembersItem);
});
$(".ide-members-slider").owlCarousel({
responsive: {
0: {
items: $(".ide-members-slider").data('slider-xs-count') || 1
},
768: {
items: $(".ide-members-slider").data('slider-sm-count') || 2
},
992: {
items: $(".ide-members-slider").data('slider-md-count') || 3
},
1170: {
items: $(".ide-members-slider").data('slider-lg-count') || 3
}
},
pagination: true,
responsiveRefreshRate: 100
});
},
error: function () {
console.log('Could not load members. MEMBER-01');
},
$('.ide-members-slider').owlCarousel({
responsive: {
0: {
items: $('.ide-members-slider').data('slider-xs-count') || 1,
},
768: {
items: $('.ide-members-slider').data('slider-sm-count') || 2,
},
992: {
items: $('.ide-members-slider').data('slider-md-count') || 3,
},
1170: {
items: $('.ide-members-slider').data('slider-lg-count') || 3,
},
},
pagination: true,
responsiveRefreshRate: 100,
});
},
error: function () {
console.log('Could not load members. MEMBER-01');
},
});
})(jQuery, document);
\ No newline at end of file
}
})(jQuery);
<!--
Copyright (c) 2018 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
Contributors:
Christopher Guindon <chris.guindon@eclipse-foundation.org>
SPDX-License-Identifier: EPL-2.0
-->
<!DOCTYPE html>
<html lang="{{ .Lang }}">
<head>
{{ block "head" . }}{{ partial "head.html" . }}{{ end }}
{{ block "head-custom" . }}{{ partial "head_custom.html" . }}{{ end }}
{{ block "head-suffix" . }}{{ partial "head_suffix.html" . }}{{ end }}
</head>
<body>
{{ block "header" . }}{{ partial "header.html" . }}{{ end }}
{{ block "breadcrumbs" . }}{{ if and (ne .Page.Params.hide_breadcrumb true) (ne .Site.Params.hide_breadcrumb true) }}{{ partial "breadcrumbs.html" . }}{{end}}{{ end }}
{{ block "main_prefix" . }}{{ partial "main_prefix.html" . }}{{ end }}
{{ block "main" . }}{{ .Content }}{{ end }}
{{ block "main_suffix" . }}{{ partial "main_suffix.html" . }}{{ end }}
{{ block "footer-custom" . }}{{- partial "footer_custom.html" . }}{{ end }}
{{ block "featured_footer" . }}{{ partial "featured_footer.html" . }}{{ end }}
{{ block "footer" . }}{{ partial "footer.html" . }}{{ end }}
{{ block "footer-suffix" . }}{{ partial "footer_suffix.html" . }}{{ end }}
</body>
</html>
{{ if eq .Page.Params.show_featured_story true }}
<div class="featured-story" id="featured-story" data-publish-target="{{ .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org"}}">
<div class="container">
<div class="featured-story-block-container">
<div class="featured-story-block featured-story-block-content featured-container"></div>
</div>
</div>
</div>
{{ end }}
\ No newline at end of file
<!--
Copyright (c) 2018 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
terms of the Eclipse Public License v. 2.0 which is available at
http://www.eclipse.org/legal/epl-2.0.
Contributors:
Christopher Guindon <chris.guindon@eclipse-foundation.org>
SPDX-License-Identifier: EPL-2.0
-->
<p id="back-to-top">
<a class="visible-xs" href="#top">{{ i18n "navigation-back-to-top" }}</a>
</p>
<footer id="{{- .Params.footer_id | default .Site.Params.footer_id | default "solstice-footer"}}" class="{{- .Params.footer_class | default .Site.Params.footer_class | default ""}}">
<div class="container">
<p class="text-center"><img class="footer-ef-logo" alt="Eclipse Foundation Logo" src="images/logo/eclipse-foundation.svg"></p>
<div class="row">
<section class="col-sm-6 hidden-print" id="footer-eclipse-foundation">
<h2 class="section-title">{{ i18n "eclipse-foundation-text" }}</h2>
<ul class="nav">
<li><a href="https://www.eclipse.org/org/">{{ i18n "footer-foundation-about-us-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/foundation/contact.php">{{ i18n "footer-foundation-contact-us-text" }}</a></li>
<li><a href="https://www.eclipse.org/donate">{{ i18n "footer-foundation-donate-text" }}</a></li>
<li><a href="https://www.eclipse.org/membership">{{ i18n "footer-foundation-members-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/documents/">{{ i18n "footer-foundation-governance-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/documents/Community_Code_of_Conduct.php">{{ i18n "footer-foundation-code-of-conduct-text" }}</a></li>
<li><a href="https://www.eclipse.org/artwork/">{{ i18n "footer-foundation-logo-artwork-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/foundation/directors.php">{{ i18n "footer-foundation-board-of-directors-text" }}</a></li>
</ul>
</section>
<section class="col-sm-6 hidden-print" id="footer-legal">
<h2 class="section-title">{{ i18n "footer-legal-section-text" }}</h2>
<ul class="nav">
<li><a href="https://www.eclipse.org/legal/privacy.php">{{ i18n "footer-legal-privacy-policy-text" }}</a></li>
<li><a href="https://www.eclipse.org/legal/termsofuse.php">{{ i18n "footer-legal-terms-use-text" }}</a></li>
<li><a href="https://www.eclipse.org/legal/copyright.php">{{ i18n "footer-legal-copyright-agent-text" }}</a></li>
<li><a href="https://www.eclipse.org/legal/epl-2.0/">{{ i18n "footer-legal-epl-text" }}</a></li>
<li><a href="https://www.eclipse.org/legal/">{{ i18n "footer-legal-resources-text" }} </a></li>
</ul>
</section>
<section class="col-sm-6 hidden-print" id="footer-useful-links">
<h2 class="section-title">{{ i18n "footer-useful-links-section-text" }}</h2>
<ul class="nav">
<li><a href="https://bugs.eclipse.org/bugs/">{{ i18n "footer-useful-links-report-bug-text" }}</a></li>
<li><a href="//help.eclipse.org/">{{ i18n "footer-useful-links-documentation-text" }}</a></li>
<li><a href="https://www.eclipse.org/contribute/">{{ i18n "footer-useful-links-contribute-text" }}</a></li>
<li><a href="https://www.eclipse.org/mail/">{{ i18n "footer-useful-links-mailing-list-text" }}</a></li>
<li><a href="https://www.eclipse.org/forums/">{{ i18n "footer-useful-links-forums-text" }}</a></li>
<li><a href="//marketplace.eclipse.org">{{ i18n "footer-useful-links-marketplace-text" }}</a></li>
</ul>
</section>
<section class="col-sm-6 hidden-print" id="footer-other">
<h2 class="section-title">{{ i18n "footer-other-section-text" }}</h2>
<ul class="nav">
<li><a href="https://www.eclipse.org/ide/">{{ i18n "footer-other-tools-text" }}</a></li>
<li><a href="https://www.eclipse.org/projects">{{ i18n "footer-other-community-projects-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/workinggroups/">{{ i18n "footer-other-working-groups-text" }}</a></li>
<li><a href="https://www.eclipse.org/org/research/">{{ i18n "footer-other-research-text" }}</a></li>
<li><a href="https://www.eclipse.org/security/">{{ i18n "footer-other-report-vulnerability-text" }}</a></li>
<li><a href="https://status.eclipse.org">{{ i18n "footer-other-status-text" }}</a></li>
</ul>
</section>
<div class="col-sm-24 margin-top-20">
<div class="row">
<div id="copyright" class="col-md-16">
<p id="copyright-text">{{ i18n "footer-copyright-text" | safeHTML}}</p>
</div>
{{ partial "socials.html" . }}
</div>
</div>
<a href="#" class="scrollup">{{ i18n "navigation-back-to-top" }}</a>
</div>
</div>
</footer>
<!-- Placed at the end of the document so the pages load faster -->
{{- with .Site.Params.js | default "https://www.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/main.min.js"}}
<script src="{{ . | absURL }}"></script>
{{ end }}
{{ if isset .Site.Params "hugo_js" }}
{{- with .Site.Params.hugo_js }}
<script src="{{ . | absURL }}"></script>
{{ end }}
{{ else }}
<script src="{{ "/js/solstice.hugo.js" | absURL }}"></script>
{{ end }}
<!-- Read in mustache templates registered in page scratch -->
{{ range $key, $value := (.Page.Scratch.Get "mustache-templates") }}
<script id="{{ $key }}" type="text/html">
{{ readFile $value | safeHTML}}
</script>
{{ end }}
<!-- Initialize any newsroom components on the page -->
<script>
(function($, document) {
{{ range (.Page.Scratch.Get "events-container-ids") }}
$("#{{ . }}").eclipseFdnApi({
type: "filteredEvents"
});
{{ end }}
{{ range (.Page.Scratch.Get "news-container-ids") }}
$("#{{ . }}").eclipseFdnApi({
type: "newsItems"
});
{{ end }}
{{ if ne .Page.Params.show_featured_story false }}
$("{{ .Site.Params.featured_footer_selector | default "#featured-story" }}").eclipseFdnApi({
type: "featuredStory"
});
{{ end }}
{{ if ne .Page.Params.show_featured_footer false }}
$("{{ .Site.Params.featured_footer_selector | default "#featured-footer" }}").eclipseFdnApi({
type: "featuredFooter"
});
{{ end }}
})(jQuery, document);
</script>
<script id="event-short-list" type="text/html">
{{ readFile ("/js/templates/event-list-format.mustache") | safeHTML}}
</script>
<script id="news-home-template" type="text/html">
{{ readFile ("/js/templates/news-home.mustache") | safeHTML}}
</script>
<script>
(function($, document) {
// Eclipse News and events
$("#news-list-container").eclipseFdnApi({
type: "newsItems"
});
$("#event-list-container").eclipseFdnApi({
type: "filteredEvents"
});
})(jQuery, document);
</script>
\ No newline at end of file
<script id="event-short-list" type="text/html">
{{ readFile ("/js/templates/event-list-format.mustache") | safeHTML}}
</script>
<script id="news-home-template" type="text/html">
{{ readFile ("/js/templates/news-home.mustache") | safeHTML}}
</script>
<script>
(function($, document) {
// Eclipse News and events
$("#news-list-container").eclipseFdnApi({
type: "newsItems"
});
$("#event-list-container").eclipseFdnApi({
type: "filteredEvents"
});
})(jQuery, document);
</script>
\ No newline at end of file
<!--
<!--
Copyright (c) 2018 Eclipse Foundation, Inc.
This program and the accompanying materials are made available under the
......@@ -19,7 +19,7 @@
</div>
{{ partial "jumbotron.html" . }}
{{ if eq .Page.Params.show_featured_story true }}
<div class="featured-story" id="featured-story" data-publish-target="{{ .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org"}}">
<div class="eclipsefdn-featured-story featured-story" id="featured-story" data-publish-target="{{ .Page.Params.featured_content_publish_target | default .Site.Params.featured_content_publish_target | default "eclipse_org"}}">
<div class="container">
<div class="featured-story-block-container">
<div class="featured-story-block featured-story-block-content featured-container"></div>
......
<div class="featured-section featured-highlights row">
<div class="container">
<h2>Community Highlights</h2>
<div class="row">
<div class="col-xs-5-eclipse matchheight-item featured-highlights-text">
<div class="row">
<div class="col-xs-5-eclipse match-height-item-by-row featured-highlights-text">
<span class="featured-stats-number">70</span><br>
Projects
</div>
<div class="col-xs-5-eclipse matchheight-item featured-highlights-text">
<div class="col-xs-5-eclipse match-height-item-by-row featured-highlights-text">
<span class="featured-stats-number">100</span><br>
Committers
</div>
<div class="col-xs-5-eclipse matchheight-item featured-highlights-text">
<div class="col-xs-5-eclipse match-height-item-by-row featured-highlights-text">
<span class="featured-stats-number">174</span><br>
Contributors
</div>
<div class="col-xs-5-eclipse matchheight-item featured-highlights-text">
<div class="col-xs-5-eclipse match-height-item-by-row featured-highlights-text">
<span class="featured-stats-number">4M+</span><br>
IDE users
</div>
<div class="col-xs-5-eclipse matchheight-item featured-highlights-text">
<div class="col-xs-5-eclipse match-height-item-by-row featured-highlights-text">
<span class="featured-stats-number">45M+</span><br>
Plugin Installs
</div>
......
<div class="featured-section featured-news-events row">
<div class="container">
<div class="row">
<div class="col-sm-12 featured-news-block">
<div class="featured-news">
<h2>News</h2>
<div class="matchheight-item" id="news-list-container" data-template-id="news-home-template" data-news-count="2" data-publish-target="eclipse_ide"></div>
<ul class="list-inline block-summary-more margin-bottom-40">
<li><a href="https://newsroom.eclipse.org/rss/news/ecd_tools/news.xml" title="Subscribe to our RSS-feed"><i class="fa fa-rss margin-right-5"></i></a><a href="/news">View all</a></li>
<li class="news-list-links-view-all"><a href="https://newsroom.eclipse.org/node/add/news">Submit News</a></li>
</ul>
</div>
</div>
<div class="col-sm-12 text-center featured-events-block">
<div class="featured-events">
<h2>Upcoming Events</h2>
<div class="matchheight-item" id="event-list-container" data-template-id="event-short-list" data-upcoming="1" data-count="4" data-publish-target="eclipse_ide"></div>
<ul class="list-inline block-summary-more margin-bottom-40">
<li><a href="https://events.eclipse.org">View all</a></li>
<li class="news-list-links-view-all"><a href="https://newsroom.eclipse.org/node/add/events">Submit Event</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
This diff is collapsed.
{
"/css/styles.css": "/css/styles.css",
"/js/solstice.js": "/js/solstice.js"
"/js/solstice.js": "/js/solstice.js",
"/css/styles.css": "/css/styles.css"
}
/*!
* Copyright (c) 2021 Eclipse Foundation, Inc.
*
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
*
* Contributors:
* Christopher Guindon <chris.guindon@eclipse-foundation.org>
*
*
* SPDX-License-Identifier: EPL-2.0
*/
*/
mix = require('laravel-mix');
require('laravel-mix-transpile-node-modules');
mix.transpileNodeModules(['eclipsefdn-solstice-assets']);
mix.options({uglify: {uglifyOptions: {compress: false, output: {comments: true}}}});
mix.options({
uglify: { uglifyOptions: { compress: false, output: { comments: true } } },
});
mix.setPublicPath('static');
mix.setResourceRoot('../');
mix.less('./less/styles.less', 'static/css/styles.css');
mix.babel([
'./node_modules/jquery/dist/jquery.min.js',
'./node_modules/bootstrap/dist/js/bootstrap.min.js',
'./node_modules/jquery-match-height/dist/jquery.matchHeight-min.js',
'./node_modules/jquery-eclipsefdn-api/dist/jquery.eclipsefdn-api.min.js',
'./node_modules/feather-icons/dist/feather.min.js',
'./node_modules/cookieconsent/src/cookieconsent.js',
'./node_modules/owl.carousel/dist/owl.carousel.min.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookieconsent.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.videos.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.cookies.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.js',
'./node_modules/eclipsefdn-solstice-assets/js/solstice.eventsmodal.js',
'./node_modules/eclipsefdn-solstice-assets/js/eclipsefdn.render-rss-feeds.js',
'js/main.js'
], './static/js/solstice.js');
mix.webpackConfig({
resolve: {
alias: {
jquery: 'jquery/src/jquery',
},
},
});
//mix.babel('js/projects.js', './static/js/projects.min.js');
\ No newline at end of file
mix.js('js/main.js', './static/js/solstice.js');
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment