Compare commits

...

5 commits

Author SHA1 Message Date
47f3bbd826 little better 2020-05-06 11:21:02 +05:00
1e5c56fb31 Make slider little more responsive 2020-05-06 10:20:00 +05:00
efc4200a9c conditional destination in makefile 2020-05-06 09:06:17 +05:00
95837d957c Logic added to carousel control 2020-04-26 10:15:25 +05:00
63435ce27d Slider added 2020-04-24 19:45:25 +05:00
11 changed files with 186 additions and 11 deletions

View file

@ -1,5 +1,12 @@
BUILDDIR?=../ungleich-staticcms-build BUILDDIR?=../ungleich-staticcms-build
BRANCH := $(shell git rev-parse --abbrev-ref HEAD)
ifeq ($(BRANCH), "master")
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms.ungleich.ch/www/u/ DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms.ungleich.ch/www/u/
else
DESTINATION=ungleichstatic@staticweb.ungleich.ch:/home/services/www/ungleichstatic/staticcms-staging.ungleich.ch/www/u/
endif
all: publish all: publish

View file

@ -4,13 +4,17 @@ _hidden: no
--- ---
title: Video Conference Call title: Video Conference Call
--- ---
subtitle: Free, Open Source and sustainable Video Conference subtitle:
Free, Open Source and sustainable Video Conference
--- ---
image: /u/image/cards/videoconf.jpg image: /u/image/cards/videoconf.jpg
--- ---
headline1: Secure & Free headline1: Secure & Free
--- ---
headline2: Video Conference headline2:
Video Conference
--- ---
header_background_color: #095fce header_background_color: #095fce
--- ---
@ -36,3 +40,41 @@ Use our free video conference to call the ones you need to talk to. Wherever you
--- ---
content1_image: /u/image/jitsi-ungleich.jpg content1_image: /u/image/jitsi-ungleich.jpg
--- ---
slide:
#### slide ####
title: Online Video Conferencing
----
description: We would provide you excellent open source tools that would help you get started with online video conferencing
----
button_text: Click Me
----
button_link: https://www.google.com
----
background_image:
----
video_mp4: video-chat.mp4
#### slide ####
title: Online Video Conferencing For Education
----
description: Whether, you are a Student or a Teacher, with our remote video conferencing you can collaborate easily
----
button_text: Click Me
----
button_link: http://www.google.com
----
background_image: video-call.jpg
----
video_mp4:
#### slide ####
title: Jitsi
----
description: A very reasonable open source video conferencing tool
----
button_text: Click Me
----
button_link: https://google.com
----
background_image: jitsi.jpg
----
video_mp4:

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 288 KiB

Binary file not shown.

27
flowblocks/slide.ini Normal file
View file

@ -0,0 +1,27 @@
[block]
name = Slide
button_label = Slide
[fields.title]
label = Title
type = string
[fields.description]
label = Description
type = string
[fields.button_text]
label = Button Text
type = string
[fields.button_link]
label = Button Link
type = url
[fields.background_image]
label = Background Image
type = text
[fields.video_mp4]
label = Video MP4
type = text

View file

@ -18,6 +18,3 @@ type = markdown
label = Image label = Image
type = url type = url
[fields.slider]
type = flow
flow_blocks = slider

View file

@ -181,3 +181,7 @@ type = url
[fields.image] [fields.image]
label = Index Image label = Index Image
type = url type = url
[fields.slide]
type = flow
flow_blocks = slide

View file

@ -0,0 +1,23 @@
<!-- active -->
<div class="carousel-item">
{% if this.video_mp4 %}
<video autoplay muted loop>
<source src="{{ this.video_mp4 }}" type="video/mp4">
</video>
{% elif this.background_image %}
<img src="{{ this.background_image }}" class="d-block w-100" alt="...">
{% endif %}
<div class="container">
<div class="carousel-caption">
<h3 class="display-4">{{ this.title }}</h3>
<p class="lead">
{{ this.description }}
<br>
<a href="{{ this.button_link }}" class="btn btn-primary btn-lg" role="button" aria-pressed="true">
{{ this.button_text }}
</a>
</p>
</div>
</div>
</div>

View file

@ -1,3 +0,0 @@
<div class="text-block text-block-{{ this.class }}">
{{ this.text }}
</div>

View file

@ -41,6 +41,56 @@
</script> </script>
<!-- End Google Analytics --> <!-- End Google Analytics -->
<style>
video{
width:100%;
object-fit: cover;
}
.carousel-caption {
right: 5%;
text-align: right;
left: auto;
padding:5px;
}
/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
.carousel-item img, video {
height: 280px;
}
}
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
.carousel-item img, video {
height: 300px;
}
}
/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
.carousel-item img, video {
height: 400px;
}
}
/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
.carousel-item img, video {
height: 450px;
}
}
/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
.carousel-item img, video {
height: 900px;
}
}
</style>
</head> </head>
<body> <body>
{% if this.header_background_color %} {% if this.header_background_color %}
@ -105,7 +155,32 @@
Else default to boxed title + subtitle Else default to boxed title + subtitle
#} #}
{% if this.headline1 or this.headline2 or this.headline3 %} {% if this.slide %}
<!-- Start of Slider -->
<div id="head-carousel" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
{% for slide in this.slide.blocks %}
{% if loop.index0 == 0 %}<li data-target="#head-carousel" data-slide-to="0" class="active"></li>{% else %}<li data-target="#head-carousel" data-slide-to="{{ loop.index0 }}"></li>{% endif %}
{% endfor %}
</ol>
<div class="carousel-inner">
{{ this.slide }}
</div>
<div class="d-none d-sm-none d-md-block">
<a class="carousel-control-prev" href="#head-carousel" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#head-carousel" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<!-- End of Slider-->
{% elif this.headline1 or this.headline2 or this.headline3 %}
<div class="jumbotron jumbotron-fluid" style="background-color: {{this.header_background_color}};"> <div class="jumbotron jumbotron-fluid" style="background-color: {{this.header_background_color}};">
<div class="container-fluid"> <div class="container-fluid">
<h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;"> <h1 class="display-1 generic-header {{this.header_text_color}}" style="font-weight: bolder;">
@ -154,5 +229,8 @@
src="/u/static/popper.js-1.16.0/dist/esm/popper.min.js"></script> src="/u/static/popper.js-1.16.0/dist/esm/popper.min.js"></script>
<script type="text/javascript" <script type="text/javascript"
src="/u/static/bootstrap-4.4.1-dist/js/bootstrap.min.js"></script> src="/u/static/bootstrap-4.4.1-dist/js/bootstrap.min.js"></script>
<script type="text/javascript">
$("div.carousel-item")[0].classList += " active";
</script>
</body> </body>
</html> </html>