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

Grants round 6 integration branch #6819

Merged
merged 202 commits into from
Jun 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
1ebd037
updating r6 calculations, ripping out stuff, adding in last round com…
frankchen07 Jun 3, 2020
d9d20c7
removed unused code
frankchen07 Jun 3, 2020
ea13ec8
add pulling the correct current and previous CLR data
frankchen07 Jun 5, 2020
f2b0fb8
clr.py
frankchen07 Jun 7, 2020
0b47e18
Wire up an Add To Cart button on the grant page
apbendi May 13, 2020
8f14c72
Pass various grant details to frontend via hidden form inputs
apbendi May 14, 2020
423d285
Add grant data to local storage button is pressed
apbendi May 14, 2020
29847de
Add /grants/cart route
mds1 May 14, 2020
08918ee
Working vue component that shows value of a variable
mds1 May 14, 2020
da46c3b
Setup heading section
mds1 May 14, 2020
5c8e3c4
Initial setup of grants cart layout
mds1 May 14, 2020
5457fd4
Various tweaks and additions to the cart page
mds1 May 15, 2020
f2fef8d
Update cart header/footer content
mds1 May 15, 2020
8565fb9
Cart now reads data from local storage
mds1 May 19, 2020
3ff9575
Add input fields that user can adjust
mds1 May 20, 2020
6f71f6e
Add total and summary sections
mds1 May 20, 2020
30af51d
Add button to fund grants in cart
mds1 May 20, 2020
71eae51
Change default amount to 1 DAI
mds1 May 20, 2020
0439044
Change how recurring donations are handled/displayed, fix UI bug
mds1 May 20, 2020
8d6580a
Add ability to clear cart or remove one item
mds1 May 20, 2020
cc43f58
Add watcher to sync Vue state with localStorage, small fixes/cleanup
mds1 May 20, 2020
610d8f1
Initial Changes to Grant Details UI
apbendi May 19, 2020
feb506b
Move Grant info to right of logo on detail screen
apbendi May 20, 2020
6c345d8
Responsive tweaks for the updated grant detail screen
apbendi May 21, 2020
b4cbc84
Implement Side Cart UI mechanics with dummy data
apbendi May 21, 2020
82cb676
Render side cart rows based on data actually in cart
apbendi May 22, 2020
b68f831
Implement delete from side cart functionality
apbendi May 22, 2020
65b54ef
Update donation amount when edited in side cart
apbendi May 22, 2020
65ed8ab
Update currency when changed in side cart
apbendi May 22, 2020
28f15ef
Add checkout button to side cart
apbendi May 22, 2020
45fccc1
Capitlize butotn text; widen amount input
apbendi May 22, 2020
165b422
Fix minor display bug on grant details
apbendi May 22, 2020
9345988
add sidebar_search.html
sebastiantf May 25, 2020
6cd1f59
modify search field
sebastiantf May 25, 2020
b61f48a
get and pass all subcategories to template
sebastiantf May 25, 2020
6415c28
create filter: get_categories_from_list
sebastiantf May 25, 2020
2cce0e1
replace old with new nav in sidebar_search.html
sebastiantf May 25, 2020
0e7b55c
create, use updateMultipleParams for sidebar nav
sebastiantf May 25, 2020
96d1ce7
misc style changes for sidebar
sebastiantf May 25, 2020
b120812
z-index for sidebar search cancel button
sebastiantf May 25, 2020
5e18894
expand, minimize for sidebar on mobile
sebastiantf May 25, 2020
cdbd60a
remove border-bottom for sidebar nav, a.selected
sebastiantf May 25, 2020
5538e8b
hide original navbar and subnav:
sebastiantf May 25, 2020
0b0a8ea
style changes for Sort By:
sebastiantf May 25, 2020
61518ab
modify landing_clr design
sebastiantf May 25, 2020
fc15228
add info-box
sebastiantf May 25, 2020
ce12944
add cart-btn to info-box
sebastiantf May 25, 2020
81d9ab6
add cart-btn in Grant card
sebastiantf May 25, 2020
1e1cc38
add Do You Know info-box in sidebar
sebastiantf May 25, 2020
9c93d3e
misc style changes
sebastiantf May 25, 2020
221afc0
remove filter-tags
sebastiantf May 25, 2020
557403f
add TODOs
sebastiantf May 25, 2020
e380e21
Minor style adjustments on grant details page
apbendi Jun 2, 2020
8eb38fc
Implement Responsive 'Side Cart'
apbendi Jun 2, 2020
d2ff306
Improved responsiveness on Grant Details page w/ side cart open
apbendi Jun 3, 2020
c210579
add extra links to sidebar
sebastiantf Jun 4, 2020
a63c018
Prepare and send transaction data
mds1 Jun 2, 2020
a5222ca
Setup placeholder for token-selection dropdown
mds1 Jun 3, 2020
2a6876d
Add token approvals, use estimateGas on donate() call
mds1 Jun 3, 2020
06f3e7e
Get ETH donations working with test donation address
mds1 Jun 4, 2020
008bf15
Update Rinkeby DAI address to use the official Maker address
mds1 Jun 4, 2020
fdaa852
Working initial version of the full checkout flow
mds1 Jun 4, 2020
66b39f5
Add comments, remove redundant code
mds1 Jun 4, 2020
618f14a
Small changes and improvements
mds1 Jun 4, 2020
fc3fae4
Update tokens to use global token_abi instead of local version
mds1 Jun 4, 2020
e5fb631
Update dev grant address to recycle rinkeby ETH/DAI
mds1 Jun 4, 2020
5c1cbfc
Use economy token model for token dropdown
mds1 Jun 4, 2020
03a14e0
Add error handling during checkout
mds1 Jun 5, 2020
06ab31c
Use BN for math, fix destination address, cleanup comments
mds1 Jun 5, 2020
7d13344
Fix indentation of grants index template
apbendi Jun 4, 2020
0eeec9f
Add to cart functionality for Grant Details cards
apbendi Jun 4, 2020
18490ca
Implement the side cart on Grant List page
apbendi Jun 4, 2020
a070d71
Populate tokens in side cart from global list of tokens
apbendi Jun 5, 2020
371ed3c
Filter side cart token options by what the grantee accepts
apbendi Jun 5, 2020
0f34580
Defensive check for invalid data stored in grants_cart localStorage
apbendi Jun 5, 2020
14e431e
Don't show Add To Cart for team grants on list page
apbendi Jun 6, 2020
d8306c6
Uncomment kudos CSS and avoid unneeded classes on grants list
apbendi Jun 6, 2020
8176b25
Remove unneeded div tag
apbendi Jun 6, 2020
9c62474
Make gitcoin donation subtractive (was additive)
mds1 Jun 5, 2020
87b3021
Allow gitcoin donation factor to be adjusted
mds1 Jun 5, 2020
98fd75c
Modularize cart logic
mds1 Jun 6, 2020
f46411e
Add gas estimate heuristic and setup for improved tx flow
mds1 Jun 8, 2020
68f1327
Only show grant-approved tokens in cart token dropdown
mds1 Jun 8, 2020
363f029
Change approvals from max uint to only the required amount
mds1 Jun 8, 2020
08c0a95
Improve UX of MetaMask checkout flow
mds1 Jun 8, 2020
86b8c12
Update cart to display max possible number of transactions
mds1 Jun 8, 2020
f2328b7
add /3 calculation, add proper var names, add separate db call and po…
frankchen07 Jun 8, 2020
ffe3986
Remove type column
mds1 Jun 8, 2020
a53ea06
Require GitHub login to checkout
mds1 Jun 9, 2020
1f7fde7
Support hide_wallet_address
mds1 Jun 9, 2020
ce8a4ce
Merge remote-tracking branch 'upstream/master' into frank-stable
thelostone-mc Jun 9, 2020
e741ec5
chore: cleanup
thelostone-mc Jun 9, 2020
b3d2ce8
Workable Scrolling Mechanics For Side Cart
apbendi Jun 8, 2020
6d2ae22
Add Link To Old Fund Page For Recurring
apbendi Jun 9, 2020
54eebfa
Refactor cart data access and add cart navigation item
apbendi Jun 9, 2020
db7b118
Use static cart methods when interacting with the side cart
apbendi Jun 9, 2020
95ba25b
Use static cart methods when interacting with the cart page
apbendi Jun 9, 2020
74a5dd8
Improve mobile formatting
mds1 Jun 9, 2020
cd25aaf
Add support for comments
mds1 Jun 9, 2020
90865f4
Add sms verification process
zoek1 Jun 9, 2020
d57981b
inverted logic
owocki Jun 10, 2020
5feb545
Merge branch 'ScopeLift/bulk-grants' into grants-round-6-integration
owocki Jun 10, 2020
fb424e0
FIx logic error on phone type validation
zoek1 Jun 10, 2020
d5c3af1
crypto for change categories
owocki Jun 10, 2020
693c470
cart title
owocki Jun 10, 2020
393fc4d
grants stuff
owocki Jun 10, 2020
99f2374
do not track
owocki Jun 10, 2020
7fe70e8
adds ability to re-contribute to all the grants ive contributed to in…
owocki Jun 10, 2020
7497a2b
renames media to community
owocki Jun 10, 2020
407556e
make community round media round, remove negative voting, move recurr…
owocki Jun 10, 2020
0d39a10
Add validation avoid duplicated phone numbers
zoek1 Jun 10, 2020
0bf2d57
Delete unused module
zoek1 Jun 10, 2020
11205f7
Ensure header cart shows regardless of trailing slash in path
apbendi Jun 10, 2020
772689c
Use a delegated event handler to ensure add to cart works on infinite…
apbendi Jun 10, 2020
22005ea
Configure working POST requests
mds1 Jun 9, 2020
34a6355
Update cart header section formatting
mds1 Jun 10, 2020
22ba880
Add success alert and redirect after checkout
mds1 Jun 10, 2020
e533f91
Remove donations of zero value
mds1 Jun 10, 2020
628183f
Update grant image on header
mds1 Jun 10, 2020
85bcaaa
Block donations if user has insufficient ETH/token balances
mds1 Jun 10, 2020
d7d8a88
Clear cart after checkout
mds1 Jun 10, 2020
46c00c0
Remove console.logs, auto-format html, small CSS updates
mds1 Jun 10, 2020
22b94d7
Checkout bot now updates based on gitcoin donation percentage
mds1 Jun 10, 2020
73013c9
UX tweaks
mds1 Jun 10, 2020
f1e32cf
Ensure post-grant banner has right number of grants + redirect to Rin…
apbendi Jun 11, 2020
45afc3a
modal after checkout
owocki Jun 10, 2020
09be68d
adds ability to bulk add to cart a bunch of grants
owocki Jun 10, 2020
bffc696
https://github.com/gitcoinco/web/issues/6318
owocki Jun 11, 2020
e333d06
setup web preview url
sebastiantf Jun 5, 2020
74e5fc1
implement render_grant_recontribute
sebastiantf Jun 5, 2020
972104b
build template for grant_recontribute_email
sebastiantf Jun 5, 2020
6e1ed3b
management command for grant_recontribute_email
sebastiantf Jun 5, 2020
7a4ef6c
change #preferred_payout a color to blue
sebastiantf Jun 11, 2020
b794c2d
change match_pool to 175k
sebastiantf Jun 11, 2020
d387cfb
add bulk_add_url
sebastiantf Jun 11, 2020
daef9d8
updates from thursday standup
owocki Jun 11, 2020
d8af62e
Final working POST request implementation
mds1 Jun 11, 2020
65564b1
Remove unused scripts from cart-vue.html
mds1 Jun 11, 2020
beb70c0
Configure hyperlink for cart 'Read how this works' text
mds1 Jun 11, 2020
06e18e2
Remove link to recurring funding page
apbendi Jun 11, 2020
bcbd187
Expand width of activity feed on grant detail page
apbendi Jun 11, 2020
2b901b6
Merge remote-tracking branch 'ScopeLift/bulk-grants' into grants-roun…
owocki Jun 11, 2020
0918870
Merge remote-tracking branch 'upstream/grants-round-6-integration' in…
mds1 Jun 11, 2020
91806f9
fixes bugs with merging master into integration-to-master
owocki Jun 11, 2020
57c3c3c
a handful of small tweaks, fund.js/fund.html removed, added esc bindi…
owocki Jun 11, 2020
15d85f5
re-add cart
owocki Jun 11, 2020
9ad9cba
make fix, cart login fix
owocki Jun 11, 2020
ded7bfa
allows anyone to post a grant without having to pay gas fees
owocki Jun 10, 2020
e76f9b4
method that says iff recurring funding is supported
owocki Jun 10, 2020
48ee68d
Update GRANTS.md for round 6
mds1 Jun 11, 2020
6368cfd
Dynamic gitcoin contribution value, center header img, fix syntax error
mds1 Jun 11, 2020
1fab057
Various small cart improvements:
mds1 Jun 12, 2020
91b8180
Fix image height for Safari, cart now defaults to mainnet
mds1 Jun 12, 2020
0c5eca7
Prompt user to login with web3 at checkout if necessary
mds1 Jun 12, 2020
ddce902
Fix syntax
mds1 Jun 12, 2020
41193f8
resolve conflicts
thelostone-mc Jun 12, 2020
629bdc8
Add salt for passwords and fix display modal
zoek1 Jun 12, 2020
6d42848
Remove logs
zoek1 Jun 12, 2020
3c9431c
fix error
thelostone-mc Jun 12, 2020
9aa4c98
create merge migration
thelostone-mc Jun 12, 2020
735bd5e
add in changes for change + matic grants
thelostone-mc Jun 12, 2020
22be481
Clean migration for sms
zoek1 Jun 12, 2020
1a616ee
fix broken CLR
thelostone-mc Jun 12, 2020
561cc2f
remove -ve contribution text
thelostone-mc Jun 12, 2020
c2c469d
fix up indentation
thelostone-mc Jun 12, 2020
4be022b
indent side-cart.html
thelostone-mc Jun 12, 2020
0fe0e8e
Update clr.py
thelostone-mc Jun 12, 2020
bc6a823
Update crontab
thelostone-mc Jun 12, 2020
e470cdf
fix lint
thelostone-mc Jun 12, 2020
86fe35e
syntax
owocki Jun 12, 2020
ce5a194
fixes the bulk checkout gbug
owocki Jun 12, 2020
33875a9
Initial working implementation of showing CLR match in cart
mds1 Jun 12, 2020
0a33a2e
Fix bool comparation and add verification link
zoek1 Jun 12, 2020
da90d05
Merge pull request #6839 from zoek1/fix/grants-salt-and-modal
owocki Jun 12, 2020
fbce992
Merge remote-tracking branch 'ScopeLift/various-updates' into grants-…
owocki Jun 12, 2020
197dae4
Merge branch 'kevin/validate_grants_txns' into grants-round-6-integra…
owocki Jun 12, 2020
0e84b30
Merge remote-tracking branch 'sebastianf/recontribute-grants-email' i…
owocki Jun 12, 2020
76deabb
Cart CLR estimate now accounts for token selection
mds1 Jun 12, 2020
d514693
Merge pull request #6843 from ScopeLift/cart-clr-estimate
owocki Jun 12, 2020
d62104e
Merge remote-tracking branch 'origin/frank-stable' into grants-round-…
owocki Jun 12, 2020
e817fbc
Merge branch 'grants-round-6-integration' of github.com:gitcoinco/web…
owocki Jun 12, 2020
4be7578
template issue
owocki Jun 12, 2020
69c9071
template issue
owocki Jun 12, 2020
a7c3cc9
validation issues
owocki Jun 12, 2020
329702b
make fix
owocki Jun 12, 2020
d25a82c
Merge branch 'kevin/privacy' into grants-round-6-integration
owocki Jun 12, 2020
83a3810
missing migration
owocki Jun 12, 2020
5823d76
Fix display modal when use click the link
zoek1 Jun 12, 2020
cb15559
offline verification
owocki Jun 12, 2020
2796833
clr DRY + bugfix
owocki Jun 12, 2020
317faa4
Merge pull request #6844 from zoek1/fix/verif-modal
owocki Jun 12, 2020
a06538a
fixes https://github.com/ScopeLift/gitcoin-web/issues/81
owocki Jun 12, 2020
0abb49c
fix for cart
owocki Jun 12, 2020
0bff1b9
linter
owocki Jun 12, 2020
6c3ac72
Fix computations for small numbers, show 0 CLR if not verified
mds1 Jun 12, 2020
cd5576f
Merge pull request #6845 from ScopeLift/cart-fixes
owocki Jun 12, 2020
982711e
fix for https://github.com/ScopeLift/gitcoin-web/issues/76 + adds plu…
owocki Jun 12, 2020
cc6831c
make phone number contributiosn optionaL
owocki Jun 12, 2020
7e2a725
copy updates
owocki Jun 12, 2020
84c480e
make fix
owocki Jun 15, 2020
ccc8286
make fix"
owocki Jun 15, 2020
dafb4e0
Merge branch 'master' into grants-round-6-integration
owocki Jun 15, 2020
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
1 change: 1 addition & 0 deletions app/app/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ def preprocess(request):
'is_alpha_tester': profile.is_alpha_tester if profile else False,
'persona_is_funder': profile.persona_is_funder if profile else False,
'persona_is_hunter': profile.persona_is_hunter if profile else False,
'pref_do_not_track': profile.pref_do_not_track if profile else False,
'profile_url': profile.url if profile else False,
'quests_live': settings.QUESTS_LIVE,
}
Expand Down
24,333 changes: 24,332 additions & 1 deletion app/app/fixtures/economy.json

Large diffs are not rendered by default.

520 changes: 257 additions & 263 deletions app/app/fixtures/grants.json

Large diffs are not rendered by default.

21 changes: 0 additions & 21 deletions app/app/redis_service.py

This file was deleted.

58 changes: 58 additions & 0 deletions app/app/services.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
import random

from django.conf import settings

from app.settings import account_sid, auth_token
from redis import Redis
from twilio.rest import Client


class RedisService:
__redis = None

def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super().__new__(cls)
return cls.instance

def __init__(self):
if not RedisService.__redis:
redis_url = settings.CELERY_BROKER_URL
RedisService.__redis = Redis.from_url(redis_url)

@property
def redis(self):
return RedisService.__redis


class TwilioService:
_client = None
_service = None

def __new__(cls):
if not hasattr(cls, 'instance'):
cls.instance = super().__new__(cls)
return cls.instance

def __create_connection(self):
redis = RedisService().redis

if not TwilioService._client:
TwilioService._client = Client(account_sid, auth_token)
friendly_names = settings.TWILIO_FRIENDLY_NAMES
friendly_name = random.choice(friendly_names)
TwilioService._service = TwilioService._client.verify.services.create(friendly_name=friendly_name)
redis.set(f"validation:twilio:sid", TwilioService._service.sid)

def __init__(self):
self.__create_connection()

@property
def lookups(self):
return TwilioService._client.lookups

@property
def verify(self):
redis = RedisService().redis
sid = redis.get(f"validation:twilio:sid")
return TwilioService._client.verify.services(sid.decode('utf-8'))
11 changes: 11 additions & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@
ALLOWED_HOSTS = env.list('ALLOWED_HOSTS', default=['*'])
CSRF_TRUSTED_ORIGINS = env.list('CSRF_TRUSTED_ORIGINS', default=['localhost'])

TWILIO_FRIENDLY_NAMES = env.list('TWILIO_FRIENDLY_NAMES', default=['VERIFY'])
Copy link
Contributor

Choose a reason for hiding this comment

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

This is for like caller id type info, right? Should we put something about Gitcoin here? And why are we randomly choosing one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for like caller id type info, right? Should we put something about Gitcoin here? And why are we randomly choosing one?

people were worreid about having "GItcoin" go through the SMS towers connected totheir KYC'd phone numbers, especially in authoritarian countries. so im shuffling the friendly call name in case that helps us obfuscate any pattern that an authoritarian would be trying to pick up. its not perfe[t, but its what we can do



# Notifications - Global on / off switch
ENABLE_NOTIFICATIONS_ON_NETWORK = env('ENABLE_NOTIFICATIONS_ON_NETWORK', default='mainnet')

Expand Down Expand Up @@ -830,3 +833,11 @@ def callback(request):


ELASTIC_SEARCH_URL = env('ELASTIC_SEARCH_URL', default='')

account_sid = env('TWILIO_ACCOUNT_SID', default='')
auth_token = env('TWILIO_AUTH_TOKEN', default='')

SMS_MAX_VERIFICATION_ATTEMPTS = env('SMS_MAX_VERIFICATION_ATTEMPTS', default=4)
SMS_COOLDOWN_IN_MINUTES = env('SMS_COOLDOWN_IN_MINUTES', default=1)
EMAIL_ACCOUNT_VALIDATION = env.bool('EMAIL_ACCOUNT_VALIDATION', default=False)
PHONE_SALT = env('PHONE_SALT', default='THIS_IS_INSECURE_CHANGE_THIS_PLEASE')
4 changes: 3 additions & 1 deletion app/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,8 @@
dashboard.views.funder_dashboard_bounty_info,
name='funder_dashboard_bounty_info'
),
re_path(r'^sms/request/?$', dashboard.views.send_verification, name='request_verification'),
re_path(r'^sms/validate/?$', dashboard.views.validate_verification, name='request_verification'),

# quests
re_path(r'^quests/?$', quests.views.index, name='quests_index'),
Expand Down Expand Up @@ -537,6 +539,7 @@
path('_administration/email/mention', retail.emails.mention, name='mention_email'),
path('_administration/email/wallpost', retail.emails.wallpost, name='wallpost_email'),
path('_administration/email/grant_update', retail.emails.grant_update, name='grant_update_email'),
path('_administration/email/grant_recontribute', retail.emails.grant_recontribute, name='grant_recontribute_email'),
path(
'_administration/email/new_bounty_acceptance',
retail.emails.new_bounty_acceptance,
Expand Down Expand Up @@ -677,7 +680,6 @@
# gitcoinbot
url(settings.GITHUB_EVENT_HOOK_URL, gitcoinbot.views.payload, name='payload'),
url(r'^impersonate/', include('impersonate.urls')),

url(r'^api/v0.1/hackathon_project/set_winner/', dashboard.views.set_project_winner, name='project_winner'),

# users
Expand Down
1 change: 1 addition & 0 deletions app/assets/onepager/js/send.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ $(document).ready(function() {
}
});
let addr = tokenNameToDetails(document.web3network, document.default_token)['addr'];

console.log(addr);
$('#token').val(addr).select2();
jQuery('#token').select2();
Expand Down
25 changes: 25 additions & 0 deletions app/assets/v2/css/gitcoin.css
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,31 @@ textarea.status-textarea {
cursor: pointer;
}

.info-box {
background: rgba(62, 0, 255, 0.05);
border: 1px solid rgba(62, 0, 255, 0.5);
box-sizing: border-box;
border-radius: 4px;
line-height: 16px;
}

.info-box.large {
width: 95%;
}

.cart-btn {
border-radius: 4px !important;
}

.cart-btn.large {
width: 100%;
padding: 10px 0;
}

input[type="search"]::-webkit-search-cancel-button {
z-index: 100;
}

.svg-animated-logo {
height: 42px;
max-width: 100%;
Expand Down
1 change: 1 addition & 0 deletions app/assets/v2/css/grants/card.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
border-radius: 5px;
display: flex;
flex-direction: column;
border: 1px solid #D3D3D3;
}

.grant-item__content {
Expand Down
108 changes: 108 additions & 0 deletions app/assets/v2/css/grants/cart.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
.container {
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
max-width: 800px;
}

.separator {
border-top-color: var(--text-light);
border-top-style: solid;
border-top-width: 1px;
display: block;
margin: 1rem 0 2rem;
}

.flex-container {
width: 100%;
display: -webkit-flex;
display: flex;
justify-content: space-between;
-webkit-justify-content: space-between;
align-items: center;
}

.flex-container-left {
width: 100%;
display: -webkit-flex;
display: flex;
justify-content: start;
-webkit-justify-content: start;
align-items: left;
}

.grant-header-row {
padding: 1rem 0rem;
width: 100%;
}

.grant-row {
width: 100%;
}

.grant-row-style {
background-color: var(--gc-grey);
border-color: var(--text-light);
border-radius: 5px;
border-style: solid;
border-width: 1px;
margin-bottom: 1rem;
padding: 1rem;
}

.cart-section {
padding: 0rem 1rem;
}

.grant-name {
font-weight: bold;
/* margin-left: 0.5rem; */
}

.clr-match-box {
background-color: rgba(15, 206, 124, 0.1);
border: 1px rgba(15, 206, 124, 0.1) solid;
border-radius: 5px;
padding: 0.5rem 1rem;
}

.black {
color: black;
}

.medium-dark-gray {
color: var(--gc-medium-dark-gray);
}

.darker-grey {
color: var(--gc-darker-grey);
}

.hyperlink {
color: var(--link-color);
cursor: pointer;
}

.modal-backdrop {
background-color: rgba(0, 0, 0, 0.8);
}

.vti__dropdown-item {
height: 50px;
display: flex;
align-items: center;
}

.vti__dropdown {
height: 50px;
outline: none;
}

.vue-tel-input input {
height: 50px;
}

.vti__dropdown-list.below {
top: 50px !important;
}
16 changes: 11 additions & 5 deletions app/assets/v2/css/grants/detail.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
border-color: transparent;
}

@media (min-width: 1200px) {
.grant-detail .container {
max-width: 85vw
}
.grant-detail .container {
max-width: 85vw;
display: block;
}

@media (min-width: 1200px) {
#editor.ql-bubble .ql-editor[contenteditable='false'] {
padding: 0;
}
Expand Down Expand Up @@ -214,6 +215,11 @@ textarea.editable {
max-height: 22rem;
}

.grant-side-cart {
background-color: white;
border-left: lightgray 2px solid;
}

.wallet-address {
font-size: 0.85rem;
}
Expand Down Expand Up @@ -322,4 +328,4 @@ textarea.editable {
.logo {
display: none;
}
}
}
19 changes: 0 additions & 19 deletions app/assets/v2/css/grants/fund.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,25 +152,6 @@
bottom: -1.2rem;
}

.nav {
text-align: center;
}

.nav-link {
border-right: 1px solid black;
border-top: 1px solid black;
border-left: 1px solid black;
margin-right: 10px;
}

.nav-link:visited {
color: black;
}

.nav-item.active {
text-decoration: underline;
}

.clr_estimate {
background-color: white;
border-radius: 5px;
Expand Down
Loading