Giter VIP home page Giter VIP logo

www's Introduction

Sugar Labs web site

Aims

  • to announce our vision and mission,
  • to invite potential users of Sugar Labs software,
  • to advertise our free software and licensing approach,
  • to provide links to software downloads, and;
  • to invite potential developers to the source code we hold in trust.

Contributing

Content on the site; that is information about Sugar, Sugarizer, or Music Blocks, is way more important than the style or appearance.

Please concentrate on updating the content of the site, and not the style or appearance.

For your pull requests or issues to be taken seriously, you must be a user or developer of one of our software products; Sugar, Sugarizer, or Music Blocks.

History

The site was redesigned during Google Summer of Code in 2017, and then informally reviewed by untainted readers in Google Code-in 2017. Many issues were created then, but most did not have consensus. Most of the issues addressed style and appearance rather than the relevance or accuracy of the content. Since then, we have decided to concentrate on keeping the content updated.


GSOC 2017 redesigned "www.sugarlabs.org"

These notes were part of a project that has since been merged.

Introduction

This repository contains the code for the redesigned version of "www.sugarlabs.org". This repository code base was used for the development of the GSOC 2017 project Giving Sugar Labs Website a New Look under the organization Sugar Labs. The changes, made by Pericherla Seetarama Raju and overseen by Samson Goddy, Hrishi Patel, and Walter Bender during the 2017 GSOC period, can be viewed at #63. The work during GSOC was done in the repository https://github.com/geekrypter/sugarLabsWebsiteRedesign. A live preview of the website is hosted using Github pages and can be viewed at https://geekrypter.github.io/sugarLabsWebsiteRedesign/. The code uses the same Jekyll environment as that of the original website's code. Do check out the code!

Major Services

We have integrated three major features with the help of third party services:

  1. Website users tracking - We have used the Google Analytics service to track users on the website and get a more detailed analysis of the user's usage.
  2. Newsletter subscription through email - We have used the Mailchimp service to let users subscribe to our newsletters through their emails.

Feedback/Suggestions and Issues

Feedback/Suggestions are always welcome and do mention any issues found. They can be provided through the Issues section of this repository

Credits

License Information

The license information of all the dependencies/libraries used in the code can be found in the LicenseInformation.txt file in the root folder.

Usage of code snippets:

For a few parts of the code, I have used code snippets available online. The list of all the code snippets which I referred to are:

  1. CodePen-Martinvd
  2. Bootstrapious
  3. Bootsnipp
  4. W3schools
  5. Hongkiat
  6. Codepen-Zachsaffrin
  7. CodePen-Yewnork
  8. Fiddle
  9. Pixelflips

Base template:

Base template has been designed and developed by Themefisher. For a preview, check out this link - https://luminousrubyist.github.io/airspace-jekyll/

Code and Contribution

The code has been restructured, unnecessary code has been removed, comments were added wherever required, proper indentation was provided, and simple names were used which makes it a contributor-friendly codebase. So, hope on and contribute now!

How to run the code

Getting the code

  1. Fork this Repository.

  2. Clone your forked copy of the project.

git clone https://github.com/<your_user_name>/www.git
  1. Navigate to the project directory 📁.
cd www

Installation

Install Ruby and the Gem package manager (pre-installed in Mac OS X) and install jekyll and its related packages available in the Github hosted version by running, from this directory:

bundle install;

Running

Jekyll can run a local web server that rebuilds each time you save a page while editing (Execute the below command from root directory):

bundle exec jekyll serve --incremental;

Then open http://localhost:4000

Note

If some changes are not visible (after saving a page while editing), please restart the Jekyll local web server and reload http://localhost:4000.

Troubleshooting for Debian-based systems

You might try the following to prepare your dev environment on a Debian-based system:

Install Ruby and dependencies:

sudo apt-get install ruby-full build-essential zlib1g-dev

Tell BASH where to look when you run Ruby, while having an installation directory associated with your user account (not root):

echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Install Jekyll and Bundler (not through sudo apt)

gem install jekyll bundler

Ref: https://jekyllrb.com/docs/installation/ubuntu/

If you already installed Jekyll and Bundler via sudo apt, you may need to do the following:

PACKAGES="$(dpkg -l |grep jekyll|cut -d" " -f3|xargs )"
sudo apt remove --purge $PACKAGES
sudo apt autoremove
gem install jekyll jekyll-feed jekyll-gist jekyll-paginate jekyll-sass-converter jekyll-coffeescript
bundle update

Ref: https://stackoverflow.com/questions/68220028/undefined-method-delegate-method-as-for-jekylldropscollectiondropclass-n

Important points to be noted

  1. Whenever the code is changed, please ensure that the relevant code changes are reflected in main.js file (For example, if a slideshow is disabled, make sure the id of the slideshow element/section is also disabled in the main.js file if it exists).
  2. Few dependencies/libraries do not work well with other dependencies/libraries, so make sure to test before updating the dependencies/libraries.
  3. Whenever the website hosting is shifted to another url/domain, please ensure to change the internal url references and also the sitemap.txt file.
  4. Do check Answers to a few questions section to get answers to a few of the questions you might have or for steps to be followed.
  5. Be careful when changing the cache control code present in the .htaccess file.
  6. Whenever the dependency/library versions are changed, please update the local files of those dependencies as these local files are referenced when the cdn does not work.
  7. The current website uses customized versions of a few social media icons (service provided by Ion Icons). We do our customizations in a scss file (/css/ion_icon_customization.scss file in our case). Please be careful when updating this file. (Also refer to How to change social media icon colors? the subsection in Answers to few questions section)

Some Developer Notes

All internal URLs are referenced through absolute paths and not relative paths. This website primaritally uses HTML, (S)CSS, Javascript, JQuery, and Bootstrap.

Navigation bar / Header

We have 3 header designs based on the screen sizes:

  1. header for screen sizes greater than 1260px
  2. header for (screen sizes greater than or equal to 768px and less than or equal to 1260px)
  3. header for screen sizes less than 768px

Logo

We render 2 types of logos displayed in the header:

  1. Dynamic logo
  2. Static logo

Dynamic logo

This is a svg version of Sugar Labs logo and we have a code snippet in main.js file to alter the svg code and change color of logo randomly everytime.

Static logo

This is the png version of Sugar Labs logo with no color changing functionality.

The dynamic logo is enabled for:

  1. Safari
  2. Chrome
  3. Opera
  4. Firefox
  5. Edge
  6. Small devices browsers like on Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile

Note

However due to several issues, I disabled the dynamic logo and rendered static logo for all the other browsers.

Disabling

For other browsers apart from those mentioned below, the loader, dynamic logo are disabled.

  1. Safari
  2. Chrome
  3. Opera
  4. Firefox
  5. Edge
  6. Internet Explorer
  7. Small devices browsers like on Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile

Note

The dynamic logo is also disabled for Internet Explorer.

Loader

The loader screen is enabled for:

  1. Safari
  2. Chrome
  3. Opera
  4. Firefox
  5. Edge
  6. Internet Explorer
  7. Small devices browsers like on Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile

Note

To reduce animations, we disabled the loader for all the other browsers.

Font:

The font being used is the Google font, Varela round. When we call the font sheet directly, it is not properly rendered on certain browsers, so we hosted the required font sheets in the fonts folder itself. For more details, please refer to How to add/change the new font? the subsection in the Answers to a few questions section.

Design Layout of Website/Project

The following pages share a similar design: index.html about-us.html about-irc.html about-libre-software-culture.html booting-soas.html contact-us.html inquiry.html more.html music-blocks.html press.html sugar-forraspberry-pi.html turtle-blocks-js.html

The following pages share a similar design: parents.html school-administrators.html students.html sugar-for-raspbian.html sugar-lesson-plans.html sugar-stories.html

The relevant pages can be checked to adopt a similar design.

Answers to Few Questions

How to remove loader?

  1. Go to index.html file.
  2. Go to the Loader section (check comments) and remove the whole section.

How to alter disabling?

  1. Go to main.js file.
  2. Go to Disabling code section (check comments) and change the code accordingly.
  3. Take a look at the attributes of elements being changed in the airspace.css file also and carefully change the code.

How to change background image in main page?

  1. Go to airspace.css file.
  2. Under the slider id css, enter the url of new background image in the background attribute.

How to add new page?

  1. Create a new html page in the root directory.
  2. Enter the required intial information for the new page (Take the help of the intial information available in other html pages).
  3. In the sitemap.txt file, add the declaration of the new page (take the help of other page declarations).

How to change video thumbnail?

  1. Go to index.html file.
  2. Go to the About Sugar section (check comments) adn add the new thumbnail url in the poster attribute of the html video tag.

How to add/change new font?

  1. Go to fontsquirrel.
  2. Search the required font and go the specified page.
  3. Under Webfont Kit, enable all font formats and click Download @font-face kit.
  4. Add all the font format files to the fonts folder.
  5. Go to the googlefonts.css file and add those references.

How to alter Google analytics code?

  1. Go to Google Analytics.
  2. Your account needs admin rights so ask Samson Goddy for admin permissions.
  3. Log in using this account.
  4. Get the final code from website.
  5. Go to footer.html file
  6. Replace the existing code with the final code under the Google analytics code section (check comments).

How to change logo?

  1. Go to nav.html file.
  2. Please be aware that we have 2 types of headers/navigation bars and for each header, we have 2 logos associated(static and dynamic)(refer to Logo subsection in About the website/project section). Code is written to accommodate both the logos and the necessary disabling is done in the main.js file.

Changing dynamic logo

  1. To change the dynamic logo, replace the new svg in space of the existing svg logo path in nav.html file.
  2. Do this for the 2 header sections in nav.html file.
  3. Go to main.js file.
  4. We have code to change colours of dynamic logo under Colour changing affect of logo section (check comments).
  5. Change/add code there.

Changing static logo

  1. To change the static logo, replace the new png in space of the existing png logo path in nav.html file.
  2. Do this for the 2 header sections in nav.html file.

How to change cache control?

  1. Go to .htaccess file
  2. Change/Edit the code there.

How to change social media icon colors?

  1. Go to /css/ion_icon_customization.scss file.
  2. Find the color section you wish the change (it is commented)
  3. Change the variable here only.
  4. Do not change the code below the variables unless you wish to add or remove a color instead of changing a color.

www's People

Contributors

adithyakrishnak avatar amaaniqbal avatar aperezbios avatar aust-n avatar avni avatar chimosky avatar davelab6 avatar dependabot[bot] avatar eliheuer avatar geekrypter avatar hkatzdev avatar iamutkarshtiwari avatar ishubham21 avatar kipply avatar kuthar8055 avatar matiasmartineeez avatar mxschmitt avatar nathan-jacob avatar pikurasa avatar quozl avatar rhl-bthr avatar rohith-coder avatar s-kus avatar samdroid-apps avatar samswag avatar sanatankc avatar soumyaranjan-panda avatar tradzik avatar walterbender avatar yell0wfl4sh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

www's Issues

Calculator App in Try Now is Broken When Trying to Do Trig

When you try to do Arc Trig in deg mode as shown below, you get some really weird answers.
image
acos(0) should be 90 degrees.
asin(1) should be 90 degrees.
acos(1) should be 0 degrees.
atan(1) should be 45 degrees.
Instead of these, the calculator gave me a whole bunch of wrong answers and one (acos(0)) that would be right if it was in radians.

Suggestion: Use text-transform:uppercase property for section titles.

According to the source code, title headings are all manually typed in caps (e.g. TITLE); you can apply CSS text-tranform property to the headings so that the content can be written as Title while displaying as TITLE on the webpage. Doing so will help improve accessibility (for those using screenreaders, for example).

Add list of good introductions to libre software culture

Since Sugar attracts many people who are new to libre software, and per https://wiki.sugarlabs.org/go/File:Education-needs-free-software.pdf onboarding people to the movement is a primary purpose of Sugar Labs, the website should provide a curated list of good introductions.

I see 3 main areas:

Philosophy / Concepts

Processes / Community

Programming / Contributing

Systems Team / Contributing

What other links are good?

Change colors for social icons

Instagram hover color

The social buttons on every page have it to where it will darken on hover. The Instagram icon doesn't. This can be fixed by making the gradient background be darker on hover.

I won't include which colors it should darken to because you guys will probably want different colors.

Instagram color

The current colors for the Instagram icon don't look exactly like the real colors.

GitHub color

The GitHub icon could be #000 because it is always like that.

Improve link colors

The links inside purple sections

These are hard to see and the hover color is even harder to read. I suggest making these links be #fa99e3 and #d465d6 during hover. They look really nice after testing.

The footer links

The normal color is good but the hover color isn't. I suggest making the hover color for these links be #d465d6. It looks really nice after testing it.

Intro doesn't mention nonprofit/volunteer

We have always been assumed to be a for-profit startup.

Intro text should be:

"At Sugar Labs, we make a collection of tools that learners use to explore, discover, create, and reflect. We are nonprofit and staffed by volunteers. We distribute these tools freely and encourage our users to appropriate them, taking ownership and responsibility for their learning."

Get Sugar

This should be a pull request, but I am jsst too lazy.

The idea is to make the ability to install Sugar on personal computers more visible.

This involves a change to

nav.html

The only change is the first line.

The second change is to index.html to eliminate the box 'Get Sugar'. This part of the page is 'below the fold'. Getting Sugar needs to be visible immediately.

A draft of the wiki page has been saved and is not a part of this repository.

It shows how to set up SOAS and to install Sugar through distros Ubuntu 17.04 and Debian Stretch.

What needs to be added is the XO and Raspberry Pi. The intent is for the XO part to point to

http://wiki.laptop.org/go/Release_notes/13.2.8

For Raspberry Pi, the intent is to change the description for the Debian install to refer to a sd chip with Raspbian.

Copyright missing symbol, trademark statement lacking

The footer should say:

"Sugar Labs(R) is a registered trademark of the Software Freedom Conservancy."

the (R) here should be the HTML entity for registered trademark, and not the literal character
' ® '

The copyright statement should have the symbol after the word 'Copyright', HTML entity
' © '

Suggestion: Having the search button open a text field

At the moment, the search button in the navigation leads to a page. Having a text field appear would make more sense as it lets people reference their current page to remember what it is they may be searching for. Hitting the search again would then lead to a page of results.

site redesign idea

sugarlabs

Hi! this is a redesign idea for the site project for Outreachy. Any tips or suggestions would be greatly appreciated. I'm also trying to get in contact with the mentors for this project, I've already joined the IRC channel (nicnkame: dalia)

Assets for bootsoas.html

These can be uploaded to the asset section of the website for the bootsoas.html to show properly.

boot1
boot2
boot3
boot4
soaspic

No mention of OLPC

It's important to mention SL's roots in OLPC, for SEO.

Text in the What is Sugar Labs? section should be:

"a volunteer-driven, non-profit organization, had its origins in the One Laptop Per Child project and is now a member project of the Software Freedom Conservancy."

Navbar issues

Noticed the following issues with the navbar on the website:

screenshot at nov 28 11-06-18

  • In the desktop view, the text links aren't vertically aligned and are slightly above the center of the navbar.

screenshot at nov 28 11-07-32

  • The menu icon in mobile view is located slightly vertically below the center of the navbar.

screenshot at nov 28 11-09-58

  • The padding for the menu icon in tablet view is off; it should be slightly to the left and more vertically-aligned towards the center.

How to do Localization

Since the majority of sugar users speak Spanish or other languages than English, we will need to localize the site from English to Spanish and others.

Sadly, Jekyll doesn't support l10n well (although this might change in the future, per github/mentorships#106) so there are 2 ways to do it that I can see:

  1. Put all content in IETF language code directories, and develop a set of language-specific layout HTML files and try to keep them in sync by hand.
  2. Migrate to https://github.com/grow (which should be straight forward, I can do this) and has proper PO support (https://grow.io/docs/translations/)

typo on homepage

Under the Join the Conversation section:

"We strive to create software that work well"

should be

"We strive to create software that works well"

Suggestion for Home Page

My suggestion is that the pictures 'this screenshot' could also be changed by pressing the 'ball'. For example, when you press the first 'ball', the first image is shown, and when you press the third 'ball' the third image is displayed. There may be arrows as in the picture. Of course changed after the time may also be, but it would be good to add a sign that you can pause this scroll, and then resume.
suggestion

SL needs to have Knowledge Graph enabled in the www.sugarlabs.org

I was making a research yesterday, so i found at that www.sugarlabs.org doesn't have knowledge graph enabled see https://en.wikipedia.org/wiki/Knowledge_Graph . So i think it will be a great deal for someone who google sugarlabs and see information quicker with the help of the knowledge graph. So here is the link to get started. https://developers.google.com/search/docs/guides/enhance-site#register-your-website-with-search-console

Regarding "Giving Sugar Labs Website a New Look"

Hi,

I am new to the sugar labs community and I am really looking forward to contribute to this community. I have come across the "Giving Sugar Labs Website a New Look" idea posted on "https://wiki.sugarlabs.org/go/Summer_of_Code/2017". Being a UI/UX designer and developer, I am really excited to draft my proposal based on this idea for GSOC 2017. But I have few queries which I wish would be answered.
1.Should I be posting the UI mockups in form of Issues on github or is any preferred way?
2.As mentioned on https://github.com/sugarlabs/www-sugarlabs/blob/master/STRUCTURE.md, is there any particular design aspects that is being looked into adopting from {https://learningequality.org and http://haxe.org}?
I hope my queries will be answered as soon as possible so that I can start contributing to this exciting community.
Thank you.

Write email mini-course

In https://github.com/sugarlabs/www-sugarlabs/pull/33/files#r61170562 @samdroid-apps wrote,

One idea that interests me is using an email mini-course. This could involve collecting emails on the home page. Then, we guide people through getting set up and deriving value Sugar. First, this would involve general emails about how sugar integrates with the classroom, and other topics to build a positive relationship and trust. Then, it is easier to ask for a time investment to download and try SoaS. They will also actually know what to do in SoaS. After that, we could do more!

One bit of software that we could use is https://www.mautic.org But probably the most important part of this is making up the emails.

https://copyhackers.com/2015/10/copywriting-formula/ has some good structures for these

Revamping the New Sugar Site

screen shot 2017-01-08 at 12 23 47 am

The social media icons are too small and are placed at the footer [_includes/footer.html], which makes it easily missed by the audiences. They are not visible enough, so perhaps there could be an icon in place, or make the icons/words larger. There could also be an embedded Twitter/Facebook timeline on the page as well.

IRC Chat Disconnects When You Change Pages

Suggestion: Make it so that you can keep the IRC channel is still available when you try to access a new page.
image

Also, on Chrome Version 62.0.3202.94, when you try to go to a new page and the IRC chat is open, the "Do you want to leave this site" pops up. It would be nice to just go to the next page without having to hit "leave."

image

IRC Chat disconnects when you leave the current page as shown.
image

meeting.sl.o

http://meeting.sugarlabs.org needs a quick refresh of the homepage to

  • use visual design to show which channels are most likely to be relevant, based on 2016 activity, and
  • channels without 2016 activity should have the log bot cancelled and their obsolete status made visible

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.