@openeventkit/event-site 2.1.40 → 2.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/.claude/settings.local.json +11 -0
  2. package/package.json +1 -1
  3. package/src/components/AuthComponent.js +11 -3
  4. package/src/components/Certificates/generatePDF.js +4 -5
  5. package/static/fonts/fonts.css +8 -150
  6. package/static/fonts/nunito-sans/NunitoSans-Italic-Variable.ttf +0 -0
  7. package/static/fonts/nunito-sans/NunitoSans-Variable.ttf +0 -0
  8. package/static/fonts/nunito-sans/nunito-sans-v18-latin-200.woff2 +0 -0
  9. package/static/fonts/nunito-sans/nunito-sans-v18-latin-200italic.ttf +0 -0
  10. package/static/fonts/nunito-sans/nunito-sans-v18-latin-200italic.woff2 +0 -0
  11. package/static/fonts/nunito-sans/nunito-sans-v18-latin-300.woff2 +0 -0
  12. package/static/fonts/nunito-sans/nunito-sans-v18-latin-300italic.ttf +0 -0
  13. package/static/fonts/nunito-sans/nunito-sans-v18-latin-300italic.woff2 +0 -0
  14. package/static/fonts/nunito-sans/nunito-sans-v18-latin-400.ttf +0 -0
  15. package/static/fonts/nunito-sans/nunito-sans-v18-latin-400.woff2 +0 -0
  16. package/static/fonts/nunito-sans/nunito-sans-v18-latin-400italic.ttf +0 -0
  17. package/static/fonts/nunito-sans/nunito-sans-v18-latin-400italic.woff2 +0 -0
  18. package/static/fonts/nunito-sans/nunito-sans-v18-latin-500.ttf +0 -0
  19. package/static/fonts/nunito-sans/nunito-sans-v18-latin-500.woff2 +0 -0
  20. package/static/fonts/nunito-sans/nunito-sans-v18-latin-500italic.ttf +0 -0
  21. package/static/fonts/nunito-sans/nunito-sans-v18-latin-500italic.woff2 +0 -0
  22. package/static/fonts/nunito-sans/nunito-sans-v18-latin-600.woff2 +0 -0
  23. package/static/fonts/nunito-sans/nunito-sans-v18-latin-600italic.woff2 +0 -0
  24. package/static/fonts/nunito-sans/nunito-sans-v18-latin-700.ttf +0 -0
  25. package/static/fonts/nunito-sans/nunito-sans-v18-latin-700.woff2 +0 -0
  26. package/static/fonts/nunito-sans/nunito-sans-v18-latin-700italic.woff2 +0 -0
  27. package/static/fonts/nunito-sans/nunito-sans-v18-latin-800.ttf +0 -0
  28. package/static/fonts/nunito-sans/nunito-sans-v18-latin-800.woff2 +0 -0
  29. package/static/fonts/nunito-sans/nunito-sans-v18-latin-800italic.woff2 +0 -0
  30. package/static/fonts/nunito-sans/nunito-sans-v18-latin-900.ttf +0 -0
  31. package/static/fonts/nunito-sans/nunito-sans-v18-latin-900.woff2 +0 -0
  32. package/static/fonts/nunito-sans/nunito-sans-v18-latin-900italic.woff2 +0 -0
@@ -0,0 +1,11 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(source ~/.nvm/nvm.sh)",
5
+ "Bash(nvm use v20.19.5)",
6
+ "Bash(npm run develop:*)"
7
+ ],
8
+ "deny": [],
9
+ "ask": []
10
+ }
11
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "2.1.40",
4
+ "version": "2.1.41",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@emotion/server": "^11.11.0",
@@ -194,16 +194,24 @@ const AuthComponent = ({
194
194
  </Link>
195
195
  );
196
196
 
197
+ // Determine if we should show any button
198
+ const showLoginButton = !isLoggedUser;
199
+ const showEnterButton = isLoggedUser && summitPhase >= PHASES.DURING && hasVirtualBadge;
200
+
201
+ // Don't render wrapper if no button to show and modal not active
202
+ if (!showLoginButton && !showEnterButton && !isActive) {
203
+ return null;
204
+ }
205
+
197
206
  return (
198
207
  <div style={style} className={styles.authComponent}>
199
- {!isLoggedUser ?
208
+ {showLoginButton ?
200
209
  renderLoginButton ? renderLoginButton(handleOpenPopup) : defaultLoginButton()
201
210
  :
202
- (summitPhase >= PHASES.DURING && hasVirtualBadge ?
211
+ showEnterButton ?
203
212
  renderEnterButton ? renderEnterButton(handleEnterEvent) : defaultEnterButton()
204
213
  :
205
214
  null
206
- )
207
215
  }
208
216
  {isActive &&
209
217
  <div id={`${styles.modal}`} className="modal is-active">
@@ -1,21 +1,20 @@
1
1
  import React from "react";
2
2
  import { Document, Page, Text, View, Image, StyleSheet, Font, pdf } from "@react-pdf/renderer";
3
3
 
4
- import fontRegular from "../../../static/fonts/nunito-sans/nunito-sans-v18-latin-400.ttf";
5
- import fontBold from "../../../static/fonts/nunito-sans/nunito-sans-v18-latin-700.ttf";
4
+ import fontVariable from "../../../static/fonts/nunito-sans/NunitoSans-Variable.ttf";
6
5
  import { USER_ROLES } from './constants';
7
6
 
8
7
  const registerDefaultFont = () => {
9
8
  try {
10
9
  Font.register({
11
- family: "Nunito Sans",
10
+ family: "Nunito Sans",
12
11
  fonts: [
13
12
  {
14
- src: fontRegular,
13
+ src: fontVariable,
15
14
  fontWeight: "normal"
16
15
  },
17
16
  {
18
- src: fontBold,
17
+ src: fontVariable,
19
18
  fontWeight: "bold"
20
19
  },
21
20
  ]
@@ -1,165 +1,23 @@
1
1
  /**
2
- * Nunito Sans Font Family - Version 18
3
- * Weights: 200, 300, 400, 500, 600, 700, 800, 900
2
+ * Nunito Sans Variable Font Family
3
+ * Weights: 200-1000 (variable)
4
4
  * Styles: normal, italic
5
5
  */
6
6
 
7
- /* nunito-sans-200 - latin */
7
+ /* Nunito Sans Variable - Normal */
8
8
  @font-face {
9
9
  font-family: "Nunito Sans";
10
10
  font-style: normal;
11
- font-weight: 200;
11
+ font-weight: 200 1000;
12
12
  font-display: swap;
13
- src: local(""),
14
- url("nunito-sans/nunito-sans-v18-latin-200.woff2") format("woff2");
13
+ src: url("nunito-sans/NunitoSans-Variable.ttf") format("truetype");
15
14
  }
16
15
 
17
- /* nunito-sans-200italic - latin */
16
+ /* Nunito Sans Variable - Italic */
18
17
  @font-face {
19
18
  font-family: "Nunito Sans";
20
19
  font-style: italic;
21
- font-weight: 200;
20
+ font-weight: 200 1000;
22
21
  font-display: swap;
23
- src: local(""),
24
- url("nunito-sans/nunito-sans-v18-latin-200italic.woff2") format("woff2");
22
+ src: url("nunito-sans/NunitoSans-Italic-Variable.ttf") format("truetype");
25
23
  }
26
-
27
- /* nunito-sans-300 - latin */
28
- @font-face {
29
- font-family: "Nunito Sans";
30
- font-style: normal;
31
- font-weight: 300;
32
- font-display: swap;
33
- src: local(""),
34
- url("nunito-sans/nunito-sans-v18-latin-300.woff2") format("woff2");
35
- }
36
-
37
- /* nunito-sans-300italic - latin */
38
- @font-face {
39
- font-family: "Nunito Sans";
40
- font-style: italic;
41
- font-weight: 300;
42
- font-display: swap;
43
- src: local(""),
44
- url("nunito-sans/nunito-sans-v18-latin-300italic.woff2") format("woff2");
45
- }
46
-
47
- /* nunito-sans-400 - latin */
48
- @font-face {
49
- font-family: "Nunito Sans";
50
- font-style: normal;
51
- font-weight: 400;
52
- font-display: swap;
53
- src: local(""),
54
- url("nunito-sans/nunito-sans-v18-latin-400.woff2") format("woff2");
55
- }
56
-
57
- /* nunito-sans-400italic - latin */
58
- @font-face {
59
- font-family: "Nunito Sans";
60
- font-style: italic;
61
- font-weight: 400;
62
- font-display: swap;
63
- src: local(""),
64
- url("nunito-sans/nunito-sans-v18-latin-400italic.woff2") format("woff2");
65
- }
66
-
67
- /* nunito-sans-500 - latin */
68
- @font-face {
69
- font-family: "Nunito Sans";
70
- font-style: normal;
71
- font-weight: 500;
72
- font-display: swap;
73
- src: local(""),
74
- url("nunito-sans/nunito-sans-v18-latin-500.woff2") format("woff2");
75
- }
76
-
77
- /* nunito-sans-500italic - latin */
78
- @font-face {
79
- font-family: "Nunito Sans";
80
- font-style: italic;
81
- font-weight: 500;
82
- font-display: swap;
83
- src: local(""),
84
- url("nunito-sans/nunito-sans-v18-latin-500italic.woff2") format("woff2");
85
- }
86
-
87
- /* nunito-sans-600 - latin */
88
- @font-face {
89
- font-family: "Nunito Sans";
90
- font-style: normal;
91
- font-weight: 600;
92
- font-display: swap;
93
- src: local(""),
94
- url("nunito-sans/nunito-sans-v18-latin-600.woff2") format("woff2");
95
- }
96
-
97
- /* nunito-sans-600italic - latin */
98
- @font-face {
99
- font-family: "Nunito Sans";
100
- font-style: italic;
101
- font-weight: 600;
102
- font-display: swap;
103
- src: local(""),
104
- url("nunito-sans/nunito-sans-v18-latin-600italic.woff2") format("woff2");
105
- }
106
-
107
- /* nunito-sans-700 - latin */
108
- @font-face {
109
- font-family: "Nunito Sans";
110
- font-style: normal;
111
- font-weight: 700;
112
- font-display: swap;
113
- src: local(""),
114
- url("nunito-sans/nunito-sans-v18-latin-700.woff2") format("woff2");
115
- }
116
-
117
- /* nunito-sans-700italic - latin */
118
- @font-face {
119
- font-family: "Nunito Sans";
120
- font-style: italic;
121
- font-weight: 700;
122
- font-display: swap;
123
- src: local(""),
124
- url("nunito-sans/nunito-sans-v18-latin-700italic.woff2") format("woff2");
125
- }
126
-
127
- /* nunito-sans-800 - latin */
128
- @font-face {
129
- font-family: "Nunito Sans";
130
- font-style: normal;
131
- font-weight: 800;
132
- font-display: swap;
133
- src: local(""),
134
- url("nunito-sans/nunito-sans-v18-latin-800.woff2") format("woff2");
135
- }
136
-
137
- /* nunito-sans-800italic - latin */
138
- @font-face {
139
- font-family: "Nunito Sans";
140
- font-style: italic;
141
- font-weight: 800;
142
- font-display: swap;
143
- src: local(""),
144
- url("nunito-sans/nunito-sans-v18-latin-800italic.woff2") format("woff2");
145
- }
146
-
147
- /* nunito-sans-900 - latin */
148
- @font-face {
149
- font-family: "Nunito Sans";
150
- font-style: normal;
151
- font-weight: 900;
152
- font-display: swap;
153
- src: local(""),
154
- url("nunito-sans/nunito-sans-v18-latin-900.woff2") format("woff2");
155
- }
156
-
157
- /* nunito-sans-900italic - latin */
158
- @font-face {
159
- font-family: "Nunito Sans";
160
- font-style: italic;
161
- font-weight: 900;
162
- font-display: swap;
163
- src: local(""),
164
- url("nunito-sans/nunito-sans-v18-latin-900italic.woff2") format("woff2");
165
- }