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

Kevin/site perf2 #4800

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions app/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
env.read_env(str(root.path('app/.env'))) # reading .env file

DEBUG = env.bool('DEBUG', default=True)
TEMPLATE_DEBUG = env.bool('TEMPLATE_DEBUG', default=False)
ENV = env('ENV', default='local')
DEBUG_ENVS = env.list('DEBUG_ENVS', default=['local', 'stage', 'test'])
IS_DEBUG_ENV = ENV in DEBUG_ENVS
Expand Down Expand Up @@ -113,6 +114,8 @@
'revenue',
'event_ethdenver2019',
'inbox',
"compressor",
'statici18n',
]

MIDDLEWARE = [
Expand Down Expand Up @@ -150,6 +153,7 @@
'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages',
'app.context.preprocess', 'social_django.context_processors.backends',
'social_django.context_processors.login_redirect',
'django.template.context_processors.i18n',
],
},
}]
Expand Down Expand Up @@ -346,6 +350,13 @@
STATICFILES_LOCATION = env.str('STATICFILES_LOCATION', default='static')
MEDIAFILES_LOCATION = env.str('MEDIAFILES_LOCATION', default='media')

STATICFILES_FINDERS = (
'django.contrib.staticfiles.finders.FileSystemFinder',
'django.contrib.staticfiles.finders.AppDirectoriesFinder',
# other finders..
'compressor.finders.CompressorFinder',
)

if ENV in ['prod', 'stage']:
DEFAULT_FILE_STORAGE = env('DEFAULT_FILE_STORAGE', default='app.static_storage.MediaFileStorage')
THUMBNAIL_DEFAULT_STORAGE = DEFAULT_FILE_STORAGE
Expand Down Expand Up @@ -672,6 +683,13 @@

STABLE_COINS = ['DAI', 'USDT', 'TUSD']

from datetime import date, timedelta
tenyrs = date.today() + timedelta(days=365*10)
# Expires 10 years in the future at 8PM GMT
AWS_HEADERS = {
'Expires': tenyrs.strftime('%a, %d %b %Y 20:00:00 GMT')
}

# Silk Profiling and Performance Monitoring
ENABLE_SILK = env.bool('ENABLE_SILK', default=False)
if ENABLE_SILK:
Expand Down
1 change: 0 additions & 1 deletion app/assets/v2/css/gitcoin.css
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,6 @@ div.button-pink {
}

.footer__main {
background-image: url('/static/v2/images/footer.png');
thelostone-mc marked this conversation as resolved.
Show resolved Hide resolved
background-color: #0d023b;
background-size: contain;
background-position: bottom;
Expand Down
2 changes: 1 addition & 1 deletion app/assets/v2/css/home.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ img.play {
cursor: pointer;
--padding: 40px;
background-color: var(--gc-green-hover);
background-image: url('../images/home/bg-video-preview.svg');

background-position: 15% -20%;
background-size: 150% 150%;
background-repeat: no-repeat;
Expand Down
Binary file modified app/assets/v2/images/about/flywheel_2019.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion app/assets/v2/images/about/gitcoin_avatar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading