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 Homepage and Mobile Website #12

Closed
wants to merge 73 commits into from

Conversation

martinlschumann
Copy link

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

Martin Schumann added 30 commits November 19, 2014 20:08
…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
Martin Schumann added 28 commits November 19, 2014 20:14
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
 used encode(utf-8) instead of str() because it breaks on non-ascii characters
 str() only used for id, which is an integer
changed var test in js to false
 changed that it only gets today plus next day of events
 changed except ValueError to generall except
app.yaml: changed version of app
static/style:
 changed navbar so that it resembles the old navbar
 made navbar look like hackerdojo navbar
 made left and right span responsive
main_page.html: moved stuff around on main page
base.html: changed single quotes to double quotes
main.py;
 moved the try function to EventToList
 used EventToList in mobile and desktop main page
 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant