-
Notifications
You must be signed in to change notification settings - Fork 14
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 Homepage and Mobile Website #12
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…ctly centered. Created a header background that is wider than the header and hides content when scrolling. Took out margin-left in content, because it is now correctly centered(fixed from body)
It checks if the User Agent is one of a mobile device and then redirects accordingly User Agent Checker taken from http://detectmobilebrowsers.com/ (open domain code) Some CSS changes Added a new homepage: main_page.html Added test mobile page: mobile.html
New CSS rules for main page (for testing so far)
Pointers to the mobile templates in main.py
Code Cleanup New CSS for mobile sites
White Hackerdojo Text New Navbar for Desktop Webpage, used the same as the mobile one Commented out some styles in hackerdojo.css
Icon as new file: hacker-dojo-icon.png Removed some CSS from bootstrap.min.css
…yle of the website Config of how the smaller file was made in config-small.json
Made contentwrapper margins 5% both sides and added bottom margin of 10 px
main page: pop in bottom join new CSS for join added script for pop in and pop out to base.html (but async loaded) added margins to pages directly
main_page(not done for mobile, because it is only plaintext): .page-(number) div is for background .page-(number) .content div is for text and other objects inside
Moved some code outside the for loop to improve performace Only events in a range are between todays date and a further date are added, and when events are outside that range, the programm terminates
…file on remote datastore main.py: imported urljoin to join location of server and name of file created storage_path and fullfilename variables; they are separate because storage_path might change created class UpdateHandler, which is used by the cronjob to update events.json it tries to get the file and write it to the datastore location using urlretrieve if it does not work, it logs an error changed and added comments created function that tries to get file from the storage location, if it does not work gets it from events.hackerdojo.com fixed parantheses on elif statement
main.py: imported cloudstorage 2 different links for accessing cloud storage files, one is for development, the other for deployment UpdateHandler now works with google cloud storage
main.py: fullfileurl now takes two parameters, incase it should load a file in a different file name created eventlist def, which makes for cleaner code and can be used for the cron commented some ideas for saving the actual finished list from eventlist def hackerdojo.css: changed background for main pages mobile.css: added css from hackerdojo.css so that the table looks better base.html: uncommented jquery code, because it is needed to show the current page in the navbar main_mobile.html: added code so that it strikes through canceled events
cleaned up some of the comments mobile templates: added image as first page moved visit us to page two bootstrap-small-cleaned.css: a.homepage-blurb, a.read-more are in line under paragraph text added height for sections one through three bootstrap-small-mobile.css: sections one through three are reactive to screen size hackerdojo.css: a tags are now all on the same height different top margin for carousel (slide) removed section four mobile.css: added sections 1,2,3,5 added img style
martinlschumann
force-pushed
the
new_layout
branch
from
November 19, 2014 19:15
e25f1f8
to
2da6cd8
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Regarding Google Cloud Storage:
It will have to be activated:
https://developers.google.com/storage/docs/signup#activate
The url to activate it should be:
https://console.developers.google.com/project/apps~hd-website/apiui/api/storage_component
I have also include readmes on how to edit the html for the main page and the main mobile page
Also Cron jobs have to be enable for it to save the events.json to cloud storage