Skip to content

Commit 977d9d5

Browse files
committed
Rebrand to Loot Survivor and live responsive checks
1 parent 7accb68 commit 977d9d5

9 files changed

Lines changed: 50 additions & 34 deletions

File tree

client/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@
2121
href="https://fonts.googleapis.com/css2?family=VT323&display=swap"
2222
rel="stylesheet"
2323
/>
24-
<title>Loot Survivor 2</title>
24+
<title>Loot Survivor</title>
2525

2626
<!-- Open Graph / Facebook -->
2727
<meta property="og:type" content="website" />
2828
<meta property="og:url" content="https://lootsurvivor.xyz" />
29-
<meta property="og:title" content="Loot Survivor 2" />
29+
<meta property="og:title" content="Loot Survivor" />
3030
<meta
3131
property="og:description"
3232
content="Loot Survivor is a verifiably random, procedurally generated dungeon crawler. Explore the endless dungeon in pursuit of mythical loot while fighting for your life against beasts and treacherous obstacles."
@@ -37,7 +37,7 @@
3737

3838
<meta property="twitter:card" content="summary_large_image" />
3939
<meta property="twitter:url" content="https://deathmountain.gg/survivor" />
40-
<meta property="twitter:title" content="Loot Survivor 2" />
40+
<meta property="twitter:title" content="Loot Survivor" />
4141
<meta
4242
property="twitter:description"
4343
content="Loot Survivor is a verifiably random, procedurally generated dungeon crawler. Explore the endless dungeon in pursuit of mythical loot while fighting for your life against beasts and treacherous obstacles."

client/src/App.tsx

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { useState, useEffect } from 'react';
12
import Box from '@mui/material/Box';
23
import { StyledEngineProvider, ThemeProvider } from '@mui/material/styles';
34
import { SnackbarProvider } from 'notistack';
@@ -19,10 +20,27 @@ import { StatisticsProvider } from './contexts/Statistics';
1920
import TermsOfServiceModal from '@/desktop/components/TermsOfServiceModal';
2021
import TermsOfServiceScreen from '@/mobile/containers/TermsOfServiceScreen';
2122

23+
const MOBILE_BREAKPOINT = 1125;
24+
25+
function useIsSmallViewport() {
26+
const [isSmall, setIsSmall] = useState(() => window.innerWidth < MOBILE_BREAKPOINT);
27+
28+
useEffect(() => {
29+
const handleResize = () => {
30+
setIsSmall(window.innerWidth < MOBILE_BREAKPOINT);
31+
};
32+
window.addEventListener('resize', handleResize);
33+
return () => window.removeEventListener('resize', handleResize);
34+
}, []);
35+
36+
return isSmall;
37+
}
38+
2239
function AppContent() {
2340
const { useMobileClient } = useUIStore();
2441
const { showTermsOfService, acceptTermsOfService, logout } = useController();
25-
const shouldShowMobile = isMobile || (isBrowser && useMobileClient);
42+
const isSmallViewport = useIsSmallViewport();
43+
const shouldShowMobile = isMobile || isSmallViewport || (isBrowser && useMobileClient);
2644

2745
return (
2846
<>

client/src/desktop/components/TermsOfServiceModal.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ const TermsOfServiceModal = ({
7171
}}
7272
>
7373
<Typography variant="h6" sx={{ fontWeight: 600, fontSize: "1.1rem", color: "white" }}>
74-
Loot Survivor 2 - Terms of Service
74+
Loot Survivor - Terms of Service
7575
</Typography>
7676
</Box>
7777

@@ -131,7 +131,7 @@ const TermsOfServiceModal = ({
131131
}}
132132
>
133133
These Terms of Service ("Terms") govern your access to and use of
134-
the Loot Survivor 2 game ("Game"), including any related websites,
134+
the Loot Survivor game ("Game"), including any related websites,
135135
smart contracts, tokens, and services (collectively, the
136136
"Services"). The Game is created and operated by Provable Labs Ltd.,
137137
a company incorporated in the British Virgin Islands ("Provable
@@ -151,7 +151,7 @@ const TermsOfServiceModal = ({
151151
</li>
152152
<li>
153153
You are solely responsible for ensuring that your participation
154-
in Loot Survivor 2 complies with all laws and regulations in
154+
in Loot Survivor complies with all laws and regulations in
155155
your jurisdiction.
156156
</li>
157157
<li>
@@ -163,7 +163,7 @@ const TermsOfServiceModal = ({
163163
<strong>2. Game Mechanics</strong>
164164
<ul>
165165
<li>
166-
Loot Survivor 2 operates entirely on blockchain-based immutable
166+
Loot Survivor operates entirely on blockchain-based immutable
167167
smart contracts.
168168
</li>
169169
<li>
@@ -177,7 +177,7 @@ const TermsOfServiceModal = ({
177177
</ul>
178178
<strong>3. Risk of Loss</strong>
179179
<br />
180-
All transactions and gameplay actions in Loot Survivor 2 are final
180+
All transactions and gameplay actions in Loot Survivor are final
181181
and irreversible.
182182
<br />
183183
<br />
@@ -212,7 +212,7 @@ const TermsOfServiceModal = ({
212212
<strong>5. No Recourse</strong>
213213
<ul>
214214
<li>
215-
By participating in Loot Survivor 2, you waive all rights to
215+
By participating in Loot Survivor, you waive all rights to
216216
claims or recourse against Provable Labs, the DAO, or any
217217
associated entities or individuals.
218218
</li>
@@ -243,17 +243,17 @@ const TermsOfServiceModal = ({
243243
<strong>7. Intellectual Property (CC0)</strong>
244244
<ul>
245245
<li>
246-
Loot Survivor 2 and its related creative works are released
246+
Loot Survivor and its related creative works are released
247247
under the Creative Commons CC0 Public Domain Dedication.
248248
</li>
249249
<li>
250250
This means you are free to copy, modify, distribute, and use the
251-
content of Loot Survivor 2, even for commercial purposes,
251+
content of Loot Survivor, even for commercial purposes,
252252
without asking permission.
253253
</li>
254254
<li>
255255
Provable Labs makes no claim of copyright, trademark, or other
256-
intellectual property rights over the Loot Survivor 2 creative
256+
intellectual property rights over the Loot Survivor creative
257257
works.
258258
</li>
259259
<li>
@@ -298,13 +298,13 @@ const TermsOfServiceModal = ({
298298
revised version.
299299
</li>
300300
<li>
301-
Continued participation in Loot Survivor 2 after updates
301+
Continued participation in Loot Survivor after updates
302302
constitutes acceptance of the new Terms.
303303
</li>
304304
</ul>
305305
<strong>11. Acknowledgment</strong>
306306
<br />
307-
By participating in Loot Survivor 2, you confirm that you have read,
307+
By participating in Loot Survivor, you confirm that you have read,
308308
understood, and agreed to these Terms, and that you accept all risks
309309
and responsibilities associated with participation.
310310
</Typography>

client/src/desktop/overlays/Death.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ export default function DeathOverlay() {
3737
const shareMessage =
3838
finalBattleEvent?.type === "obstacle"
3939
? `I got a score of ${adventurer?.xp
40-
} in Loot Survivor 2: ${dungeon.name}. \n\n💀 ${OBSTACLE_NAMES[finalBattleEvent.obstacle?.id!]
40+
} in Loot Survivor: ${dungeon.name}. \n\n💀 ${OBSTACLE_NAMES[finalBattleEvent.obstacle?.id!]
4141
} ended my journey. \n\n@provablegames @lootsurvivor`
42-
: `I got a score of ${adventurer?.xp} in Loot Survivor 2: ${dungeon.name}. \n\n💀 A ${beast?.name} ended my journey. \n\n@provablegames @lootsurvivor`;
42+
: `I got a score of ${adventurer?.xp} in Loot Survivor: ${dungeon.name}. \n\n💀 A ${beast?.name} ended my journey. \n\n@provablegames @lootsurvivor`;
4343

4444
const backToMenu = () => {
4545
navigate(`/${dungeon.id}`, { replace: true });

client/src/desktop/overlays/MainMenu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export default function MainMenu() {
100100
{!showAdventurers && !showSettings && !showLeaderboard && (
101101
<>
102102
<Box sx={styles.headerBox}>
103-
<Typography sx={styles.gameTitle}>LOOT SURVIVOR 2</Typography>
103+
<Typography sx={styles.gameTitle}>LOOT SURVIVOR</Typography>
104104
<Typography color="secondary" sx={styles.modeTitle}>
105105
{dungeon.name}
106106
</Typography>

client/src/mobile/containers/DeathScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ export default function DeathScreen() {
5454
const shareMessage =
5555
finalBattleEvent?.type === "obstacle"
5656
? `I got a score of ${adventurer?.xp
57-
} in Loot Survivor 2: ${dungeon.name}. \n\n💀 ${OBSTACLE_NAMES[finalBattleEvent.obstacle?.id!]
57+
} in Loot Survivor: ${dungeon.name}. \n\n💀 ${OBSTACLE_NAMES[finalBattleEvent.obstacle?.id!]
5858
} ended my journey. \n\n@provablegames @lootsurvivor`
59-
: `I got a score of ${adventurer?.xp} in Loot Survivor 2: ${dungeon.name}. \n\n💀 A ${beast?.name} ended my journey. \n\n@provablegames @lootsurvivor`;
59+
: `I got a score of ${adventurer?.xp} in Loot Survivor: ${dungeon.name}. \n\n💀 A ${beast?.name} ended my journey. \n\n@provablegames @lootsurvivor`;
6060

6161
const backToMenu = () => {
6262
navigate(`/${dungeon.id}`, { replace: true });

client/src/mobile/containers/QuestCompletedScreen.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ export default function QuestCompletedScreen() {
1010
const navigate = useNavigate();
1111
const dungeon = useDungeon();
1212

13-
const shareMessage = `I completed Quest ${quest?.id} in Loot Survivor 2! Want to see how I did it? Watch my replay here: lootsurvivor.io/watch/${gameId} 🗡️⚔️ @provablegames @lootsurvivor`;
14-
1513
const backToCampaign = () => {
1614
// Store completed quest in localStorage
1715
if (quest) {

client/src/mobile/containers/TermsOfServiceScreen.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
4646
<Box sx={styles.innerContainer}>
4747
<Box sx={styles.header}>
4848
<Typography sx={styles.title}>
49-
Loot Survivor 2 - Terms of Service
49+
Loot Survivor - Terms of Service
5050
</Typography>
5151
</Box>
5252

@@ -61,7 +61,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
6161
sx={styles.termsText}
6262
>
6363
These Terms of Service ("Terms") govern your access to and use of
64-
the Loot Survivor 2 game ("Game"), including any related websites,
64+
the Loot Survivor game ("Game"), including any related websites,
6565
smart contracts, tokens, and services (collectively, the
6666
"Services"). The Game is created and operated by Provable Labs
6767
Ltd., a company incorporated in the British Virgin Islands
@@ -81,7 +81,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
8181
</li>
8282
<li>
8383
You are solely responsible for ensuring that your participation
84-
in Loot Survivor 2 complies with all laws and regulations in
84+
in Loot Survivor complies with all laws and regulations in
8585
your jurisdiction.
8686
</li>
8787
<li>
@@ -93,7 +93,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
9393
<strong>2. Game Mechanics</strong>
9494
<ul>
9595
<li>
96-
Loot Survivor 2 operates entirely on blockchain-based immutable
96+
Loot Survivor operates entirely on blockchain-based immutable
9797
smart contracts.
9898
</li>
9999
<li>
@@ -107,7 +107,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
107107
</ul>
108108
<strong>3. Risk of Loss</strong>
109109
<br />
110-
All transactions and gameplay actions in Loot Survivor 2 are final
110+
All transactions and gameplay actions in Loot Survivor are final
111111
and irreversible.
112112
<br />
113113
<br />
@@ -142,7 +142,7 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
142142
<strong>5. No Recourse</strong>
143143
<ul>
144144
<li>
145-
By participating in Loot Survivor 2, you waive all rights to
145+
By participating in Loot Survivor, you waive all rights to
146146
claims or recourse against Provable Labs, the DAO, or any
147147
associated entities or individuals.
148148
</li>
@@ -173,17 +173,17 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
173173
<strong>7. Intellectual Property (CC0)</strong>
174174
<ul>
175175
<li>
176-
Loot Survivor 2 and its related creative works are released
176+
Loot Survivor and its related creative works are released
177177
under the Creative Commons CC0 Public Domain Dedication.
178178
</li>
179179
<li>
180180
This means you are free to copy, modify, distribute, and use the
181-
content of Loot Survivor 2, even for commercial purposes,
181+
content of Loot Survivor, even for commercial purposes,
182182
without asking permission.
183183
</li>
184184
<li>
185185
Provable Labs makes no claim of copyright, trademark, or other
186-
intellectual property rights over the Loot Survivor 2 creative
186+
intellectual property rights over the Loot Survivor creative
187187
works.
188188
</li>
189189
<li>
@@ -228,13 +228,13 @@ const TermsOfServiceScreen: React.FC<TermsOfServiceScreenProps> = ({
228228
revised version.
229229
</li>
230230
<li>
231-
Continued participation in Loot Survivor 2 after updates
231+
Continued participation in Loot Survivor after updates
232232
constitutes acceptance of the new Terms.
233233
</li>
234234
</ul>
235235
<strong>11. Acknowledgment</strong>
236236
<br />
237-
By participating in Loot Survivor 2, you confirm that you have read,
237+
By participating in Loot Survivor, you confirm that you have read,
238238
understood, and agreed to these Terms, and that you accept all risks
239239
and responsibilities associated with participation.
240240
</Typography>

client/src/mobile/pages/StartPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export default function LandingPage() {
7676
{!showAdventurers && !showLeaderboard && !showDungeonRewards && (
7777
<>
7878
<Box sx={styles.headerBox}>
79-
<Typography sx={styles.gameTitle}>LOOT SURVIVOR 2</Typography>
79+
<Typography sx={styles.gameTitle}>LOOT SURVIVOR</Typography>
8080
<Typography color="secondary" sx={styles.modeTitle}>
8181
{dungeon.name}
8282
</Typography>

0 commit comments

Comments
 (0)