|
| 1 | +<!doctype html> |
| 2 | +<meta charset="utf-8"> |
| 3 | +<meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 4 | +<link rel="shortcut icon" type="image/x-icon" href="/static/favicon.ico"> |
| 5 | +<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous"> |
| 6 | +<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet"> |
| 7 | +<link rel="stylesheet" href="/static/gen/style.css"> |
| 8 | +<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> |
| 9 | +<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js" integrity="sha384-wHAiFfRlMFy6i5SRaxvfOCifBUQy1xHdJ/yoi7FRNXMRBu5WHdZYu1hA6ZOblgut" crossorigin="anonymous"></script> |
| 10 | +<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js" integrity="sha384-B0UglyR+jN6CkvvICOB2joaf5I4l3gm9GU6Hc1og6Ls7i6U/mkkaduKaBhlAXv9k" crossorigin="anonymous"></script> |
| 11 | +<script type="text/javascript" src="/static/gen/script.js"></script> |
| 12 | +<title>GSoC cc-chooser Week 4 — Creative Commons on GitHub</title> |
| 13 | +<body> |
| 14 | + <div class="ga-script"> |
| 15 | +<div id="ga-script"></div> |
| 16 | +<script type="text/javascript"> |
| 17 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 18 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 19 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 20 | + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 21 | + ga('create', 'UA-2010376-37', 'auto'); |
| 22 | + ga('send', 'pageview'); |
| 23 | +</script> |
| 24 | +</div> |
| 25 | + <header class="main-header"> |
| 26 | + <div class="container-fluid"> |
| 27 | + <div class="row justify-content-md-center"> |
| 28 | + <div class="col-9"> |
| 29 | + <nav class="navbar navbar-expand-xl navbar-dark" name="top"> |
| 30 | + |
| 31 | + <a class="navbar-brand" href="/"> |
| 32 | + <img src="/cclogo.svg"> |
| 33 | + <span class="legend">Creative Commons Open Source</span> |
| 34 | + </a> |
| 35 | + <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" |
| 36 | + aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> |
| 37 | + <span class="navbar-toggler-icon"></span> |
| 38 | + </button> |
| 39 | + |
| 40 | + <div class="collapse navbar-collapse" id="navbarSupportedContent"> |
| 41 | + <ul class="navbar-nav"> |
| 42 | + <li class="nav-item"> |
| 43 | + <a class="nav-link" href="/">Home</a> |
| 44 | + </li> |
| 45 | + <li class="nav-item dropdown "> |
| 46 | + <a class="nav-link" href="#" id="navbarContributingCodeDropdown" role="button">Contributing Code</a> |
| 47 | + <div class="dropdown-menu" aria-labelledby="navbarContributingCodeDropdown"> |
| 48 | + |
| 49 | + <a class="dropdown-item" href="/contributing-code/">Overview</a> |
| 50 | + |
| 51 | + <a class="dropdown-item" href="/contributing-code/pr-guidelines/">Pull Request Guidelines</a> |
| 52 | + |
| 53 | + <a class="dropdown-item" href="/contributing-code/github-repo-guidelines/">GitHub Repo Guidelines</a> |
| 54 | + |
| 55 | + </div> |
| 56 | + </li> |
| 57 | + |
| 58 | + <li class="nav-item"> |
| 59 | + <a class="nav-link" href="/projects/">Projects</a> |
| 60 | + </li> |
| 61 | + |
| 62 | + <li class="nav-item active"> |
| 63 | + <a class="nav-link" href="/blog/">Blog</a> |
| 64 | + </li> |
| 65 | + |
| 66 | + <li class="nav-item dropdown "> |
| 67 | + <a class="nav-link" href="#" id="navbarCommunityDropdown" role="button">Community</a> |
| 68 | + <div class="dropdown-menu" aria-labelledby="navbarCommunityDropdown"> |
| 69 | + |
| 70 | + <a class="dropdown-item" href="/community/">Join the Community</a> |
| 71 | + |
| 72 | + <a class="dropdown-item" href="/community/write-a-blog-post/">Write a Blog Post</a> |
| 73 | + |
| 74 | + <a class="dropdown-item" href="/community/code-of-conduct/">Code of Conduct</a> |
| 75 | + |
| 76 | + <a class="dropdown-item" href="/community/code-of-conduct/enforcement/">Code of Conduct Enforcement</a> |
| 77 | + |
| 78 | + </div> |
| 79 | + </li> |
| 80 | + <li class="nav-item dropdown "> |
| 81 | + <a class="nav-link" href="#" id="navbarGSoCDropdown" role="button">GSoC 2019</a> |
| 82 | + <div class="dropdown-menu" aria-labelledby="navbarGSoCDropdown"> |
| 83 | + |
| 84 | + <a class="dropdown-item" href="/gsoc-2019/">General Information</a> |
| 85 | + |
| 86 | + <a class="dropdown-item" href="/gsoc-2019/project-ideas/all/">Project Ideas</a> |
| 87 | + |
| 88 | + <a class="dropdown-item" href="/gsoc-2019/student-expectations/">Student Expectations</a> |
| 89 | + |
| 90 | + <a class="dropdown-item" href="/gsoc-2019/application-instructions/">Application Instructions</a> |
| 91 | + |
| 92 | + </div> |
| 93 | + </li> |
| 94 | + <li class="nav-item dropdown "> |
| 95 | + <a class="nav-link" href="#" id="navbarArchivesDropdown" role="button">Archives</a> |
| 96 | + <div class="dropdown-menu" aria-labelledby="navbarArchivesDropdown"> |
| 97 | + |
| 98 | + <a class="dropdown-item" href="/archives/old-tech-blog/">CC Tech Blog (2007-2014)</a> |
| 99 | + |
| 100 | + </div> |
| 101 | + </li> |
| 102 | + </ul> |
| 103 | + </nav> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + </div> |
| 107 | + </header> |
| 108 | + <div class="container-fluid page-content"> |
| 109 | + <div class="row justify-content-md-center"> |
| 110 | + <div class="col-9 content-wrap"> |
| 111 | + <div class="page py-3"> |
| 112 | + <h1 class="page-title pb-3 mb-4">CC Open Source Blog</h1> |
| 113 | + |
| 114 | + <h2 class="mb-0">GSoC cc-chooser Week 4</h2> |
| 115 | + |
| 116 | + <p class="meta text-muted mt-0">by <a href="/blog/authors/akmadian">akmadian</a> |
| 117 | + on Monday, 2019 June 24</p> |
| 118 | + <div class="body"><p>In case you don't know, my GSoC project involves revamping <a href="https://creativecommons.org/choose/">the CC license chooser</a>. |
| 119 | + I am working with my mentor, <a href="https://creativecommons.org/author/brenoferreira/">Breno Ferreira</a>, to visually overhaul the tool, as well as making it more educational, and more usable.</p> |
| 120 | +<p>This week, I worked on some of the Chooser's JS functionality, and the educational section's layout.</p> |
| 121 | +<p>Getting the chooser working was lots of fun. It's the first real JS I've written for the site (other than the modal system, which is about 6 lines total). |
| 122 | + The thing I like most is seeing the site take shape. Previously, the chooser was all dummy controls and placeholder text. |
| 123 | + Now, it has a fully working chooser, complete with the license icons being updated, the link to the license page being set, etc. |
| 124 | + The thing that took the longest was getting the code to return the correct license based on the user's inputs. There was some |
| 125 | + temperamental code, and the starting state variables were also a little off.</p> |
| 126 | +<p>Next up was the educational section. I decided to go from a three column layout, to a to row layout. I moved the question buttons |
| 127 | + to the top row (now alone), and the license icon descriptions (and example) to the bottom row. This allows the icon descriptions |
| 128 | + to be longer without looking really weird, and gives a space for an example of how the license name, icons, and permissions are related. |
| 129 | + I also decided to swap the positions of the educational section and the chooser section on the page. This means that the chooser is |
| 130 | + now at the top of the page, with the educational section (re-labelled as "Confused? Need Help?") below it.</p> |
| 131 | +<p>Next week, I'll be working on getting a new version of the license chooser controls working.</p> |
| 132 | +</div> |
| 133 | + <div class="card bg-light"> |
| 134 | + <div class="card-body p-2"> |
| 135 | + <p class="meta my-0"><span class="mr-2"><strong>Categories:</strong></span> |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + <a href=" /blog/categories/gsoc ">gsoc</a>, |
| 140 | + |
| 141 | + |
| 142 | + <a href=" /blog/categories/gsoc-2019 ">gsoc-2019</a> |
| 143 | + |
| 144 | + |
| 145 | + </p> |
| 146 | + </div> |
| 147 | + </div> |
| 148 | + <div class="comments"> |
| 149 | +<div id="disqus_thread"></div> |
| 150 | +<script> |
| 151 | + var disqus_config = function() { this.page.identifier = "/blog/entries/cc-chooser-week4"; this.page.url = "http://creativecommons.github.io/blog/entries/cc-chooser-week4/"; }; |
| 152 | + (function() { |
| 153 | + var d = document, s = d.createElement('script'); |
| 154 | + s.src = '//cc-open-source.disqus.com/embed.js'; |
| 155 | + s.setAttribute('data-timestamp', +new Date()); |
| 156 | + (d.head || d.body).appendChild(s); |
| 157 | + })(); |
| 158 | +</script> |
| 159 | +<noscript> |
| 160 | + Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" |
| 161 | + rel="nofollow">comments powered by Disqus.</a> |
| 162 | +</noscript> |
| 163 | +</div> |
| 164 | + |
| 165 | + <a id="back-to-top" href="#top" class="btn btn-dark btn-sm" role="button">Back to top</a> |
| 166 | + </div> |
| 167 | + </div> |
| 168 | + </div> |
| 169 | + </div> |
| 170 | + <footer class="main-footer bg-dark"> |
| 171 | + <div class="container-fluid"> |
| 172 | + <div class="row justify-content-md-center"> |
| 173 | + <div class="col-9 footer text-light py-4 px-3"> |
| 174 | + <small> |
| 175 | + <p><a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" |
| 176 | + style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a></p> |
| 177 | + <p class="text-muted">All the content on this website is licensed under a <strong><a rel="license" |
| 178 | + href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International |
| 179 | + License</a></strong> unless otherwise specified.</p> |
| 180 | + </small> |
| 181 | + </div> |
| 182 | + </div> |
| 183 | + </div> |
| 184 | + </footer> |
| 185 | +</body> |
0 commit comments