Skip to content

Commit 628e794

Browse files
committed
quick and dirty redesign
1 parent 4fd3117 commit 628e794

33 files changed

+1841
-2354
lines changed

config/universal.py

-16
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import urllib.parse
22

3-
43
from . import constants
54

6-
75
BASE_URL = 'https://' + constants.HOST if constants.HTTPS else 'http://' + constants.HOST
86

97
BUSINESS_NAME = 'Origin Protocol'
@@ -22,19 +20,5 @@
2220
VK_URL = 'https://vk.com/originprotocol'
2321
TWITTER_URL = 'https://twitter.com/originprotocol'
2422
FACEBOOK_URL = 'https://www.facebook.com/originprotocol'
25-
IOS_URL = 'https://itunes.apple.com/app/origin-wallet/id1446091928'
26-
ANDROID_URL = 'https://play.google.com/store/apps/details?id=com.origincatcher'
27-
APK_URL = '/static/files/origin-marketplace-0.23.16.apk'
28-
DAPP_URL = 'https://www.shoporigin.com'
29-
LUPE_URL = 'https://nft.lupefiasco.com'
30-
REWARDS_URL = 'https://www.shoporigin.com/#/welcome'
31-
FAUCET_URL = 'https://faucet.originprotocol.com'
32-
33-
DEFAULT_SHARE_MSG = urllib.parse.quote('Check out ' + BUSINESS_NAME + ', an exciting blockchain project that will decentralize the sharing economy.')
34-
DEFAULT_PARTICLE_ICON = constants.DEFAULT_PARTICLE_ICON
35-
36-
CHROME_EXTENSION_URL = constants.CHROME_EXTENSION_URL
37-
FIREFOX_EXTENSION_URL = constants.FIREFOX_EXTENSION_URL
38-
DSHOP_DEMO_FORM = constants.DSHOP_DEMO_FORM
3923

4024
STAKE_URL = constants.STAKE_URL

dump.rdb

2.96 KB
Binary file not shown.

logic/scripts/drops.py

-83
This file was deleted.

logic/scripts/fetch_social_stats.py

+18-16
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,15 @@ def get_discord_members():
162162
"json": False,
163163
}
164164
)
165-
sites.append(
166-
{
167-
"name": "Facebook",
168-
"url": "https://www.facebook.com/originprotocol",
169-
"selector": ".clearfix ._ikh div._4bl9",
170-
"json": False,
171-
}
172-
)
165+
# TODO broken, needs fixing
166+
# sites.append(
167+
# {
168+
# "name": "Facebook",
169+
# "url": "https://www.facebook.com/originprotocol",
170+
# "selector": ".clearfix ._ikh div._4bl9",
171+
# "json": False,
172+
# }
173+
# )
173174
sites.append(
174175
{
175176
"name": "Naver",
@@ -178,14 +179,15 @@ def get_discord_members():
178179
"json": False,
179180
}
180181
)
181-
sites.append(
182-
{
183-
"name": "KaKao plus friends",
184-
"url": "https://pf.kakao.com/_qTxeYC",
185-
"selector": "span.num_count",
186-
"json": False,
187-
}
188-
)
182+
# TODO broken, needs fixing
183+
# sites.append(
184+
# {
185+
# "name": "KaKao plus friends",
186+
# "url": "https://pf.kakao.com/_qTxeYC",
187+
# "selector": "span.num_count",
188+
# "json": False,
189+
# }
190+
# )
189191
sites.append(
190192
{
191193
"name": "Tencent/QQ video",

main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
extra_files=None
4545

4646
app.debug = constants.DEBUG
47-
port = int(os.environ.get("PORT", 5000))
47+
port = int(os.environ.get("PORT", 5002))
4848
app.run(
4949
host='0.0.0.0',
5050
port=port,

static/css/pages/dashboard.css

+58-4
Original file line numberDiff line numberDiff line change
@@ -241,9 +241,9 @@
241241
margin-right: 20px;
242242
}
243243

244-
.dashboard-page .exchanges-section {
244+
/* .dashboard-page .exchanges-section {
245245
padding: 60px 20px 70px 20px;
246-
}
246+
} */
247247

248248
.dashboard-page .exchanges-section h3 {
249249
margin-bottom: 30px;
@@ -317,7 +317,7 @@
317317
background-position-y: top;
318318
background-position-x: inherit;
319319
background-repeat: repeat-y;
320-
margin: 60px 0px;
320+
margin-bottom: 60px;
321321
background-color: #007cff;
322322
padding: 20px 30px;
323323
border-radius: 10px;
@@ -350,13 +350,14 @@
350350
color: #dbe6eb;
351351
}
352352

353-
.stake-banner-blue .btn {
353+
.stake-banner-blue a.btn {
354354
width: 210px;
355355
margin: 0px;
356356
padding: 7px;
357357
font-size: 18px;
358358
font-weight: bold;
359359
background-color: #061d2a;
360+
color:#fff;
360361
}
361362

362363
.stake-banner-blue .btn:hover {
@@ -400,4 +401,57 @@
400401
display: grid;
401402
grid-template-columns: repeat(2, 0fr);
402403
}
404+
}
405+
406+
407+
408+
409+
410+
.dashboard-page .vc-section.vc-firms {
411+
background-image: url('/static/img/investors/map.svg');
412+
background-size: contain;
413+
background-repeat: no-repeat;
414+
}
415+
416+
.dashboard-page .vc-section.vc-firms .container {
417+
padding: 0 7rem 5rem 7rem;
418+
}
419+
420+
.dashboard-page .vc-section .country-name {
421+
font-size: 1rem;
422+
margin-bottom: 0.5rem;
423+
font-weight: normal;
424+
text-align: left;
425+
}
426+
427+
.dashboard-page .vc-section .vc-firm + .country-name {
428+
margin-top: 2rem;
429+
}
430+
431+
.dashboard-page .vc-section .vc-firm {
432+
display: flex;
433+
margin-bottom: 0.5rem;
434+
align-items: center;
435+
}
436+
437+
.dashboard-page .vc-firm.smaller img {
438+
flex: 38px 0 0;
439+
width: 38px;
440+
height: 38px;
441+
margin-right: 12px;
442+
}
443+
444+
.dashboard-page .vc-firm img {
445+
flex: 45px 0 0;
446+
width: 45px;
447+
height: 45px;
448+
object-fit: contain;
449+
margin-right: 1rem;
450+
}
451+
452+
.dashboard-page .vc-firm .firm-name {
453+
flex: 1;
454+
font-size: 1.125rem;
455+
color: #fff;
456+
font-weight: normal;
403457
}

static/css/pages/landing.css

+53
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,22 @@
208208
text-align: center;
209209
}
210210

211+
.white-border-button {
212+
font-size: 1.125rem;
213+
max-width: 350px;
214+
border-radius: 26px;
215+
border: solid 1px var(--white);
216+
padding: 12px 40px;
217+
color: white;
218+
background-color: transparent;
219+
text-align: center;
220+
font-weight: normal;
221+
}
222+
.white-border-button:hover {
223+
color: white;
224+
background-color: rgba(255, 255, 255, 0.15);
225+
}
226+
211227
.buy-sell-block .marketplace .button:hover {
212228
background-color: #036ddd;
213229
cursor: pointer;
@@ -830,4 +846,41 @@
830846
.landing-page .prod-image {
831847
max-width: 100%;
832848
}
849+
}
850+
851+
852+
.landing-page .stats-widget {
853+
margin: 0 0 0 20px;
854+
padding: 20px 20px;
855+
border-left: 1px solid #399aff;
856+
}
857+
858+
.landing-page .stats-widget img {
859+
object-fit: contain;
860+
height: 24px;
861+
width: 24px;
862+
margin-bottom: 16px;
863+
}
864+
865+
.landing-page .stats-widget .stats-label {
866+
font-family: Poppins;
867+
font-size: 16px;
868+
font-weight: 500;
869+
color: var(--white);
870+
}
871+
872+
.landing-page .stats-widget .stats-value {
873+
font-family: Poppins;
874+
font-size: 24px;
875+
font-weight: 500;
876+
color: var(--white);
877+
878+
display: flex;
879+
align-items: flex-end;
880+
}
881+
882+
.landing-page .stats-widget .stats-value .ogn-label {
883+
font-size: 14px;
884+
margin-bottom: 5px;
885+
margin-left: 5px;
833886
}

static/img/origin-story-logo.png

3.18 KB
Loading

static/img/origin-story-logo@2x.png

2.48 KB
Loading

static/img/origin-story-logo@3x.png

3.64 KB
Loading
196 KB
Loading
529 KB
Loading
529 KB
Loading

static/img/product/leaderboard.png

-138 KB
Loading

static/img/product/origin-stack.png

81.4 KB
Loading
-127 KB
Loading
-373 KB
Loading

static/js/script.js

+8-14
Original file line numberDiff line numberDiff line change
@@ -757,7 +757,7 @@ $(function () {
757757

758758
var hardcodedStats = [{
759759
name: "Discord",
760-
subscribed_count: 9177
760+
subscribed_count: 10981
761761
},
762762
{
763763
name: "Wechat",
@@ -780,6 +780,12 @@ $(function () {
780780
link: "https://discordapp.com/invite/jyxpUSe",
781781
regionSpecific: false
782782
},
783+
Facebook: {
784+
img: "/static/img/about/facebook.svg",
785+
countLabel: "followers",
786+
link: "https://www.facebook.com/originprotocol",
787+
regionSpecific: false
788+
},
783789
Telegram: {
784790
img: "/static/img/about/telegram.svg",
785791
countLabel: "members",
@@ -834,18 +840,6 @@ $(function () {
834840
qr: "/static/img/origin-weibo-qr.png",
835841
regionSpecific: true
836842
},
837-
Vk: {
838-
img: "/static/img/about/russia-vk.svg",
839-
countLabel: "subscribers",
840-
link: "https://vk.com/originprotocol",
841-
regionSpecific: true
842-
},
843-
Facebook: {
844-
img: "/static/img/about/facebook.svg",
845-
countLabel: "followers",
846-
link: "https://www.facebook.com/originprotocol",
847-
regionSpecific: false
848-
},
849843
Twitter: {
850844
img: "/static/img/about/twitter.svg",
851845
countLabel: "followers",
@@ -881,7 +875,7 @@ $(function () {
881875
countLabel: "followers",
882876
link: "https://blockfolio.com/coin/OGN",
883877
regionSpecific: false
884-
}
878+
},
885879
};
886880

887881
function createElementFromHTML(htmlString) {

0 commit comments

Comments
 (0)