Skip to content
This repository has been archived by the owner on Oct 26, 2024. It is now read-only.

Commit

Permalink
feat(ticket): open ticketing (#183)
Browse files Browse the repository at this point in the history
* feat(ticket): open ticketing [8e2ca81]
* feat(navigation): add FAQ link [e10a08d]
* Update resources.json to change faq link [0b41d50]
---------

Co-authored-by: Hugo Gresse <[email protected]>
  • Loading branch information
MaloPolese and HugoGresse authored Jan 30, 2024
1 parent 59ed0cc commit e1219ea
Show file tree
Hide file tree
Showing 5 changed files with 82 additions and 56 deletions.
8 changes: 4 additions & 4 deletions docs/default-firebase-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@
"url": "https://www.billetweb.fr/sunny-tech-2024"
},
{
"available": false,
"available": true,
"currency": "",
"ends": "",
"inDemand": true,
Expand All @@ -513,18 +513,18 @@
"primary": true,
"regular": true,
"soldOut": false,
"starts": "Bientôt disponible",
"starts": "1 Fév 10h",
"url": "https://www.billetweb.fr/sunny-tech-2024"
},
{
"available": false,
"available": true,
"currency": "",
"ends": "",
"info": "Requiert une carte étudiante",
"name": "Étudiant",
"price": 40,
"soldOut": false,
"starts": "Bientôt disponible",
"starts": "1 Fév 10h",
"url": "https://www.billetweb.fr/sunny-tech-2024"
}
],
Expand Down
37 changes: 19 additions & 18 deletions public/data/resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"buyTicketTopRight": "Billetterie",
"cfpHeader": "Call For Paper",
"cfpLink": "https://conference-hall.io/public/event/Jnevkv3bLyxZOyYyiWSC",
"faqLink": "https://sunny-tech.io/faq",
"becomeSponsorMenu": "Devenir sponsor",
"signIn": "Connexion",
"signOut": "Déconnexion",
Expand Down Expand Up @@ -255,7 +256,7 @@
"label": "Voir tous les speakers",
"link": "/speakers/"
}
},
},
"speakerDetails": {
"sessions": "Sessions"
},
Expand Down Expand Up @@ -316,44 +317,44 @@
},
"callToSchedule": {
"display": true,
"title" :"Appel à orateurs",
"title": "Appel à orateurs",
"description": "Intéressé(e) pour parler à Sunny Tech ?",
"description2": "Notre CFP est désormais ouvert",
"description3": "Nous avons hâte de recevoir vos propositions !",
"action": "Accéder au CFP",
"url": "https://conference-hall.io/public/event/Jnevkv3bLyxZOyYyiWSC",
"categories": [
{
"title": "Cloud & Devops",
"icon":"/images/icons/bubble1.svg"
"title": "Cloud & Devops",
"icon": "/images/icons/bubble1.svg"
},
{
"title": "BigData & IA",
"icon":"/images/icons/bubble2.svg"
"title": "BigData & IA",
"icon": "/images/icons/bubble2.svg"
},
{
"title": "Architecture",
"icon":"/images/icons/bubble3.svg"
"title": "Architecture",
"icon": "/images/icons/bubble3.svg"
},
{
"title": "Mobile / IoT",
"icon":"/images/icons/bubble4.svg"
"title": "Mobile / IoT",
"icon": "/images/icons/bubble4.svg"
},
{
"title": "Atypique",
"icon":"/images/icons/bubble4.svg"
"title": "Atypique",
"icon": "/images/icons/bubble4.svg"
},
{
"title": "Frontend",
"icon":"/images/icons/bubble5.svg"
"title": "Frontend",
"icon": "/images/icons/bubble5.svg"
},
{
"title": "Conception",
"icon":"/images/icons/bubble6.svg"
"title": "Conception",
"icon": "/images/icons/bubble6.svg"
},
{
"title": "Sécurité",
"icon":"/images/icons/bubble1.svg"
"title": "Sécurité",
"icon": "/images/icons/bubble1.svg"
}
]
},
Expand Down
50 changes: 36 additions & 14 deletions src/elements/header-toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,16 @@ import { ReduxMixin } from '../store/mixin';
import { initialTicketsState, TicketsState } from '../store/tickets/state';
import { initialUiState } from '../store/ui/state';
import { initialUserState } from '../store/user/state';
import { buyTicket, navigation, signIn, signOut as signOutText, title, cfpHeader, cfpLink } from '../utils/data';
import {
buyTicket,
navigation,
signIn,
signOut as signOutText,
title,
cfpHeader,
cfpLink,
faqLink,
} from '../utils/data';
import './notification-toggle';
import './shared-styles';

Expand Down Expand Up @@ -75,7 +84,8 @@ export class HeaderToolbar extends ReduxMixin(PolymerElement) {
}
.nav-item a,
.signin-tab {
.signin-tab,
.faq-link {
padding: 0 14px;
color: inherit;
text-transform: uppercase;
Expand Down Expand Up @@ -177,18 +187,29 @@ export class HeaderToolbar extends ReduxMixin(PolymerElement) {
<a href="[[nav.permalink]]" layout vertical center-center>[[nav.label]]</a>
</paper-tab>
</template>
<!-- <paper-tab class="signin-tab" on-click="signIn" link hidden$="[[signedIn]]">-->
<!-- [[signInText]]-->
<!-- </paper-tab>-->
<!-- <a href="[[ cfpLink ]]" target="_blank" rel="noopener noreferrer">-->
<!-- <paper-button class="buy-button" secondary>[[cfpHeader]]</paper-button>-->
<!-- </a>-->
<!-- <a href$="[[ticketUrl]]" target="_blank" rel="noopener noreferrer">-->
<!-- <paper-button class="buy-button" primary>[[buyTicket]]</paper-button>-->
<!-- </a>-->
<a
href="[[faqLink]]"
target="_blank"
rel="noopener noreferrer"
layout
vertical
center-center
class="faq-link"
>
FAQ
</a>
<!-- <paper-tab class="signin-tab" on-click="signIn" link hidden$="[[signedIn]]">-->
<!-- [[signInText]]-->
<!-- </paper-tab>-->
<!-- <a href="[[ cfpLink ]]" target="_blank" rel="noopener noreferrer">-->
<!-- <paper-button class="buy-button" secondary>[[cfpHeader]]</paper-button>-->
<!-- </a>-->
<!-- <a href$="[[ticketUrl]]" target="_blank" rel="noopener noreferrer">-->
<!-- <paper-button class="buy-button" primary>[[buyTicket]]</paper-button>-->
<!-- </a>-->
</paper-tabs>
<notification-toggle></notification-toggle>
Expand Down Expand Up @@ -239,6 +260,7 @@ export class HeaderToolbar extends ReduxMixin(PolymerElement) {
private buyTicket = buyTicket;
private cfpHeader = cfpHeader;
private cfpLink = cfpLink;
private faqLink = faqLink;

@property({ type: Boolean, notify: true })
drawerOpened: boolean = false;
Expand Down
42 changes: 22 additions & 20 deletions src/hoverboard-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ import {
signInProviders,
title,
cfpHeader,
cfpLink
cfpLink,
faqLink,
} from './utils/data';
import './utils/icons';
import './utils/media-query';
Expand Down Expand Up @@ -172,29 +173,29 @@ export class HoverboardApp extends PolymerElement {
[[nav.label]]
</a>
</template>
<a href="[[ faqLink ]]" target="_blank" rel="noopener noreferrer"> FAQ </a>
</iron-selector>
<div>
<app-install></app-install>
<!-- <a-->
<!-- class="bottom-drawer-link"-->
<!-- href$="[[ticketUrl]]"-->
<!-- target="_blank"-->
<!-- rel="noopener noreferrer"-->
<!-- on-click="closeDrawer"-->
<!-- layout-->
<!-- horizontal-->
<!-- center-->
<!-- >-->
<!-- <span>[[buyTicket]]</span>-->
<!-- <iron-icon icon="hoverboard:open-in-new" primary></iron-icon>-->
<!-- </a>-->
<!-- <a href="[[ cfpLink ]]" target="_blank" rel="noopener noreferrer" on-tap="closeDrawer">-->
<!-- <paper-button class="buy-button" >[[ cfpHeader ]]</paper-button>-->
<!-- </a>-->
<!-- <a-->
<!-- class="bottom-drawer-link"-->
<!-- href$="[[ticketUrl]]"-->
<!-- target="_blank"-->
<!-- rel="noopener noreferrer"-->
<!-- on-click="closeDrawer"-->
<!-- layout-->
<!-- horizontal-->
<!-- center-->
<!-- >-->
<!-- <span>[[buyTicket]]</span>-->
<!-- <iron-icon icon="hoverboard:open-in-new" primary></iron-icon>-->
<!-- </a>-->
<!-- <a href="[[ cfpLink ]]" target="_blank" rel="noopener noreferrer" on-tap="closeDrawer">-->
<!-- <paper-button class="buy-button" >[[ cfpHeader ]]</paper-button>-->
<!-- </a>-->
</div>
</div>
</app-drawer>
Expand Down Expand Up @@ -224,6 +225,7 @@ export class HoverboardApp extends PolymerElement {
private shortLocation = location.short;
private cfpLink = cfpLink;
private cfpHeader = cfpHeader;
private faqLink = faqLink;

@query('#drawer')
drawer!: AppDrawerElement;
Expand All @@ -248,7 +250,7 @@ export class HoverboardApp extends PolymerElement {
stateChanged(state: RootState) {
this.tickets = state.tickets;
this.routeName = selectRouteName(window.location.pathname);
if(window.location.pathname.includes('/carapuce')){
if (window.location.pathname.includes('/carapuce')) {
this.noLayoutPage = true;
}
}
Expand Down
1 change: 1 addition & 0 deletions src/utils/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export {
image,
viewHighlights,
locationText,
faqLink,
} from '../../public/data/resources.json';
export {
contentLoaders,
Expand Down

0 comments on commit e1219ea

Please sign in to comment.