forked from inveniosoftware/docs-invenio-rdm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeatures_base.html
85 lines (70 loc) · 2.33 KB
/
features_base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!--
Copyright (C) 2018-2024 CERN.
Copyright (C) 2018-2024 Northwestern University.
Copyright (C) 2022-2024 KTH Royal Institute of Technology.
Invenio is free software; you can redistribute it and/or modify it
under the terms of the MIT License; see LICENSE file for more details.
-->
{% extends "main.html" %}
{% block styles %}
{{ super() }}
<link rel="stylesheet" href="../stylesheets/features.css" />
{% endblock %}
{% block tabs %}
{{ super() }}
<style>
/* Embedded CSS styles to isolate changes to this page only */
body[data-md-color-scheme] .md-header {
background: transparent;
position: static;
transform: translateY(0px);
}
body[data-md-color-scheme] .md-tabs {
border-bottom: none;
background: transparent;
}
</style>
<div class="rdm-hero-bg">
<svg class="wave-svg" xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1123 258'>
<path d='M1124,2c0,0 0,256 0,256l-1125,0l0,-48c0,0 16,5 55,5c116,0 197,-92 325,-92c121,0 114,46 254,46c140,0 214,-167 572,-166Z' />
</svg>
</div>
<div class="rdm-hero md-typeset header">
{{page.content}}
</div>
{% endblock %}
{% block content %}
{% for item in nav %}
{% if item.title == "Features" %}
{% for sub_page in item.children %}
{% if sub_page.title != "Overview" and sub_page.meta %}
{{ feature_box(sub_page.title, sub_page.url, sub_page.meta.summary, sub_page.meta.image) }}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
<section class="feature">
<div class="content-wrapper">
<div class="image" style="background-image: url('../images/responsive.png')">
</div>
<div class="text-wrapper">
<h2>Features overview</h2>
<p>Learn how to use our features</p>
<a href="/features/features-walk-through/" class="learn-more"> Learn more ❯</a>
</div>
</div>
</section>
{% endblock %}
{% macro feature_box(title, url, content, image) %}
<section class="feature">
<div class="content-wrapper">
<div class="image" style="background-image: url({{image}})">
</div>
<div class="text-wrapper">
<h2>{{ title }}</h2>
<p>{{ content }}</p>
<a href="/{{url}}" class="learn-more"> Learn more ❯</a>
</div>
</div>
</section>
{% endmacro %}