Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New brand styles integration #8368

Merged
merged 152 commits into from
Feb 13, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
e76e8ed
Install django-libsass - implement test .scss on grants page
gdixon Feb 4, 2021
15f9f1d
Replaces bootstrap.min.css with bootstrap.scss
gdixon Feb 5, 2021
e2fb274
Replaces bootstrap-vue.min.css with an import to bootstrap-vue/index.…
gdixon Feb 5, 2021
b7f1473
Replaces vue-select.css with vue-select.scss
gdixon Feb 5, 2021
a2fa5ec
Drops main.scss example from grants page
gdixon Feb 5, 2021
2245df4
Adds minification rules
gdixon Feb 5, 2021
8e8e764
Moves bootstrap, bootstrap-vue, vue-select to v3/lib
gdixon Feb 5, 2021
1111aa9
Updates bootstrap v4.3.1 -> v4.6.0
gdixon Feb 5, 2021
c83a946
move files
octavioamu Feb 5, 2021
529818d
Move all scss libs to scss/lib/*
gdixon Feb 6, 2021
606dd86
remove old files
octavioamu Feb 9, 2021
b4dcf4c
Copies all css to scss and sets fileTypes
gdixon Feb 8, 2021
0fe655d
Updates css href's -> scss (app/retail/templates/shared/head.html)
gdixon Feb 8, 2021
84ca733
Internalises vue-innersearch.css (v0.0.12)
gdixon Feb 8, 2021
b016708
Updates css href's -> scss (app/app/templates/search/search.html)
gdixon Feb 8, 2021
c647c18
Updates css href's -> scss (app/dashboard/templates/bulk_payout_bount…
gdixon Feb 8, 2021
47d0716
Updates css href's -> scss (app/dashboard/templates/labs.html)
gdixon Feb 8, 2021
0c1b67c
Updates css href's -> scss (app/dashboard/templates/process_bounty.html)
gdixon Feb 8, 2021
a3b3c86
Updates css href's -> scss (app/dashboard/templates/quickstart.html)
gdixon Feb 8, 2021
eb4a802
Updates css href's -> scss (app/dashboard/templates/request_payment.h…
gdixon Feb 8, 2021
0b9a569
Updates css href's -> scss (app/dashboard/templates/board/index.html)
gdixon Feb 8, 2021
209e350
Updates css href's -> scss (app/dashboard/templates/bounty/change.html)
gdixon Feb 8, 2021
475be60
Updates css href's -> scss (app/dashboard/templates/bounty/details.html)
gdixon Feb 8, 2021
2657aa4
Updates css href's -> scss (app/dashboard/templates/bounty/details2.h…
gdixon Feb 8, 2021
0a85252
Updates css href's -> scss (app/dashboard/templates/bounty/fullfill.h…
gdixon Feb 8, 2021
9a56c5e
Updates css href's -> scss (app/dashboard/templates/bounty/increase.h…
gdixon Feb 8, 2021
3f10220
Updates css href's -> scss (app/dashboard/templates/bounty/new_bounty…
gdixon Feb 8, 2021
14983f8
Updates css href's -> scss (app/dashboard/templates/dashboard/explore…
gdixon Feb 8, 2021
0e9465b
Updates css href's -> scss (app/dashboard/templates/dashboard/index-v…
gdixon Feb 8, 2021
df500b3
Updates css href's -> scss (app/dashboard/templates/dashboard/index.h…
gdixon Feb 8, 2021
6d2cb11
Updates css href's -> scss (app/dashboard/templates/dashboard/sponser…
gdixon Feb 8, 2021
bacdf80
Updates css href's -> scss (app/dashboard/templates/dashboard/user-el…
gdixon Feb 8, 2021
dc202cb
Updates css href's -> scss (app/dashboard/templates/dashboard/users.h…
gdixon Feb 8, 2021
3c4547b
Updates css href's -> scss (app/dashboard/templates/dashboard/hackath…
gdixon Feb 8, 2021
264152c
Updates css href's -> scss (app/dashboard/templates/dashboard/hackath…
gdixon Feb 8, 2021
e11ae5d
Updates css href's -> scss (app/dashboard/templates/dashboard/hackath…
gdixon Feb 8, 2021
689a705
Updates css href's -> scss (app/dashboard/templates/dashboard/hackath…
gdixon Feb 8, 2021
7032681
Internalises quill.*.css (renaming to .scss) (v1.3.6)
gdixon Feb 8, 2021
8887bad
Updates css href's -> scss (app/dashboard/templates/ftux/onboard.html)
gdixon Feb 8, 2021
856e912
Copies onepage css to scss and sets fileTypes
gdixon Feb 8, 2021
c5199d7
Updates css href's -> scss (app/dashboard/templates/onepager/base.html)
gdixon Feb 8, 2021
32b737c
Updates css href's -> scss (app/dashboard/templates/onepager/send2.html)
gdixon Feb 8, 2021
ae2ed38
Updates css href's -> scss (app/dashboard/templates/profiles/profile.…
gdixon Feb 8, 2021
d6072ec
Updates css href's -> scss (app/dashboard/templates/profiles/tribes-v…
gdixon Feb 8, 2021
ca1b180
Updates css href's -> scss (app/dashboard/templates/shared/newsletter…
gdixon Feb 8, 2021
07fdc4b
Updates css href's -> scss (app/dashboard/templates/shared/search_bar…
gdixon Feb 8, 2021
dfa8ef0
Updates css href's -> scss (app/dataviz/templates/cohort.html)
gdixon Feb 8, 2021
71d2c84
Copies admin/css/dashboard to scss and sets fileTypes
gdixon Feb 9, 2021
919877a
Updates css href's -> scss (app/dataviz/templates/funnel.html)
gdixon Feb 9, 2021
6d23df7
Updates css href's -> scss (app/dashboard/templates/dashboard/hackath…
gdixon Feb 9, 2021
32ec6af
Updates css href's -> scss (app/dashboard/templates/profiles/tribes-v…
gdixon Feb 9, 2021
a9523be
Updates css href's -> scss (app/dataviz/templates/dataviz/admin_graph…
gdixon Feb 9, 2021
5f430c0
Updates css href's -> scss (app/dataviz/templates/dataviz/circles.html)
gdixon Feb 9, 2021
c2743b8
Updates css href's -> scss (app/dataviz/templates/dataviz/draggable.h…
gdixon Feb 9, 2021
49f98fa
Updates css href's -> scss (app/dataviz/templates/dataviz/graph.html)
gdixon Feb 9, 2021
f2e65ef
Updates css href's -> scss (app/dataviz/templates/dataviz/heatmap.html)
gdixon Feb 9, 2021
6e794eb
Updates css href's -> scss (app/dataviz/templates/dataviz/index.html)
gdixon Feb 9, 2021
6654469
Updates css href's -> scss (app/dataviz/templates/dataviz/mesh.html)
gdixon Feb 9, 2021
18f1f14
Updates css href's -> scss (app/dataviz/templates/dataviz/spiral.html)
gdixon Feb 9, 2021
aacb9aa
Updates css href's -> scss (app/dataviz/templates/dataviz/steamgraph.…
gdixon Feb 9, 2021
1d4aace
Updates css href's -> scss (app/dataviz/templates/dataviz/sunburst.html)
gdixon Feb 9, 2021
f59e439
Updates css href's -> scss (app/dataviz/templates/stats.html)
gdixon Feb 9, 2021
a46749c
Updates css href's -> scss (app/faucet/templates/bulk_DM.html)
gdixon Feb 9, 2021
02740e5
Updates css href's -> scss (app/faucet/templates/bulk_email.html)
gdixon Feb 9, 2021
a92d596
Updates css href's -> scss (app/faucet/templates/process_faucet_reque…
gdixon Feb 9, 2021
02f3161
Updates css href's -> scss (app/grants/templates/grants/_new.html)
gdixon Feb 9, 2021
2a56cb2
Updates css href's -> scss (app/grants/templates/grants/cancel.html)
gdixon Feb 9, 2021
6b0260a
Updates css href's -> scss (app/grants/templates/grants/cart-vue.html)
gdixon Feb 9, 2021
cefed32
Updates css href's -> scss (app/grants/templates/grants/detail/_index…
gdixon Feb 9, 2021
387d4f1
Updates css href's -> scss (app/grants/templates/grants/detail/index.…
gdixon Feb 9, 2021
3ae3ad1
Updates css href's -> scss (app/grants/templates/grants/faq.html)
gdixon Feb 9, 2021
3793eaa
Updates css href's -> scss (app/grants/templates/grants/index.html)
gdixon Feb 9, 2021
5a0ad6e
Updates css href's -> scss (app/grants/templates/grants/ingest-contri…
gdixon Feb 9, 2021
7e7f99c
Updates css href's -> scss (app/grants/templates/grants/new-whitelabe…
gdixon Feb 9, 2021
9ead662
Updates css href's -> scss (app/grants/templates/grants/new.html)
gdixon Feb 9, 2021
861708f
Updates css href's -> scss (app/grants/templates/grants/new_match.html)
gdixon Feb 9, 2021
d821c72
Updates css href's -> scss (app/grants/templates/grants/quickstart.html)
gdixon Feb 9, 2021
66b80f3
Updates css href's -> scss (app/kudos/templates/kudos_about.html)
gdixon Feb 9, 2021
61f790a
Updates css href's -> scss (app/kudos/templates/kudos_details.html)
gdixon Feb 9, 2021
c079bf8
Updates css href's -> scss (app/kudos/templates/kudos_marketplace.html)
gdixon Feb 9, 2021
3891d0c
Updates css href's -> scss (app/kudos/templates/transaction/base.html)
gdixon Feb 9, 2021
4394ecd
Updates css href's -> scss (app/kudos/templates/receive_bulk.html)
gdixon Feb 9, 2021
1a19c9c
Updates css href's -> scss (app/ptokens/templates/buy_a_token.html)
gdixon Feb 9, 2021
dfc3ab4
Updates css href's -> scss (app/ptokens/templates/personal_tokens.html)
gdixon Feb 9, 2021
66de6c1
Updates css href's -> scss (app/ptokens/templates/ptokens_buy_faq.html)
gdixon Feb 9, 2021
760fedd
Updates css href's -> scss (app/ptokens/templates/ptokens_faq.html)
gdixon Feb 9, 2021
654b900
Updates css href's -> scss (app/ptokens/templates/ptokens_make_faq.html)
gdixon Feb 9, 2021
cccfe07
Updates css href's -> scss (app/quests/templates/quests/base.html)
gdixon Feb 9, 2021
4d9c8a3
Updates css href's -> scss (app/quests/templates/quests/new.html)
gdixon Feb 9, 2021
f405117
Updates css href's -> scss (app/quests/templates/quests/types/example…
gdixon Feb 9, 2021
c174bf5
Updates css href's -> scss (app/quests/templates/quests/types/quiz_st…
gdixon Feb 9, 2021
1eb57e4
Updates css href's -> scss (app/retail/templates/about.html)
gdixon Feb 9, 2021
60611d6
Updates css href's -> scss (app/retail/templates/activity.html)
gdixon Feb 9, 2021
523e0aa
Updates css href's -> scss (app/retail/templates/admin/base.html)
gdixon Feb 9, 2021
a04d1ae
Updates css href's -> scss (app/retail/templates/admin/index.html)
gdixon Feb 9, 2021
178bfb8
Updates css href's -> scss (app/retail/templates/avatar_landing.html)
gdixon Feb 9, 2021
013a419
Updates css href's -> scss (app/retail/templates/base.html)
gdixon Feb 9, 2021
6e42dfb
Updates css href's -> scss (app/retail/templates/bounties/contributor…
gdixon Feb 9, 2021
31358ab
Updates css href's -> scss (app/retail/templates/bounties/contributor…
gdixon Feb 9, 2021
0327d15
Updates css href's -> scss (app/retail/templates/bounties/contributor…
gdixon Feb 9, 2021
406a741
Updates css href's -> scss (app/retail/templates/bounties/funder.html)
gdixon Feb 9, 2021
6f41336
Updates css href's -> scss (app/retail/templates/emails_unsubscribed.…
gdixon Feb 9, 2021
882acc0
Updates css href's -> scss (app/retail/templates/emails/recap/weekly_…
gdixon Feb 9, 2021
4763718
Updates css href's -> scss (app/retail/templates/emails/shared_templa…
gdixon Feb 9, 2021
eb949b1
Updates css href's -> scss (app/retail/templates/home/index.html)
gdixon Feb 9, 2021
26b47b4
Updates css href's -> scss (app/retail/templates/home/index2020.html)
gdixon Feb 9, 2021
ac0c5bf
Updates css href's -> scss (app/retail/templates/how_it_works/index.h…
gdixon Feb 9, 2021
4260ab4
Updates css href's -> scss (app/retail/templates/leaderboard.html)
gdixon Feb 9, 2021
48ecc31
Updates css href's -> scss (app/retail/templates/mission.html)
gdixon Feb 9, 2021
2a26d8a
Updates css href's -> scss (app/retail/templates/newkudos.html)
gdixon Feb 9, 2021
1143c9d
Updates css href's -> scss (app/retail/templates/newtoken.html)
gdixon Feb 9, 2021
c67ab7d
Updates css href's -> scss (app/retail/templates/presskit.html)
gdixon Feb 9, 2021
bf71669
Updates css href's -> scss (app/retail/templates/process_accesscode_r…
gdixon Feb 9, 2021
a4d71d3
Updates css href's -> scss (app/retail/templates/products.html)
gdixon Feb 9, 2021
f346b88
Updates css href's -> scss (app/retail/templates/resend_tip.html)
gdixon Feb 9, 2021
febd5f2
Updates css href's -> scss (app/retail/templates/results.html)
gdixon Feb 9, 2021
1dda631
Updates css href's -> scss (app/retail/templates/tribes/landing.html)
gdixon Feb 9, 2021
4df1321
Updates css href's -> scss (app/retail/templates/vision.html)
gdixon Feb 9, 2021
533272a
Updates css href's -> scss (app/townsquare/templates/townsquare/index…
gdixon Feb 9, 2021
4df3971
Updates css href's -> scss (app/townsquare/templates/townsquare/new.h…
gdixon Feb 9, 2021
810352a
Updates css href's -> scss (app/townsquare/templates/townsquare/offer…
gdixon Feb 9, 2021
39d2c83
Renames quill-snow.scss -> quill.snow.scss
gdixon Feb 9, 2021
49be179
Adds misc .css (as .scss) from other locations
gdixon Feb 9, 2021
a12c0e2
Adds stylelint-scss
gdixon Feb 9, 2021
713cb12
Runs stylelint --fix
gdixon Feb 9, 2021
43c0dc3
Merge branch 'master' of https://github.com/gitcoinco/web into gpg/ne…
gdixon Feb 10, 2021
23ec5f0
Updates stylelint
gdixon Feb 10, 2021
86be017
Drops preload
gdixon Feb 10, 2021
27a64aa
Drops .css from test case
gdixon Feb 10, 2021
640df4e
Inline typography.scss (but still exclude from premailer)
gdixon Feb 10, 2021
f14b7b9
Restore mocked_requests param
gdixon Feb 10, 2021
32f2fb4
Drop .scss from admin
gdixon Feb 10, 2021
6de3b8d
merge
octavioamu Feb 10, 2021
8485cea
Adds collectstatic to travis
gdixon Feb 10, 2021
35d1314
Drop typography.scss from email templates
gdixon Feb 10, 2021
2dc0c08
Adds collectstatic again but with --disable-collectfast flag
gdixon Feb 10, 2021
521b986
remove css files
octavioamu Feb 10, 2021
2b5fea5
Adds missing stylesheet
gdixon Feb 10, 2021
de188fb
Fixes global btn override on quests
gdixon Feb 10, 2021
f16a44b
Fixes class name
gdixon Feb 10, 2021
73a44d4
Drops missing stylesheet
gdixon Feb 10, 2021
3ae6633
Extends block
gdixon Feb 10, 2021
1710238
Compress stylesheets offline in production
gdixon Feb 10, 2021
780c7d1
bundle js files and cleanup
octavioamu Feb 10, 2021
a935a4f
remove duplicates
octavioamu Feb 10, 2021
b29f409
avoid using jquery-old in most pages
octavioamu Feb 10, 2021
f4c8275
fix jsrender where is used
octavioamu Feb 10, 2021
856ca60
move select2 to jquery extras
octavioamu Feb 10, 2021
ce84892
Tidy up
gdixon Feb 11, 2021
a1cfb6b
Fixes indentation
gdixon Feb 11, 2021
3c83a6b
Fixes indentation
gdixon Feb 11, 2021
c646a8b
Merge branch 'master' into gpg/new-styles
thelostone-mc Feb 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ app/assets/v2/css/bootstrap-vue.min.css
app/assets/v2/js/lib/tweenlite.js
app/assets/v2/js/abi.js
app/assets/v2/css/lib/*

app/assets/v2/scss/jquery.select2.min.scss
app/assets/v2/scss/vue-innersearch.scss
app/assets/v2/scss/lib/*
9 changes: 7 additions & 2 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "stylelint-config-recommended",
"rules": {
"no-descending-specificity": null,
"at-rule-no-unknown": [
true, {
"ignoreAtRules": [
Expand All @@ -25,7 +26,11 @@
"vh",
"pt",
"vmin",
"fr"
"fr",
"turn"
]
}
},
"plugins": [
"stylelint-scss"
],
}
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- pip install -r requirements/test.txt
- npm run eslint
- npm run stylelint
- (cd app; python3 ./manage.py collectstatic --noinput --disable-collectfast)
- pytest -p no:ethereum -p no:warnings
# Generate Markdown documentation and static docs page.
- pydocmd build
Expand Down
4 changes: 3 additions & 1 deletion app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,10 @@
]
# number of demicals allowed in sass numbers
LIBSASS_PRECISION = 8
# minify sass output in production
# minify sass output in production (offline)
if ENV not in ['local', 'test', 'staging', 'preview']:
# compress offline (use './manage.py compress' to build manifest.json)
COMPRESS_OFFLINE = True
# drop line comments
LIBSASS_SOURCE_COMMENTS = False
# minification of sass output
Expand Down
217 changes: 109 additions & 108 deletions app/app/templates/search/search.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
{% comment %}
Copyright (C) 2020 Gitcoin Core
Copyright (C) 2020 Gitcoin Core

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% load i18n static email_obfuscator add_url_schema avatar_tags %}
{% load i18n static email_obfuscator add_url_schema avatar_tags compress %}
<!DOCTYPE html>
<html lang="en">
<html lang="en">

<head>
{% include 'shared/head.html' %}
{% include 'shared/cards.html' %}
<link rel="stylesheet" href={% static "v2/css/users.css" %} />
<link rel="stylesheet" href={% static "v2/css/tag.css" %} />
<link rel="stylesheet" href={% static "v2/css/rating.css" %} />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/default-innersearch-theme.min.css">
{% compress css file search %}
<link rel="stylesheet" type="text/x-scss" href={% static "v2/scss/users.scss" %} />
<link rel="stylesheet" type="text/x-scss" href={% static "v2/scss/tag.scss" %} />
<link rel="stylesheet" type="text/x-scss" href={% static "v2/scss/rating.scss" %} />
<link rel="stylesheet" type="text/x-scss" href={% static "v2/scss/vue-innersearch.scss" %}>
{% endcompress %}
</head>

<body id="{{ explore }}" class="interior {{active}} g-font-muli">
Expand All @@ -38,39 +39,39 @@
<h2>Search</h2>

<form method="get" action="">
<table>
{{ form.as_table }}
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="Search">
</td>
</tr>
</table>

{% if query %}
<h3>Results</h3>

{% for result in page.object_list %}
<p>
<a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a>
</p>
{% empty %}
<p>No results found.</p>
{% endfor %}

{% if page.has_previous or page.has_next %}
<div>
{% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Previous{% if page.has_previous %}</a>{% endif %}
|
{% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
</div>
{% endif %}
{% else %}
{# Show some example queries to run, maybe query syntax, something else? #}
<table>
{{ form.as_table }}
<tr>
<td>&nbsp;</td>
<td>
<input type="submit" value="Search">
</td>
</tr>
</table>

{% if query %}
<h3>Results</h3>

{% for result in page.object_list %}
<p>
<a href="{{ result.object.get_absolute_url }}">{{ result.object.title }}</a>
</p>
{% empty %}
<p>No results found.</p>
{% endfor %}

{% if page.has_previous or page.has_next %}
<div>
{% if page.has_previous %}<a href="?q={{ query }}&amp;page={{ page.previous_page_number }}">{% endif %}&laquo; Previous{% if page.has_previous %}</a>{% endif %}
|
{% if page.has_next %}<a href="?q={{ query }}&amp;page={{ page.next_page_number }}">{% endif %}Next &raquo;{% if page.has_next %}</a>{% endif %}
</div>
{% endif %}
{% else %}
{# Show some example queries to run, maybe query syntax, something else? #}
{% endif %}
</form>
{% endblock %}
{% endblock %}
<div id="gc-users-directory" v-cloak>

<section>
Expand All @@ -79,71 +80,71 @@ <h1 class='is-title'>Hacky User Directory</h1>
<hr class='is-line' />

<div class="filters" style="width : 90%; margin : 0 auto;">
<tag-filter :for="'searchbox'"></tag-filter>
<tag-filter :for="'searchdatalist'">
<template slot-scope="{ data }">
[[ data._source.keywords ]]
</template>
</tag-filter>
<tag-filter :for="'nlf'">
<template slot-scope="{ data }">
<tag-filter :for="'searchbox'"></tag-filter>
<tag-filter :for="'searchdatalist'">
<template slot-scope="{ data }">
[[ data._source.keywords ]]
</template>
</tag-filter>
<tag-filter :for="'nlf'">
<template slot-scope="{ data }">
Number of Hacks Joined: [[ data._source.keywords ]]
</template>
</tag-filter>
</tag-filter>
</div>

<div class="is-columns">
<div class="is-column is-one-fifth">
<div>
<numeric-list-filter :id="'nlf'" :field="'num_hacks_joined'">
<template slot="header">
<h3 class="is-nlf-title">Number of Hacks Joined : </h3>
</template>
</numeric-list-filter>
</div>
<div class="is-column is-one-fifth">
<div>
<numeric-list-filter :id="'nlf'" :field="'num_hacks_joined'">
<template slot="header">
<h3 class="is-nlf-title">Number of Hacks Joined : </h3>
</template>
</numeric-list-filter>
</div>
</div>
<div class="is-column">
<div>
<searchbox :id="'searchbox'" :autofocus="true" :realtime="true" :timeout="200" :field="['keywords', 'handle', 'persona']" :placeholder="'Search by keyword'"></searchbox>
<search-datalist :id="'searchdatalist'" :realtime="true" :field="'keywords'" :suggestion="['keywords']">
<template slot="items" slot-scope="{ item, value }">
[[ value ]] [[ item._source.keywords ]]
</template>

<template slot="nosuggestion" slot-scope="{ value }">
Sorry, "[[ value ]]" doesn't exist... :(
</template>

<template slot="suggestions" slot-scope="{ suggestion }">
<span v-html="suggestion.highlight.first_name ? suggestion.highlight.first_name[0] : suggestion._source.first_name"></span>
<span v-html="suggestion.highlight.last_name ? suggestion.highlight.last_name[0] : suggestion._source.last_name"></span>
<span v-html="suggestion.highlight.handle ? suggestion.highlight.handle[0] : suggestion._source.handle"></span>
<span v-html="suggestion.highlight.persona ? suggestion.highlight.persona[0] : suggestion._source.persona"></span>
</template>
</search-datalist>

<div style="margin: 20px auto;width: 90%">
<search-button></search-button>
<reset-button :emptyHits="false"></reset-button>
</div>
<hits>
<template slot="hits" slot-scope="{ hits }">
<div class="is-score is-hits">
<strong v-if="hits.score === 0">No result found</strong>
<strong v-else-if="hits.score === 1">1 result found</strong>
<strong v-else-if="hits.score > 1">[[ hits.score ]] results found</strong>
</div>
<div v-for="item in hits.items" :item="item">
<div><strong>Identity (firstname, lastname) :</strong> ([[ item._source.first_name ]] [[ item._source.last_name ]] )</div>
</div>
</template>
</hits>

<paginate :previousText="'&#x2B9C; Previous page'" :nextText="'Next page &#x2B9E;'" :size="10"></paginate>
</div>
<div class="is-column">
<div>
<searchbox :id="'searchbox'" :autofocus="true" :realtime="true" :timeout="200" :field="['keywords', 'handle', 'persona']" :placeholder="'Search by keyword'"></searchbox>
<search-datalist :id="'searchdatalist'" :realtime="true" :field="'keywords'" :suggestion="['keywords']">
<template slot="items" slot-scope="{ item, value }">
[[ value ]] [[ item._source.keywords ]]
</template>

<template slot="nosuggestion" slot-scope="{ value }">
Sorry, "[[ value ]]" doesn't exist... :(
</template>

<template slot="suggestions" slot-scope="{ suggestion }">
<span v-html="suggestion.highlight.first_name ? suggestion.highlight.first_name[0] : suggestion._source.first_name"></span>
<span v-html="suggestion.highlight.last_name ? suggestion.highlight.last_name[0] : suggestion._source.last_name"></span>
<span v-html="suggestion.highlight.handle ? suggestion.highlight.handle[0] : suggestion._source.handle"></span>
<span v-html="suggestion.highlight.persona ? suggestion.highlight.persona[0] : suggestion._source.persona"></span>
</template>
</search-datalist>

<div style="margin: 20px auto;width: 90%">
<search-button></search-button>
<reset-button :emptyHits="false"></reset-button>
</div>
<hits>
<template slot="hits" slot-scope="{ hits }">
<div class="is-score is-hits">
<strong v-if="hits.score === 0">No result found</strong>
<strong v-else-if="hits.score === 1">1 result found</strong>
<strong v-else-if="hits.score > 1">[[ hits.score ]] results found</strong>
</div>
<div v-for="item in hits.items" :item="item">
<div><strong>Identity (firstname, lastname) :</strong> ([[ item._source.first_name ]] [[ item._source.last_name ]] )</div>
</div>
</template>
</hits>

<paginate :previousText="'&#x2B9C; Previous page'" :nextText="'Next page &#x2B9E;'" :size="10"></paginate>
</div>
</div>
</div>
</div>
</section>
</section>
</div>

<script type="text/x-template" id="select2-template">
Expand All @@ -154,7 +155,7 @@ <h3 class="is-nlf-title">Number of Hacks Joined : </h3>

{% csrf_token %}
{% include 'shared/analytics.html' %}
{% include 'shared/footer_scripts.html' %}
{% include 'shared/footer_scripts.html' with slim=1 %}
{% include 'shared/footer.html' %}
<script src="https://cdn.jsdelivr.net/npm/[email protected]/innersearch.min.js"></script>

Expand Down
8 changes: 5 additions & 3 deletions app/app/templates/shared/tip_dependancies.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
{% endcomment %}
{% load static %}
<script src="{% static "v2/js/tokens.js" %}"></script>
{% load static compress %}

<script src="/dynamic/js/tokens_dynamic.js"></script>
<script src="{% static "v2/js/lib/ipfs-api.js" %}"></script>
{% compress js file tip_dependancies %}
<script src="{% static "v2/js/tokens.js" %}"></script>
<script src="{% static "v2/js/ipfs.js" %}"></script>
<script src="{% static "v2/js/lib/secrets.min.js" %}"></script>
<script src="{% static "v2/js/ethereumjs-accounts.js" %}"></script>
<script src="{% static "onepager/js/send.js" %}"></script>
<script src="{% static "v2/js/truncate-hash.js" %}"></script>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this not needed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is already loaded on footer_scripts

{% endcompress %}
16 changes: 8 additions & 8 deletions app/assets/landingpage/animation_floating.scss
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@

.floating{
animation: floating 3s ease-in-out infinite;
animation: floating 3s ease-in-out infinite;
}

.floating2{
animation: floating2 3s ease-in-out infinite;
animation: floating2 3s ease-in-out infinite;
}

@keyframes floating {
0% { transform: translate(0, 0px); }
50% { transform: translate(0, 15px); }
100% { transform: translate(0, 0px); }
0% { transform: translate(0, 0px); }
50% { transform: translate(0, 15px); }
100% { transform: translate(0, 0px); }
}

@keyframes floating2 {
0% { transform: translate(0, 15px); }
50% { transform: translate(0, 0px); }
100% { transform: translate(0, 15px); }
0% { transform: translate(0, 15px); }
50% { transform: translate(0, 0px); }
100% { transform: translate(0, 15px); }
}
24 changes: 12 additions & 12 deletions app/assets/landingpage/breakpoints.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ $phone: "(max-width: 688px)";


@media #{$desktop} {
:root{
--device: "desktop";
}
:root{
--device: "desktop";
}
}

@media #{$laptop} {
:root{
--device: "laptop";
}
:root{
--device: "laptop";
}
}

@media #{$tablet} {
:root{
--device: "tablet";
}
:root{
--device: "tablet";
}
}

@media #{$phone} {
:root{
--device: "phone";
}
:root{
--device: "phone";
}
}


Expand Down
Loading