Skip to content
Merged
Show file tree
Hide file tree
Changes from 56 commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
d26dac8
Update primary and background color
obulat Feb 6, 2020
a55e713
Style Help section according to the mockup
obulat Feb 6, 2020
4791603
mockup code
obulat Feb 7, 2020
ccbdab4
Setup vuex store
obulat Feb 10, 2020
856e795
Add vuex to components
obulat Feb 10, 2020
1976966
Clean up vuex store, show Copyright Waiver if CC0
obulat Feb 10, 2020
cb37181
Remove old components
obulat Feb 10, 2020
8b146d6
Add Dropdown step
obulat Feb 10, 2020
4394bcf
Set icon size to 35 px as in the mockup
obulat Feb 10, 2020
a5940ab
Add vuex to AttributionDetails component
obulat Feb 10, 2020
ae0004f
Review strings
obulat Feb 10, 2020
909e13e
Move store to /src and remove local functions from store
obulat Feb 11, 2020
9fc52cc
Move local data and functions from store to components
obulat Feb 11, 2020
126a4d9
Rename components: VerticalStep and VerticalStepper to Step and Stepper
obulat Feb 13, 2020
0d1c5c4
Add own Header and LocaleChooser components for launch of v1
obulat Feb 13, 2020
02655e5
Add language icon to LocaleChooser
obulat Feb 13, 2020
d07a645
Add Footer
obulat Feb 13, 2020
bd0b362
Add some Vocabulary typography styles
obulat Feb 13, 2020
562833e
Replace Vocabulary footer with own Footer component in App.vue
obulat Feb 13, 2020
e5522f3
Add white icons for Footer
obulat Feb 13, 2020
4e3555e
Some style fixes
obulat Feb 13, 2020
9634a24
Add arrow-right.png icon
obulat Feb 13, 2020
1eba7d8
Remove default options from Stepper
obulat Feb 16, 2020
1992565
Remove old LicenseCard component
obulat Feb 17, 2020
07c944e
Fix vuex bugs after removing default license state
obulat Feb 17, 2020
a98a9d6
Update steps and Stepper styles
obulat Feb 17, 2020
fa1fd10
Update right column styles
obulat Feb 17, 2020
74f2ad3
Refactor vocabulary header styles
obulat Feb 17, 2020
8ed862b
Update Footer, LocaleChooser and HelpSection styles
obulat Feb 17, 2020
4432690
Small fixes to strings, icons and header styles
obulat Feb 17, 2020
a328303
Remove console.log statements
obulat Feb 17, 2020
a2de993
Update License Card strings and styles
obulat Feb 17, 2020
0170e39
Update Header and Stepper naming
obulat Feb 18, 2020
e2622d1
Add LicenseCode component for generating License richtext
obulat Feb 18, 2020
b4a543f
Add license code references and functions
obulat Feb 18, 2020
95cf8b8
Review strings and string names
obulat Feb 18, 2020
b070efd
Fix missing strings, remove old SelectedLicenseInfo component
obulat Feb 18, 2020
5b8af35
Update Vuex and Stepper data handling
obulat Feb 20, 2020
382ac7e
Fix regression bug with currentStepId and visible steps
obulat Feb 20, 2020
c37db65
Add Help item for Free Culture Licenses
obulat Feb 20, 2020
c406081
Update language
obulat Feb 20, 2020
0ea217c
Remove unnecessary Vuex getters
obulat Feb 20, 2020
ee2218d
Update styles for SelectedLicenseCode and LicenseUseCard
obulat Feb 20, 2020
6dda97a
Make 'Next' button disabled on CopyrightWaiverStep after checkbox uns…
obulat Feb 21, 2020
22335a2
Make 'Next' button on Dropdown step enabled if navigated back after l…
obulat Feb 21, 2020
425298d
Add mode to license url generation to remove '?ref=ccchooser' from th…
obulat Feb 21, 2020
0820417
Fix LocaleSelector style, put it on top on mobile screen
obulat Feb 21, 2020
6ef753b
Small fixes in language and style
obulat Feb 21, 2020
93fda80
Format License Code for Print and Media
obulat Feb 23, 2020
be42999
Styling fixes for HelpSection
obulat Feb 23, 2020
a7597d5
Fix bug when selecting ND from the dropdown would activate unnecessar…
obulat Feb 23, 2020
c4b97db
Fix LocaleChooser on narrow screen: set to two lines
obulat Feb 23, 2020
7bb2700
Add fix to Stepper updating Visible and Enabled steps
obulat Feb 23, 2020
4b1d0d7
Update some strings
obulat Feb 23, 2020
edb7e4f
Remove blue outline from radio:hover state
obulat Feb 23, 2020
b21174a
Build the site
obulat Feb 23, 2020
61588a8
Address review comments on style
obulat Feb 24, 2020
3d27a85
Add Noun Project link, add periods at the ends of sentences, update R…
obulat Feb 24, 2020
a9445a3
Build the site
obulat Feb 24, 2020
a848d2d
Remove unnecessary period and reformat footer text
obulat Feb 25, 2020
91c32ad
Build the site
obulat Feb 25, 2020
10c898d
Fix footer links and Build the site
obulat Feb 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/css/app.7f57ad44.css

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion docs/css/app.eb482f5e.css

This file was deleted.

Binary file added docs/img/cc-logo_white.525b74af.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/img/fc_approved_small.242519d1.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><link rel=icon type=image/png href=https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png sizes=192x192><link rel=apple-touch-icon-precomposed href=https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png><meta name=twitter:card content=summary><meta name=twitter:site content=@creativecommons><meta name=twitter:creator content=@creativecommons><meta property=og:url content=https://beta-chooser.creativecommons.org><meta property=og:title content="Choose a License"><meta property=og:type content=website><meta property=og:description content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><meta property=og:image content=https://mirrors.creativecommons.org/presskit/logos/cc.logo.large.png><meta property=og:locale content=en_US><meta property=og:locale:alternate content=ru_RU><title>Creative Commons License Chooser</title><link href=/css/app.eb482f5e.css rel=preload as=style><link href=/css/chunk-vendors.c29f3e02.css rel=preload as=style><link href=/js/app.7e6af1b9.js rel=preload as=script><link href=/js/chunk-vendors.f29b9692.js rel=preload as=script><link href=/css/chunk-vendors.c29f3e02.css rel=stylesheet><link href=/css/app.eb482f5e.css rel=stylesheet></head><body><noscript><strong>We're sorry but License Chooser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.f29b9692.js></script><script src=/js/app.7e6af1b9.js></script></body></html>
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/favicon.ico><link rel=icon type=image/png href=https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png sizes=192x192><link rel=apple-touch-icon-precomposed href=https://d15omoko64skxi.cloudfront.net/wp-content/uploads/2016/05/cc-site-icon-300x300.png><meta name=twitter:card content=summary><meta name=twitter:site content=@creativecommons><meta name=twitter:creator content=@creativecommons><meta property=og:url content=https://beta-chooser.creativecommons.org><meta property=og:title content="Choose a License"><meta property=og:type content=website><meta property=og:description content="Want to license your work with Creative Commons, but not sure where to start, or which license is right for you? Use our license chooser!"><meta property=og:image content=https://mirrors.creativecommons.org/presskit/logos/cc.logo.large.png><meta property=og:locale content=en_US><meta property=og:locale:alternate content=ru_RU><title>Creative Commons License Chooser</title><link href=/css/app.7f57ad44.css rel=preload as=style><link href=/css/chunk-vendors.c29f3e02.css rel=preload as=style><link href=/js/app.5f5f4b4f.js rel=preload as=script><link href=/js/chunk-vendors.9e1a82c6.js rel=preload as=script><link href=/css/chunk-vendors.c29f3e02.css rel=stylesheet><link href=/css/app.7f57ad44.css rel=stylesheet></head><body><noscript><strong>We're sorry but License Chooser doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/js/chunk-vendors.9e1a82c6.js></script><script src=/js/app.5f5f4b4f.js></script></body></html>
2 changes: 2 additions & 0 deletions docs/js/app.5f5f4b4f.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/app.5f5f4b4f.js.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions docs/js/app.7e6af1b9.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/app.7e6af1b9.js.map

This file was deleted.

27 changes: 27 additions & 0 deletions docs/js/chunk-vendors.9e1a82c6.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/chunk-vendors.9e1a82c6.js.map

Large diffs are not rendered by default.

29 changes: 0 additions & 29 deletions docs/js/chunk-vendors.f29b9692.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/js/chunk-vendors.f29b9692.js.map

This file was deleted.

5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test:e2e": "vue-cli-service test:e2e",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit --coverage",
"i18n:report": "vue-cli-service i18n:report --src src/**/*.vue --locales src/locales/**.json"
"i18n:report": "vue-cli-service i18n:report -v --src src/**/*.vue --locales src/locales/**.json -o output.json"
},
"dependencies": {
"@creativecommons/vocabulary": "0.0.0-alpha.30",
Expand All @@ -30,7 +30,8 @@
"core-js": "^3.6.1",
"vue": "^2.6.10",
"vue-analytics": "^5.22.1",
"vue-i18n": "^8.15.3"
"vue-i18n": "^8.15.3",
"vuex": "^3.1.2"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.1.0",
Expand Down
218 changes: 168 additions & 50 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
<template>
<div id="app">
<Header :title="$t('app-title')"/>
<Feedback/>
<Header :title="$t('app.title')"/>
<div class="container" id="site-container">
<Chooser />
<hr>
<HelpSection/>
</div>
<Footer>
<div class="panel">
<div>
<p>
Built with <a href="https://creativecommons.github.io/cc-vocabulary/">Vocabulary</a>.
</p>
<p>
<a href="https://github.com/creativecommons/cc-chooser">Icons</a> by The Noun Project and
FontAwesome.
</p>
<p>
Contribute on <a href="https://github.com/creativecommons/cc-chooser">Github</a>.
</p>
<div class="page-head">
<div class="select-license-column">
<h2 class="vocab h2a ha">{{$t('select-license.heading')}}</h2>
<p class="stepper-instructions vocab-body body-bigger">{{$t('select-license.instructions')}}</p>
</div>
<LocaleChooser />
</div>
<div class="columns">
<Stepper v-model="currentStepId" />
<div class="column" >
<div class="fixed-right-column">
<SelectedLicenseCard
v-if="showLicense"
/>
<LicenseUseCard
v-if="showLicenseUse"
/>
<HelpSection />
</div>
<Locale/>
</div>
</Footer>
</div>
</div>
<Footer />
</div>
</template>

Expand All @@ -32,34 +33,53 @@
import '@creativecommons/vocabulary/css/root.css'
import '@creativecommons/vocabulary/css/index.css'

import Chooser from './components/Chooser'
import HelpSection from './components/HelpSection'
import { Header, Footer, Locale } from '@creativecommons/vue-vocabulary'
import Feedback from './components/Feedback'
import Stepper from './components/Stepper'
import SelectedLicenseCard from './components/LicenseDetailsCard'
import LicenseUseCard from './components/LicenseUseCard'
import Header from './components/Header.vue'
import Footer from './components/Footer'
import LocaleChooser from './components/LocaleChooser'

export default {
name: 'App',
components: {
Chooser,
HelpSection,
Feedback,
Stepper,
SelectedLicenseCard,
LicenseUseCard,
Header,
Footer,
Locale
LocaleChooser
},
data() {
return {
currentStepId: 0,
showLicense: false
}
},
computed: {
showLicenseUse() {
return this.currentStepId === 7
}
},
created: function() {
// send home to google analytics
if (process.env.NODE_ENV === 'production') {
this.$ga.page('/')
}
this.$store.subscribe((mutation, state) => {
if (mutation.type === 'updateAttributesFromShort' || mutation.type === 'setSelected') {
this.showLicense = true
}
})
}
}</script>
}
</script>
<style lang="scss">
// Import Bulma's core
@import "~bulma/sass/utilities/_all";
$primary: hsl(13, 84%, 56%);
$background: hsl(0, 0%, 88%);
$body-background-color:hsl(0,0%, 88%);
$primary: hsl(138, 95%, 33%);

// Links
$link: $primary;
Expand All @@ -71,29 +91,123 @@ export default {
// Import Bulma and Buefy styles
@import "~bulma";
@import "~buefy/src/scss/buefy";
</style>
<style>

@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro%3A%20400%2C600%2C700%7CRoboto+Condensed&ver=4.9.8");

#app {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
color: #2c3e50;
counter-reset: step-counter;
}
.fixed-right-column {
position: sticky;
top: 10px;
}

#site-container {
padding-top: 2rem;
padding-bottom: 2%;
}

.page-head {
display: grid;
grid-template-columns: repeat(2, 1fr);
grid-gap: 1.5rem;
}
.select-license-column {
grid-column: 1;
}
.locale-chooser {
grid-column: 2;
}
.desktop-hide {
display: none;
}

.desktop-show {
display: block;
}
.vocab.ha {
font-family: Roboto Condensed,sans-serif;
font-weight: bold;
font-style: normal;
letter-spacing: 0.02em;
padding-bottom: 0.5rem;
}
.vocab.hb {
font-family: Source Sans Pro,sans-serif;
font-weight: bold;
font-style: normal;
padding-bottom: 0.5rem;
}
.vocab.h2a {
color: black;
font-size: 36px;
line-height: 47px;
}
.vocab.h3a {
font-size: 28px;
line-height: 36px;
color: black;
}
.vocab.h3b {
font-size: 28px;
line-height: 33px;
}
.vocab.h4a {
font-size: 23px;
line-height: 30px;
}
.vocab.h4b {
font-size: 23px;
line-height: 27px;
}
.vocab.h5a {
font-size: 20px;
line-height: 30px;
}
.vocab.h5b {
font-size: 20px;
line-height: 26px;
}
.vocab-tomato {
color: #ED592F!important;
}
.vocab-body {
font-style: normal;
font-weight: normal;
color: #333333;
padding-bottom: 8px;
}
.vocab-body.body-bigger {
font-size: 23px;
line-height: 33px;
color: black;
}
.vocab-body.body-big {
font-size: 18px;
line-height: 25px;
}
.vocab-body.body-normal {
font-size: 16px;
line-height: 24px;
}
.vocab-caption {
font-style: normal;
font-weight: 600;
font-size: 13px;
line-height: 19px;
padding-bottom: 8px;
}
.normal-gray {
color: #D8D8D8!important;
}
.slate-gray {
color: #333333;
}
.selected-license-card {
margin-bottom: 32px;
}
.help-section {
}

@media only screen and (max-width: 1025px) {
#site-container {
Expand All @@ -109,6 +223,24 @@ export default {
display: block;
}
}
@media only screen and (max-width: 768px) {
#site-container {
padding-top: 0;
}
.page-head {
grid-template-columns: 100%;
grid-gap: 1rem;
}
.select-license-column {
order: 2;
}
.locale-chooser {
padding-top: 1rem;
height: auto;
grid-column: auto;
order: 1;
}
}

@media only screen and (max-width: 670px) {
#site-container {
Expand Down Expand Up @@ -149,17 +281,3 @@ export default {
margin-top: 1rem;
}
</style>
<style scoped>
p {
margin-bottom: .5em;
}

#custom .panel > div:first-child {
margin-bottom: 10vh;
}

.vocab.footer {
font-family: Source Sans Pro, Noto Sans, Arial, Helvetica Neue, Helvetica, sans-serif;
line-height: 1.2;
}
</style>
Binary file added src/assets/arrow-right.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/language.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/license-icons/icon-by-white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/license-icons/icon-by-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/license-icons/icon-cc-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/license-icons/icon-cc_white.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading