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

Refactor events page #102

Merged
merged 124 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
f4178a7
new(views,components,i18n): test new filters and new event data struc…
rennavittorio Sep 18, 2023
200b579
feat(views,i18n,components,assets): wip on new event-cards design
rennavittorio Sep 19, 2023
8eacb53
feat(views,components): wip on main event-card
rennavittorio Sep 24, 2023
7fb5b72
refactor(views,i18n): refacotr array type declaration and add ticketH…
rennavittorio Sep 24, 2023
590dbea
feat(config): add project variables to unocss config file
rennavittorio Sep 24, 2023
0f49054
fix(components): change custom colors to project variables and add te…
rennavittorio Sep 24, 2023
44bed5f
chore(components): add lg condition to main card style
rennavittorio Sep 24, 2023
d00da97
feat(view,components): add images to card sm and adjust some spaces
rennavittorio Sep 25, 2023
04c3977
feat(views,functions): add week filter
rennavittorio Sep 28, 2023
7e22da4
chore(views,component): move events to proper file
rennavittorio Oct 10, 2023
e9e7ddd
chore(component): fix img event visual
rennavittorio Oct 10, 2023
a700332
fix(functions): fix time filter
rennavittorio Oct 10, 2023
dfd6947
chore(i18n): import real event data
rennavittorio Oct 10, 2023
e1d3d42
Merge remote-tracking branch 'origin/main' into HEAD
Readpato Oct 16, 2023
cae1b8e
fix: server run
Readpato Oct 16, 2023
83e0265
style(EventList): modify base style
Readpato Oct 16, 2023
09319e0
refactor(i18n/events): modify types
Readpato Oct 16, 2023
4f393c6
refactor(EventCardDetail): clean up
Readpato Oct 16, 2023
10a1afa
refactor(EventCard): generalize component
Readpato Oct 16, 2023
1df5eb6
refactor(EventCardLg): fine tunings
Readpato Oct 16, 2023
9e2fb2f
chore(EventList): clean up and comment unused stuff
Readpato Oct 16, 2023
1c51646
chore(package.json): add missing cypress script
Readpato Oct 16, 2023
4bb03f0
chore(deps): add carbon icons
Readpato Oct 17, 2023
1743011
chore(eslintrc): turn off line break
Readpato Oct 17, 2023
463a7d0
refactor(events): modify types
Readpato Oct 17, 2023
0342236
feat(IconDetail): add new component for icon and text
Readpato Oct 17, 2023
11fee8a
feat(CtaComponent): add tertiary class
Readpato Oct 17, 2023
4b82ee0
refactor(EventList): add modified EventCard
Readpato Oct 17, 2023
6061549
refactor(EventCard): modify structure and style
Readpato Oct 17, 2023
86c18e7
refactor(unocss): safelist icons
Readpato Oct 17, 2023
c9b6ed5
refactor(EventCard/EventList): implement EventCard
Readpato Oct 17, 2023
b9547f2
chore(EventCardLg/Sm): delete components
Readpato Oct 17, 2023
d824bad
refactor(EventCard): add overline field
Readpato Oct 24, 2023
0d1c862
refactor(events): add overline type
Readpato Oct 24, 2023
3956d42
refactor(events): remove icon property, handle with id
Readpato Oct 24, 2023
dc7e202
refactor(i18n): separate events and reduce them by language
Readpato Oct 29, 2023
42b8aed
refactor(events): update copy and types
Readpato Oct 30, 2023
1bb8ade
refactor(EventCard): add proper type
Readpato Oct 30, 2023
cb38aea
refactor(EventList): remove unnecesary code, filter events
Readpato Oct 30, 2023
5fa0b7a
refactor(messages): delete unnecesary label
Readpato Oct 30, 2023
7ca70be
chore(EventList): add proper import casing
Readpato Oct 30, 2023
d8abff2
refactor(EventCard/List): add CTA on grid
Readpato Oct 30, 2023
533d2fc
refactor(events): create starter placeholder for form
Readpato Nov 1, 2023
e6e7667
refactor(EventList): create missing fields, simplify logic
Readpato Nov 4, 2023
49a33f7
style(App): add proper order of rules
Readpato Nov 4, 2023
95bdd77
refactor(EventList): remove ref, transform into readonly
Readpato Nov 4, 2023
3e8f23a
chore(vite.config): add experimental defineModel
Readpato Nov 4, 2023
a2d3ffb
feat(EventForm): create form component
Readpato Nov 4, 2023
2dbbe99
refactor(EventList): pass down models to form
Readpato Nov 4, 2023
1a18d2c
refactor(EventForm): accept all as option value
Readpato Nov 6, 2023
18d08a2
refactor(i18n/events): add eng text
Readpato Nov 6, 2023
fd3f67f
fix(messages): pass proper lang events
Readpato Nov 6, 2023
278775f
refactor(EventList): add specific filter
Readpato Nov 6, 2023
9b1813d
refactor(EventList): add sorting function
Readpato Nov 10, 2023
e149ad4
feat(EventFormSelect): create select component
Readpato Nov 10, 2023
a06e311
refactor(EventForm): utilizer new EventForm component
Readpato Nov 10, 2023
23c4104
refactor(EventList): modify split method parameter
Readpato Nov 10, 2023
156e3df
refactor(events): modify placeholder dates
Readpato Nov 10, 2023
c6ff693
chore(events): delete old events file
Readpato Nov 10, 2023
31400d0
chore(index): delete todo comment
Readpato Nov 10, 2023
d988943
refactor(events): separate events messages further
Readpato Nov 11, 2023
a1cb8a6
refactor(EventList): update computed property
Readpato Nov 11, 2023
ecd700e
refactor(EventForm): add correct name to selects
Readpato Nov 11, 2023
63bf104
chore: delete unused files
Readpato Nov 11, 2023
f2d7169
chore(unocss): clean up config
Readpato Nov 11, 2023
95de63f
chore(deps): delete unnecesary deps
Readpato Nov 11, 2023
496bd56
refactor(EventForm): modify display
Readpato Nov 12, 2023
3969620
style(EventCard): adjust styling for figure and text
Readpato Nov 12, 2023
ac92cd6
feat(EventList): add TransitionGroup for cards
Readpato Nov 12, 2023
a06b31f
refactor(events/index): update types
Readpato Nov 12, 2023
403e6db
refactor(EventList): update fields with new types
Readpato Nov 12, 2023
6e3a551
refactor(components): update components with new types
Readpato Nov 12, 2023
8a0ec8b
refactor(i18n/events): update events JSON with new types
Readpato Nov 12, 2023
02ede98
refactor(events): move components to homonym folder
Readpato Nov 12, 2023
b368cdc
refactor(Pages): rename views folder into pages
Readpato Nov 12, 2023
f777075
refactor(EventForm): sort cities alphabetically
Readpato Nov 12, 2023
b660db7
fix(EventCard): add correct type
Readpato Nov 12, 2023
25d41cf
refactor(index): make headline optional
Readpato Nov 12, 2023
cc9bbb7
refactor(EventCard): display category and add shrink to image
Readpato Nov 12, 2023
3bbc737
refactor(CtaComponent): modify tertiary background
Readpato Nov 12, 2023
09e5009
refactor(EventCard): add category background color
Readpato Nov 12, 2023
daa1784
refactor(EventList): simplify sort function
Readpato Nov 12, 2023
1ead5bd
refactor(i18n/events): update events structure and type
Readpato Nov 12, 2023
a4991b6
refactor(IconDetail): update switch case
Readpato Nov 12, 2023
6390062
chore(types): delete unnecesary type
Readpato Nov 12, 2023
b5cf5f6
refactor(EventCard): add fallback image to card
Readpato Nov 12, 2023
27ea7d3
refactor(events/index): add proper URL type
Readpato Nov 12, 2023
09f6f6e
style(EventCard): adjust height and width
Readpato Nov 12, 2023
3ec0036
style(EventList): reduce gap between cards
Readpato Nov 12, 2023
5ecbc31
chore(i18n/events): update fields
Readpato Nov 12, 2023
0d59239
style(EventCard): adjust image height
Readpato Nov 13, 2023
ee6cb2d
refactor(i18n/events): update OSday 2024 fields
Readpato Nov 13, 2023
69e8adb
refactor(EventList): remove cta if event is old
Readpato Nov 13, 2023
4282bbd
feat(EventForm): create emit for toggling past events
Readpato Nov 19, 2023
4516bb0
refactor(EventList): add condition for filtering past events
Readpato Nov 19, 2023
c07ebb0
refactor(EventForm): add CTA text depending on state
Readpato Nov 19, 2023
d62a7dc
refactor(EventList): pass hidePastEvents prop
Readpato Nov 19, 2023
6f406a6
refactor(i18n/events): add text for past events CTA
Readpato Nov 19, 2023
e84a356
refactor(EventForm): add proper logic message
Readpato Nov 24, 2023
35f9955
refactor(PageEvents): rename file, adjust router
Readpato Nov 24, 2023
5d49265
chore(package.json): add files as ES modules
Readpato Nov 24, 2023
eedfdcb
refactor: update vite alias and ts paths
Readpato Nov 24, 2023
d93ef49
chore(config): add new path alias
Readpato Nov 24, 2023
ff51d5e
refactor(i18n/events): add tickets and no events copy
Readpato Nov 24, 2023
bd5657d
refactor(EventForm): utilize unocss attributify
Readpato Nov 24, 2023
cc16488
refactor(PageEvents): add session link, utilize unocss attributify
Readpato Nov 24, 2023
a212203
refactor(i18n/events): move tickets field outside of form
Readpato Nov 24, 2023
937d875
refactor(PageEvents): add proper tickets text, target and link
Readpato Nov 24, 2023
26733a9
chore: create rust session
Readpato Nov 25, 2023
802ce56
chore: create verona#1 session
Readpato Nov 25, 2023
e46c08a
refactor(EventCard): reduce headline and title font size
Readpato Nov 26, 2023
358b423
chore: create verona#3 session
Readpato Nov 26, 2023
337d49f
chore(i18/qwik): update data entry
Readpato Nov 26, 2023
d0560ac
chore: create milan#1 session
Readpato Nov 26, 2023
bba4bb7
chore(sessions): update headline and tiitle
Readpato Nov 26, 2023
fad933c
chore: create milan#2 session
Readpato Nov 26, 2023
791fee8
refactor(i18/osday24): add tickets link
Readpato Nov 26, 2023
aaba296
refactor(PageEvents): open new tab when going to event
Readpato Nov 26, 2023
6c41518
refactor(i18n/events): create verona#3 event
Readpato Nov 26, 2023
ce6e0ff
chore: update files names and location
Readpato Nov 26, 2023
21f17e5
style: add dark/light mode and utilize unocss attributify
Readpato Nov 26, 2023
53c0197
style(CtaComponent): add quaternary style
Readpato Nov 26, 2023
bf55a06
Merge branch 'chore/merge-main' into HEAD
Readpato Dec 8, 2023
e19fbe5
refactor(messages): add accessibility messages
Readpato Dec 8, 2023
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
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": "@antfu",
"ignorePatterns": ["*.code-workspace"],
"rules": {
"antfu/top-level-function": "off"
"antfu/top-level-function": "off",
"vue/singleline-html-element-content-newline": "off"
}
}
85 changes: 62 additions & 23 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"node": ">=19.4.0",
"npm": ">=9.2.0"
},
"type": "module",
"scripts": {
"build": "vite build",
"cy:o": "cypress open",
Expand Down Expand Up @@ -33,9 +34,10 @@
},
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@iconify/vue": "^4.1.1",
"@types/node": "^20.4.8",
"@unocss/preset-attributify": "^0.54.2",
"@unocss/preset-icons": "^0.54.2",
"@unocss/preset-icons": "^0.54.3",
"@unocss/preset-uno": "^0.54.2",
"@unocss/preset-web-fonts": "^0.54.2",
"@vitejs/plugin-vue": "^4.0.0",
Expand Down
134 changes: 0 additions & 134 deletions src/components/EventCard.vue

This file was deleted.

38 changes: 30 additions & 8 deletions src/components/buttons/CtaComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ import { useCtaComponent } from '@/functions/useCtaComponent'
defineProps<{
secondary?: boolean
ariaText?: string
tertiary?: boolean
quaternary?: boolean
}>()

const { component, bindings } = useCtaComponent(useAttrs())
</script>

<template>
<component
:is="component"
v-bind="bindings"
:aria-label="ariaText"
class="cta"
:class="{ 'secondary py-1 px-1.5 rounded-1': secondary }"
>
<component :is="component" v-bind="bindings" :aria-label="ariaText" class="cta" :class="{
'py-1 px-1.5 rounded-1': secondary || tertiary || quaternary,
'secondary': secondary,
'tertiary': tertiary,
'quaternary': quaternary,
}">
<slot />
</component>
</template>
Expand Down Expand Up @@ -46,11 +47,32 @@ const { component, bindings } = useCtaComponent(useAttrs())

@include breakpoint(md) {
&:hover {
background: $bg-secondary;
background: $bg-secondary;
}
}
}

.tertiary {
border: none;
background: rgb(238 0 0) !important;
background: linear-gradient(90deg, rgb(238 0 0 / 100%) 0%, rgb(190 30 45 / 100%) 100%) !important;
color: #fff !important;
transition: transform 0.3s ease-in;

@include breakpoint(md) {
&:hover {
transform: scale(1.08);
}
}
}

.quaternary {
border: none;
background-color: $nord10 !important;
color: #fff !important;
transition: transform 0.3s ease-in;
}

.#{$dark-mode-class} {
.cta {
border: none;
Expand Down
Loading