| 
3 | 3 |         <Header :title="$t('app-title')"/>  | 
4 | 4 |         <Feedback/>  | 
5 | 5 |         <div class="container" id="site-container">  | 
6 |  | -            <Chooser />  | 
7 |  | -            <hr>  | 
8 |  | -            <HelpSection/>  | 
 | 6 | +            <div class="columns">  | 
 | 7 | +            <VerticalStepper  | 
 | 8 | +                :selected="selected"  | 
 | 9 | +                @openLicenseCard="openLicenseCard"  | 
 | 10 | +                @toggleLicenseAttr="updateLicense"  | 
 | 11 | +                @openLicenseUse="openLicenseUse"  | 
 | 12 | +            />  | 
 | 13 | +            <div class="column">  | 
 | 14 | +                <SelectedLicenseCard  | 
 | 15 | +                    v-if="showLicense"  | 
 | 16 | +                    :selected="selected"  | 
 | 17 | +                />  | 
 | 18 | +                <LicenseUseCard  | 
 | 19 | +                    v-if="showLicenseUse"  | 
 | 20 | +                    v-model="selected"  | 
 | 21 | +                />  | 
 | 22 | +                <HelpSection />  | 
 | 23 | +            </div>  | 
 | 24 | +            </div>  | 
9 | 25 |         </div>  | 
10 | 26 |         <Footer>  | 
11 | 27 |             <div class="panel">  | 
 | 
32 | 48 | import '@creativecommons/vocabulary/css/root.css'  | 
33 | 49 | import '@creativecommons/vocabulary/css/index.css'  | 
34 | 50 | 
  | 
35 |  | -import Chooser from './components/Chooser'  | 
36 | 51 | import HelpSection from './components/HelpSection'  | 
 | 52 | +import VerticalStepper from './components/VerticalStepper'  | 
 | 53 | +import SelectedLicenseCard from './components/SelectedLicenseCard'  | 
 | 54 | +import LicenseUseCard from './components/LicenseUseCard'  | 
37 | 55 | import { Header, Footer, Locale } from '@creativecommons/vue-vocabulary'  | 
38 | 56 | import Feedback from './components/Feedback'  | 
39 | 57 | 
  | 
40 | 58 | export default {  | 
41 | 59 |     name: 'App',  | 
42 | 60 |     components: {  | 
43 |  | -        Chooser,  | 
44 | 61 |         HelpSection,  | 
 | 62 | +        VerticalStepper,  | 
 | 63 | +        SelectedLicenseCard,  | 
 | 64 | +        LicenseUseCard,  | 
45 | 65 |         Feedback,  | 
46 | 66 |         Header,  | 
47 | 67 |         Footer,  | 
48 | 68 |         Locale  | 
49 | 69 |     },  | 
 | 70 | +    data() {  | 
 | 71 | +        return {  | 
 | 72 | +            showLicense: false,  | 
 | 73 | +            showLicenseUse: false,  | 
 | 74 | +            currentStep: 0,  | 
 | 75 | +            selected: {  | 
 | 76 | +                shortName: 'CC BY 4.0',  | 
 | 77 | +                fullName: 'Attribution 4.0 International',  | 
 | 78 | +                attributionDetails: {  | 
 | 79 | +                    creatorName: '',  | 
 | 80 | +                    creatorProfileUrl: '',  | 
 | 81 | +                    workTitle: '',  | 
 | 82 | +                    workUrl: ''  | 
 | 83 | +                }  | 
 | 84 | +            }  | 
 | 85 | +        }  | 
 | 86 | +    },  | 
 | 87 | +    methods: {  | 
 | 88 | +        openLicenseCard() {  | 
 | 89 | +            this.showLicense = true  | 
 | 90 | +        },  | 
 | 91 | +        openLicenseUse() {  | 
 | 92 | +            this.showLicenseUse = true  | 
 | 93 | +        },  | 
 | 94 | +        updateLicense(licenseAttribute) {  | 
 | 95 | +            const attrUpper = licenseAttribute.toUpperCase()  | 
 | 96 | +            const attributes = this.$shortToAttributes(this.selected.shortName)  | 
 | 97 | +            const updatedAttributes = { ...attributes }  | 
 | 98 | +            updatedAttributes[attrUpper] = !attributes[attrUpper]  | 
 | 99 | +            this.selected = {  | 
 | 100 | +                ...this.selected,  | 
 | 101 | +                shortName: this.$attrToShort(updatedAttributes),  | 
 | 102 | +                fullName: this.$attrToFull(updatedAttributes)  | 
 | 103 | +            }  | 
 | 104 | +        }  | 
 | 105 | +    },  | 
50 | 106 |     created: function() {  | 
51 | 107 |         // send home to google analytics  | 
52 | 108 |         if (process.env.NODE_ENV === 'production') {  | 
@@ -89,6 +145,72 @@ export default {  | 
89 | 145 |     .desktop-show {  | 
90 | 146 |         display: block;  | 
91 | 147 |     }  | 
 | 148 | +    h2, h3 {  | 
 | 149 | +        font-family: Roboto Condensed;  | 
 | 150 | +        color: #333333;  | 
 | 151 | +    }  | 
 | 152 | +    .vocab-h2 {  | 
 | 153 | +        font-style: normal;  | 
 | 154 | +        font-weight: bold;  | 
 | 155 | +        font-size: 36px;  | 
 | 156 | +        line-height: 47px;  | 
 | 157 | +        letter-spacing: 0.02em;  | 
 | 158 | +        text-transform: uppercase;  | 
 | 159 | +        padding-bottom: 8px;  | 
 | 160 | +    }  | 
 | 161 | +    .vocab-h3 {  | 
 | 162 | +        font-style: normal;  | 
 | 163 | +        font-weight: bold;  | 
 | 164 | +        font-size: 28px;  | 
 | 165 | +        line-height: 36px;  | 
 | 166 | +        letter-spacing: 0.02em;  | 
 | 167 | +        text-transform: uppercase;  | 
 | 168 | +        margin-bottom: 12px;  | 
 | 169 | +    }  | 
 | 170 | +    .vocab-h4 {  | 
 | 171 | +        font-style: normal;  | 
 | 172 | +        font-weight: bold;  | 
 | 173 | +        font-size: 23px;  | 
 | 174 | +        line-height: 27px;  | 
 | 175 | +        margin-bottom: 12px;  | 
 | 176 | +    }  | 
 | 177 | +    .vocab-h5 {  | 
 | 178 | +        font-style: normal;  | 
 | 179 | +        font-weight: bold;  | 
 | 180 | +        font-size: 20px;  | 
 | 181 | +        line-height: 26px;  | 
 | 182 | +    }  | 
 | 183 | +    .vocab-tomato {  | 
 | 184 | +        color: #ED592F!important;  | 
 | 185 | +    }  | 
 | 186 | +    .vocab-body-bigger {  | 
 | 187 | +        font-style: normal;  | 
 | 188 | +        font-weight: normal;  | 
 | 189 | +        font-size: 23px;  | 
 | 190 | +        line-height: 33px;  | 
 | 191 | +        color: #333333;  | 
 | 192 | +        margin-bottom: 8px;  | 
 | 193 | +        padding-bottom: 8px;  | 
 | 194 | +    }  | 
 | 195 | +    .vocab-body-big {  | 
 | 196 | +        font-style: normal;  | 
 | 197 | +        font-weight: normal;  | 
 | 198 | +        font-size: 18px;  | 
 | 199 | +        line-height: 25px;  | 
 | 200 | +        color: #333333;  | 
 | 201 | +        margin-bottom: 8px;  | 
 | 202 | +        padding-bottom: 8px;  | 
 | 203 | +    }  | 
 | 204 | +    .normal-gray {  | 
 | 205 | +        color: #D8D8D8!important;  | 
 | 206 | +    }  | 
 | 207 | +    .selected-license-card {  | 
 | 208 | +        margin-bottom: 32px;  | 
 | 209 | +        margin-top: 132px;  | 
 | 210 | +    }  | 
 | 211 | +    .help-section {  | 
 | 212 | +        margin-top: 32px;  | 
 | 213 | +    }  | 
92 | 214 | 
  | 
93 | 215 |     @media only screen and (max-width: 1025px) {  | 
94 | 216 |         #site-container {  | 
 | 
0 commit comments