Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ workshops landing when logged in #1765

Open
wants to merge 5 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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 i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
// Enable translations for the following pages
'*': ['common', 'navbar', 'footer', 'alert-message', 'share', 'live-event', 'call-to-action', 'code-viewer', 'program-card', 'final-project', 'profile', 'login', 'signup'],
'/': ['home', 'social'],
'/[uid]': ['workshops'],
'/login': ['login', 'signup'],
'/example': ['counter'],
'/cohort/[cohortSlug]/[slug]/[version]': ['dashboard', 'choose-program', 'projects', 'profile', 'assignments'],
Expand Down
41 changes: 41 additions & 0 deletions prismicio-types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,27 @@ export interface EventCardsSliceDefaultPrimary {
* - **Documentation**: https://prismic.io/docs/field#key-text
*/
margin: prismic.KeyTextField;

/**
* Tech Filtered field in *EventCards → Primary*
*
* - **Field Type**: Text
* - **Placeholder**: Auto filter the events by a technology
* - **API ID Path**: event_cards.primary.tech_filtered
* - **Documentation**: https://prismic.io/docs/field#key-text
*/
tech_filtered: prismic.KeyTextField;

/**
* Show checked in events field in *EventCards → Primary*
*
* - **Field Type**: Boolean
* - **Placeholder**: *None*
* - **Default Value**: false
* - **API ID Path**: event_cards.primary.show_checked_in_events
* - **Documentation**: https://prismic.io/docs/field#boolean
*/
show_checked_in_events: prismic.BooleanField;
}

/**
Expand Down Expand Up @@ -1207,6 +1228,26 @@ export interface TechnologiesPillsSliceDefaultPrimary {
* - **Documentation**: https://prismic.io/docs/field#key-text
*/
margin: prismic.KeyTextField;

/**
* background field in *TechnologiesPills → Primary*
*
* - **Field Type**: Text
* - **Placeholder**: *None*
* - **API ID Path**: technologies_pills.primary.background
* - **Documentation**: https://prismic.io/docs/field#key-text
*/
background: prismic.KeyTextField;

/**
* padding top field in *TechnologiesPills → Primary*
*
* - **Field Type**: Text
* - **Placeholder**: *None*
* - **API ID Path**: technologies_pills.primary.padding_top
* - **Documentation**: https://prismic.io/docs/field#key-text
*/
padding_top: prismic.KeyTextField;
}

/**
Expand Down
1 change: 1 addition & 0 deletions public/locales/en/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"email": "Email",
"confirm-email": "Confirm email",
"phone": "Phone",
"popular-searches": "Popular searches",
"password": "Password",
"confirm-password": "Confirm password",
"difficulty": "Difficulty",
Expand Down
12 changes: 12 additions & 0 deletions public/locales/en/workshops.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
"button": "You don't have access to this event",
"can-join": "can join"
},
"intro": {
"top-title": "Welcome to workshops",
"lower-title": "Learn live, dive into tech skills",
"subtitle": "Discover the future of code technology learning with live sessions! Join now to boost your skills."
},
"form": {
"title": "Join this event",
"description": "Sign in to join other coders live solving technical or career challenges.",
Expand All @@ -31,6 +36,13 @@
"finished-title": "This event has ended",
"finished-description": "Keep looking for new learning experiences and keep your passion for knowledge alive!"
},
"search-your-fav-tech": "Search your favourite technology",
"upcoming-events": "Upcoming events",
"events-joined": "Events you have joined",
"tech-event": "{{tech}} events",
"searching-for": "Searching events with {{search}}",
"search-not-found": "{{search}} events not found",
"search-found": "Events found with search '{{search}}'",
"users-registered-count": "{{count}} people are already registered in this event. {{spot_count}} more spots available",
"join-workshop": "Register for this Workshop",
"join": "Join Now",
Expand Down
1 change: 1 addition & 0 deletions public/locales/es/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
"email": "Correo electrónico",
"confirm-email": "Confirmar correo electrónico",
"phone": "Teléfono",
"popular-searches": "Busquedas populares",
"password": "Contraseña",
"confirm-password": "Confirmar contraseña",
"difficulty": "Dificultad",
Expand Down
18 changes: 15 additions & 3 deletions public/locales/es/workshops.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,17 @@
"in-person": "Evento en persona",
"in-person-confirm": "Este es un evento presencial que se llevará a cabo en {{address}}. ¿Aún quieres confirmar tu asistencia?",
"confirm-attendance": "Si, si asistiré",
"deny-attendance" : "No, no asistiré",
"denny-access":{
"deny-attendance": "No, no asistiré",
"denny-access": {
"description": "Esto es un evento privado, solo estudiantes con acceso a",
"button": "No tienes acceso a este evento.",
"can-join": "pueden entrar"
},
"intro": {
"top-title": "Bienvenido a los talleres",
"lower-title": "Aprende en vivo y sumergete en las nuevas tecnologías",
"subtitle": "Descubre el futuro del aprendizaje tecnológico con sesiones en vivo. ¡Únete y potencia tus habilidades!"
},
"form": {
"title": "Únete a este evento",
"description": "Inicia sesión para unirte a otros programadores en vivo resolviendo desafíos técnicos o profesionales.",
Expand All @@ -31,6 +36,13 @@
"finished-title": "Este evento ha finalizado",
"finished-description": "¡Sigue buscando nuevas experiencias de aprendizaje y mantén viva tu pasión por el conocimiento!"
},
"search-your-fav-tech": "Busca tu teconología favorita",
"upcoming-events": "Próximos eventos",
"events-joined": "Eventos a los que te has unido",
"tech-event": "Eventos de {{tech}}",
"searching-for": "Buscando eventos de '{{search}}'",
"search-not-found": "No se encontraron eventos de '{{search}}'",
"search-found": "Eventos encontrados de '{{search}}'",
"users-registered-count": "{{count}} personas ya se han registrado a este evento. Quedan disponibles {{spot_count}} cupos más.",
"join-workshop": "Regístrarse al taller",
"join": "Unirse ahora",
Expand All @@ -54,4 +66,4 @@
"get-more-workshops": "Obten más workshops"
},
"back-to-workshops": "Regresar"
}
}
3 changes: 3 additions & 0 deletions slices/EventCards/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const EventCards = ({ slice }) => (
id={slice?.primary?.id_key}
title={slice?.primary?.title}
endpoint={slice?.primary?.endpoint}
techFilter={slice?.primary?.tech_filtered}
searchSensitive={slice?.primary?.search_sensitive}
showCheckedInEvents={slice?.primary?.show_checked_in_events}
margin={slice?.primary?.margin || '40px auto'}
/>
);
Expand Down
73 changes: 41 additions & 32 deletions slices/EventCards/mocks.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,43 @@
[
{
"__TYPE__": "SharedSliceContent",
"variation": "default",
"primary": {
"id_key": {
"__TYPE__": "FieldContent",
"value": "fewer",
"type": "Text"
},
"title": {
"__TYPE__": "FieldContent",
"value": "pictured",
"type": "Text"
},
"endpoint": {
"__TYPE__": "FieldContent",
"value": "carried",
"type": "Text"
},
"margin": {
"__TYPE__": "FieldContent",
"value": "continent",
"type": "Text"
}
},
"items": [
{
"__TYPE__": "GroupItemContent",
"value": []
}
]
}
{
"__TYPE__": "SharedSliceContent",
"variation": "default",
"primary": {
"id_key": {
"__TYPE__": "FieldContent",
"value": "fewer",
"type": "Text"
},
"title": {
"__TYPE__": "FieldContent",
"value": "pictured",
"type": "Text"
},
"endpoint": {
"__TYPE__": "FieldContent",
"value": "carried",
"type": "Text"
},
"margin": {
"__TYPE__": "FieldContent",
"value": "continent",
"type": "Text"
},
"tech_filtered": {
"__TYPE__": "FieldContent",
"value": "swam",
"type": "Text"
},
"show_checked_in_events": {
"__TYPE__": "BooleanContent",
"value": true
}
},
"items": [
{
"__TYPE__": "GroupItemContent",
"value": []
}
]
}
]
33 changes: 20 additions & 13 deletions slices/EventCards/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,42 @@
"primary": {
"id_key": {
"type": "Text",
"config": {
"label": "Id key",
"placeholder": ""
}
"config": { "label": "Id key", "placeholder": "" }
},
"title": {
"type": "Text",
"config": {
"label": "Title",
"placeholder": ""
}
"config": { "label": "Title", "placeholder": "" }
},
"endpoint": {
"type": "Text",
"config": {
"label": "Endpoint",
"placeholder": ""
}
"config": { "label": "Endpoint", "placeholder": "" }
},
"margin": {
"type": "Text",
"config": {
"label": "Margin",
"placeholder": "top, right, bottom, left"
}
},
"tech_filtered": {
"type": "Text",
"config": {
"label": "Tech Filtered",
"placeholder": "Auto filter the events by a technology"
}
},
"show_checked_in_events": {
"type": "Boolean",
"config": {
"label": "Show checked in events",
"default_value": false,
"placeholder_true": "true",
"placeholder_false": "false"
}
}
},
"items": {},
"imageUrl": "https://images.prismic.io/slice-machine/621a5ec4-0387-4bc5-9860-2dd46cbc07cd_default_ss.png?auto=compress,format"
}
]
}
}
104 changes: 52 additions & 52 deletions slices/Markdown/mocks.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
[
{
"__TYPE__": "SharedSliceContent",
"variation": "default",
"primary": {
"title": {
"__TYPE__": "FieldContent",
"value": "left",
"type": "Text"
},
"description": {
"__TYPE__": "FieldContent",
"value": "chart",
"type": "Text"
},
"markdown": {
"__TYPE__": "StructuredTextContent",
"value": [
{
"type": "paragraph",
"content": {
"text": "Consequat aliqua pariatur ea dolore reprehenderit nostrud aliquip eu magna nulla ea voluptate Lorem et. Officia aliquip occaecat reprehenderit cillum laboris minim est nulla consectetur aliqua Lorem sit tempor. Ad consectetur exercitation nisi id nostrud nulla ipsum ipsum."
}
}
]
},
"enable_table_of_content": {
"__TYPE__": "BooleanContent",
"value": false
},
"id_key": {
"__TYPE__": "FieldContent",
"value": "should",
"type": "Text"
},
"margin": {
"__TYPE__": "FieldContent",
"value": "opposite",
"type": "Text"
},
"padding": {
"__TYPE__": "FieldContent",
"value": "won",
"type": "Text"
}
},
"items": [
{
"__TYPE__": "GroupItemContent",
"value": []
}
]
}
{
"__TYPE__": "SharedSliceContent",
"variation": "default",
"primary": {
"title": {
"__TYPE__": "FieldContent",
"value": "left",
"type": "Text"
},
"description": {
"__TYPE__": "FieldContent",
"value": "chart",
"type": "Text"
},
"markdown": {
"__TYPE__": "StructuredTextContent",
"value": [
{
"type": "paragraph",
"content": {
"text": "Consequat aliqua pariatur ea dolore reprehenderit nostrud aliquip eu magna nulla ea voluptate Lorem et. Officia aliquip occaecat reprehenderit cillum laboris minim est nulla consectetur aliqua Lorem sit tempor. Ad consectetur exercitation nisi id nostrud nulla ipsum ipsum."
}
}
]
},
"enable_table_of_content": {
"__TYPE__": "BooleanContent",
"value": false
},
"id_key": {
"__TYPE__": "FieldContent",
"value": "should",
"type": "Text"
},
"margin": {
"__TYPE__": "FieldContent",
"value": "opposite",
"type": "Text"
},
"padding": {
"__TYPE__": "FieldContent",
"value": "won",
"type": "Text"
}
},
"items": [
{
"__TYPE__": "GroupItemContent",
"value": []
}
]
}
]
Loading