Skip to content

Commit c8376cd

Browse files
committed
Remove old home
1 parent f8d9174 commit c8376cd

8 files changed

Lines changed: 134 additions & 211 deletions

File tree

src/core/jinja2/core/home.jinja2

Lines changed: 60 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212
</script>
1313
<link id="manifest" rel="manifest" href="/manifest.json">
1414
{# <script src="{{ static('js/main.js') }}"></script> #}
15+
<script type="importmap">
16+
{
17+
"imports": {
18+
"three": "{{ static('libs/three-0.184.0.js') }}",
19+
"three/addons/GLTFLoader.js": "{{ static('libs/GLTFLoader-0.184.0.js') }}",
20+
"three/addons/OrbitControls.js": "{{ static('libs/OrbitControls-0.184.0.js') }}"
21+
}
22+
}
23+
</script>
1524
<script src="https://unpkg.com/htmx.org@2.0.4"
1625
integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+"
1726
crossorigin="anonymous"></script>
@@ -33,18 +42,58 @@
3342
{% include "core/header.jinja2" %}
3443
{% include "core/useful_links.jinja2" %}
3544
{% block content %}
36-
<section class="use-guide">
37-
<div class="container">
38-
<h2 id="main_title">{{ _("Welcome to Jandig") }}</h2>
39-
<blockquote>
40-
{{ _("An Open Source Augmented Reality art community.") }}
41-
</blockquote>
42-
<p>{{ _("To see the Artworks you need to grant camera access to the app.") }}</p>
43-
<div class="go-to-camera">
44-
<a href="/exhibit_select" class="button">{{ _("Go to camera") }}</a>
45+
<div class="home-container stripped-bg">
46+
<section class="home-section home-highlight">
47+
<div>
48+
<h2 id="main_title">{{ _("Welcome to Jandig") }}</h2>
49+
<blockquote>
50+
{{ _("Uma comunidade de código aberto de arte em Realidade Estendida, que viabiliza a produção de exposições e obras unindo arte e tecnologia.") }}
51+
</blockquote>
52+
</div>
53+
</section>
54+
<section class="home-section">
55+
<p>{{ _("No vídeo abaixo, apresentamos o que é a Jandig, o conceito da plataforma e suas possibilidades.") }}</p>
56+
<div class="video-container">
57+
<iframe width="560"
58+
height="315"
59+
referrerpolicy='strict-origin-when-cross-origin'
60+
src="https://www.youtube.com/embed/Oou7uE2XeRo"
61+
frameborder="0"
62+
allow="autoplay; gyroscope; picture-in-picture"
63+
allowfullscreen></iframe>
64+
</div>
65+
</section>
66+
<section class="home-section">
67+
<p>
68+
{{ _("Se você se identificou com a Jandig e acredita que a plataforma é útil para você criar seu projeto com realidade aumentada (seja ele uma exposição, cartaz, adesivo, mural, livro ou o que mais sua imaginação puder criar), deixamos para você um passo a passo de como utilizá-la. Ele explica o processo para subir seu conteúdo ou remixar o conteúdo já existente na plataforma.") }}
69+
</p>
70+
<div class="video-container" style="margin-bottom:50px">
71+
<iframe width="560"
72+
height="315"
73+
referrerpolicy='strict-origin-when-cross-origin'
74+
src="https://www.youtube.com/embed/rMpzwP967V4"
75+
frameborder="0"
76+
allow="autoplay; gyroscope; picture-in-picture"
77+
allowfullscreen>
78+
</iframe>
4579
</div>
46-
</div>
47-
</section>
80+
<p>
81+
{{ _("Para acompanhar o passo a passo e colocar em prática,") }}
82+
<a href="{{ url('signup') }}">{{ _("faça seu cadastro") }}</a>
83+
{{ _("antes de começar a assistir. Depois, volte aqui e dê play no vídeo.
84+
Se você preferir, também pode acessar o") }}
85+
<a href="https://jandig.app/docs/publicando-obras-portugues.html">{{ _("passo a passo por texto.") }}</a>
86+
{{ _("Além disso, no site da Jandig, na área de") }}
87+
<a href="https://jandig.app/docs/index.html">{{ _("Ajuda") }}</a>,
88+
{{ _("há outros tutoriais que podem ser úteis. Não deixe de consultá-los se sentir que é necessário.") }}
89+
</p>
90+
<p>
91+
{{ _("Esperamos ver suas obras e exposições na Jandig! Se você criar algo, não deixe de compartilhar conosco. Temos um") }}
92+
<a href="https://t.me/joinchat/HES_ShA6TMPP-aiHxH7thQ">{{ _("canal no Telegram") }}</a>
93+
{{ _("voltado para a comunidade, onde é possível tirar dúvidas e compartilhar suas criações e experiências.") }}
94+
</p>
95+
</section>
96+
</div>
4897
{% endblock %}
4998
{% include "core/footer.jinja2" %}
5099
</body>

src/core/jinja2/core/home_v2.jinja2

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/core/static/css/home.css

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,76 @@
4141
padding-top: 6%;
4242
}
4343

44+
.home-section {
45+
padding: 20px;
46+
max-width: 80%;
47+
margin: 0 auto;
48+
}
49+
50+
.home-highlight {
51+
max-width: 80%;
52+
min-width: 30%;
53+
}
54+
55+
.home-highlight blockquote:after, .home-highlight blockquote:before {
56+
background: #03b5951a;
57+
}
58+
59+
.stripped-bg {
60+
background-color: #f8f8f8;
61+
background-image: linear-gradient(45deg, #f8f8f8 25%, #f5f5f5 25%, #f5f5f5 50%, #f8f8f8 50%, #f8f8f8 75%, #f5f5f5 75%, #f5f5f5 100%);
62+
background-size: 30px 30px;
63+
}
64+
65+
.home-container {
66+
border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
67+
border-width: 1px;
68+
--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
69+
box-shadow: 0 0 #0000, 0 0 #0000, var(--tw-shadow);
70+
border-style: solid;
71+
width: 80%;
72+
margin: 0 auto;
73+
margin-bottom: 50px;
74+
max-width: 1000px;
75+
}
76+
77+
.home-container p {
78+
font-family: "Istok Web", serif;
79+
text-align: justify;
80+
font-size: 1.125rem;
81+
color: rgb(55 65 81);
82+
}
83+
84+
.home-container a {
85+
color: #03b595;
86+
}
87+
88+
/* https://stackoverflow.com/questions/35814653/automatic-height-when-embedding-a-youtube-video */
89+
.video-container {
90+
position: relative;
91+
padding-bottom: 56.25%; /* 16:9 */
92+
height: 0;
93+
}
94+
95+
.video-container iframe {
96+
position: absolute;
97+
top: 0;
98+
left: 0;
99+
width: 100%;
100+
height: 100%;
101+
margin: 0 auto;
102+
}
44103

45104
/* Desktops */
46105
@media(min-width: 800px) {
47106
.use-guide {
48107
max-width: 560px;
49108
margin-bottom: 30px;
50109
}
110+
.home-highlight {
111+
max-width: 60%;
112+
min-width: 30%;
113+
}
114+
}
51115

52116
}

src/core/static/css/home_v2.css

Lines changed: 0 additions & 97 deletions
This file was deleted.

src/core/tests/test_html_thumbnail_generators.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ def test_marker_thumbnail_editable(self):
5151
edit_url = reverse("edit-marker") + f"?id={self.marker.id}"
5252
preview_url = reverse("marker-preview") + f"?id={self.marker.id}"
5353
delete_url = (
54-
reverse("delete-content")
55-
+ f"?content_type=marker&amp;id={self.marker.id}"
54+
reverse("delete-content") + f"?content_type=marker&amp;id={self.marker.id}"
5655
)
5756
assert edit_url in html
5857
assert delete_url in html

src/core/urls.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
documentation,
77
favicon,
88
health_check,
9-
home_new,
10-
home_old,
9+
home,
1110
manifest,
1211
me_hotsite,
1312
robots_txt,
@@ -39,9 +38,8 @@
3938
)
4039

4140
urlpatterns = [
42-
path("", home_new, name="home"),
41+
path("", home, name="home"),
4342
path("ar/", ar_view, name="ar-view"),
44-
path("arviewer/", home_old, name="home-old"),
4543
path("artwork/", artwork_preview, name="artwork-preview"),
4644
path("artworks/create/", create_artwork, name="create-artwork"),
4745
path("artworks/edit/", edit_artwork, name="edit-artwork"),

src/core/views/static_views.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ def me_hotsite(request):
2323
return render(request, "core/ME/hotsite.html", {})
2424

2525

26-
def home_new(request):
27-
return render(request, "core/home_v2.jinja2", {})
28-
29-
30-
def home_old(request):
26+
def home(request):
3127
return render(request, "core/home.jinja2", {})
3228

3329

0 commit comments

Comments
 (0)