Skip to content

Commit b433bea

Browse files
committed
Site Re-activation
1 parent b3b24ca commit b433bea

3 files changed

Lines changed: 186 additions & 186 deletions

File tree

index-shutdown.php

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<?php include 'includes/head.php'; ?>
4+
5+
<body class="!bg-white dark:!bg-gray-900 transition-colors duration-200">
6+
<?php include 'includes/header.php'; ?>
7+
8+
<main class="max-w-3xl mx-auto px-4 py-12">
9+
<!-- Main Content Section -->
10+
<div class="text-center mb-12">
11+
<h1 class="text-4xl font-bold text-primary dark:text-accent mb-4 transition-colors duration-200">
12+
Service Discontinued
13+
</h1>
14+
<h2 class="text-2xl text-gray-700 dark:text-gray-300 transition-colors duration-200">
15+
Rivian Referral Program Changes
16+
</h2>
17+
</div>
18+
19+
<!-- Notice Card -->
20+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-8 mb-10 transition-colors duration-200">
21+
<div class="flex items-center justify-center mb-6">
22+
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-amber-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
23+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
24+
</svg>
25+
</div>
26+
27+
<h3 class="text-2xl font-bold text-center text-gray-800 dark:text-white mb-4">
28+
Code To Adventure Is No Longer Active
29+
</h3>
30+
31+
<p class="text-gray-600 dark:text-gray-300 text-lg mb-6 text-center">
32+
Due to recent changes in the Rivian referral program, we've discontinued this service.
33+
</p>
34+
35+
<div class="border-t border-b border-gray-200 dark:border-gray-700 py-6 mb-6">
36+
<p class="text-gray-600 dark:text-gray-300 mb-4">
37+
We'd like to thank all Rivian owners who shared their codes and everyone who used our service to find referral codes for their purchases. It's been a pleasure helping connect the Rivian community.
38+
</p>
39+
40+
<p class="text-gray-600 dark:text-gray-300">
41+
Our goal was always to help potential Rivian owners maximize their benefits when purchasing a new vehicle, while also helping existing owners share their referral codes.
42+
</p>
43+
</div>
44+
45+
<div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-6 mb-6">
46+
<h4 class="font-bold text-lg text-primary dark:text-accent mb-3">Key Program Changes</h4>
47+
<ul class="list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2">
48+
<li>Rivian is no longer offering new Charging Rewards (previously provided 6 months of free charging)</li>
49+
<li>The referral program now focuses exclusively on points-based rewards (500 points = $500 in credit)</li>
50+
<li>Rivian has added restrictions on how referral codes can be shared and promoted</li>
51+
<li>Program terms now explicitly prohibit "social media posts targeting referrals outside of family and friends"</li>
52+
</ul>
53+
</div>
54+
55+
<div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-6">
56+
<h4 class="font-bold text-lg text-primary dark:text-accent mb-3">Policy on Code Sharing</h4>
57+
<p class="text-gray-600 dark:text-gray-300 mb-4">
58+
According to Rivian's updated terms (March 25, 2025), users are not permitted to engage in:
59+
</p>
60+
<ul class="list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2">
61+
<li>Paid advertising of referral codes</li>
62+
<li>Social media posts targeting referrals outside of family and friends</li>
63+
<li>Services that distribute referral codes (like ours)</li>
64+
<li>Offering incentives for using referral codes</li>
65+
</ul>
66+
67+
<p class="mt-4 text-gray-600 dark:text-gray-300">
68+
For the complete details on the current referral program, please view the <a href="https://rivian.com/legal/rewards" class="text-primary dark:text-accent hover:underline">official Rivian Rewards Program Terms</a>.
69+
</p>
70+
</div>
71+
</div>
72+
73+
<!-- Contact Section -->
74+
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 transition-colors duration-200">
75+
<h3 class="text-xl font-bold text-primary dark:text-accent mb-4">
76+
Questions or Comments?
77+
</h3>
78+
<p class="text-gray-600 dark:text-gray-300 mb-4">
79+
If you have any questions about this change or need assistance, please feel free to contact us.
80+
</p>
81+
<a href="mailto:admin@codetoadventure.com" class="inline-flex items-center px-4 py-2 bg-primary hover:bg-secondary text-white rounded-md transition-colors duration-200">
82+
Contact Us
83+
</a>
84+
</div>
85+
</main>
86+
87+
<?php include 'includes/footer.php'; ?>
88+
89+
<script src="js/main.js"></script>
90+
</body>
91+
</html>

index.php

Lines changed: 95 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,119 @@
1+
<?php
2+
require_once 'config.php'; // Ensure database connection
3+
error_reporting(E_ALL);
4+
ini_set('display_errors', 1);
5+
?>
6+
17
<!DOCTYPE html>
28
<html lang="en">
39
<?php include 'includes/head.php'; ?>
410

511
<body class="!bg-white dark:!bg-gray-900 transition-colors duration-200">
12+
13+
614
<?php include 'includes/header.php'; ?>
715

8-
<main class="max-w-3xl mx-auto px-4 py-12">
9-
<!-- Main Content Section -->
16+
<main class="main-content max-w-7xl mx-auto px-4 py-8">
17+
<!-- Hero Section -->
1018
<div class="text-center mb-12">
11-
<h1 class="text-4xl font-bold text-primary dark:text-accent mb-4 transition-colors duration-200">
12-
Service Discontinued
19+
<h1 class="hero-title text-4xl font-bold text-primary dark:text-accent mb-4 transition-colors duration-200">
20+
Buying a Rivian?
1321
</h1>
14-
<h2 class="text-2xl text-gray-700 dark:text-gray-300 transition-colors duration-200">
15-
Rivian Referral Program Changes
22+
<h2 class="hero-subtitle text-2xl text-gray-700 dark:text-gray-300 transition-colors duration-200">
23+
Use a referral code and get rewards!
1624
</h2>
1725
</div>
1826

19-
<!-- Notice Card -->
20-
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-8 mb-10 transition-colors duration-200">
21-
<div class="flex items-center justify-center mb-6">
22-
<svg xmlns="http://www.w3.org/2000/svg" class="h-12 w-12 text-amber-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
23-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
24-
</svg>
25-
</div>
26-
27-
<h3 class="text-2xl font-bold text-center text-gray-800 dark:text-white mb-4">
28-
Code To Adventure Is No Longer Active
29-
</h3>
30-
31-
<p class="text-gray-600 dark:text-gray-300 text-lg mb-6 text-center">
32-
Due to recent changes in the Rivian referral program, we've discontinued this service.
33-
</p>
34-
35-
<div class="border-t border-b border-gray-200 dark:border-gray-700 py-6 mb-6">
36-
<p class="text-gray-600 dark:text-gray-300 mb-4">
37-
We'd like to thank all Rivian owners who shared their codes and everyone who used our service to find referral codes for their purchases. It's been a pleasure helping connect the Rivian community.
38-
</p>
39-
40-
<p class="text-gray-600 dark:text-gray-300">
41-
Our goal was always to help potential Rivian owners maximize their benefits when purchasing a new vehicle, while also helping existing owners share their referral codes.
27+
<?php
28+
// Restore original code to fetch a random referral code
29+
$sql = "SELECT * FROM codes ORDER BY RAND() LIMIT 1";
30+
$result = $conn->query($sql);
31+
$referral = $result->fetch_assoc();
32+
?>
33+
34+
<?php if ($referral): ?>
35+
<!-- Referral Code Display Section -->
36+
<div class="max-w-2xl mx-auto bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 transition-colors duration-200">
37+
<!-- Referral Button -->
38+
<a href="track.php?code=<?php echo htmlspecialchars($referral['referral_code']); ?>"
39+
class="block w-full text-center bg-primary hover:bg-secondary dark:bg-accent dark:hover:bg-secondary text-white font-semibold py-3 px-6 rounded-lg mb-4 transition-colors duration-200"
40+
target="_blank"
41+
rel="noopener noreferrer">
42+
Use <?php echo htmlspecialchars($referral['name']); ?>'s Code
43+
</a>
44+
45+
<!-- Code Display -->
46+
<div class="code-container text-center p-4 bg-gray-100 dark:bg-gray-700 rounded-lg mb-4 transition-colors duration-200">
47+
<span class="referral-code text-lg font-mono font-semibold text-gray-900 dark:text-gray-100">
48+
<?php echo htmlspecialchars($referral['referral_code']); ?>
49+
</span>
50+
51+
<button
52+
onclick="copyCode('<?php echo htmlspecialchars($referral['referral_code']); ?>')"
53+
class="ml-4 inline-flex items-center px-3 py-1 bg-primary hover:bg-secondary dark:bg-accent dark:hover:bg-secondary text-white rounded-md transition-colors duration-200"
54+
title="Copy code">
55+
<span>⧉</span> Copy Code
56+
</button>
57+
</div>
58+
59+
<!-- Refresh Button -->
60+
<button
61+
onclick="getNewCode()"
62+
class="w-full bg-gray-200 hover:bg-gray-300 dark:bg-gray-700 dark:hover:bg-gray-600 text-gray-700 dark:text-gray-300 font-medium py-2 px-4 rounded-lg transition-colors duration-200">
63+
Get Another Code
64+
</button>
65+
66+
<p class="refresh-text mt-4 text-sm text-gray-600 dark:text-gray-400 text-center">
67+
You'll be directed to Rivian's R1 Shop. Code changes every page refresh.
4268
</p>
4369
</div>
44-
45-
<div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-6 mb-6">
46-
<h4 class="font-bold text-lg text-primary dark:text-accent mb-3">Key Program Changes</h4>
47-
<ul class="list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2">
48-
<li>Rivian is no longer offering new Charging Rewards (previously provided 6 months of free charging)</li>
49-
<li>The referral program now focuses exclusively on points-based rewards (500 points = $500 in credit)</li>
50-
<li>Rivian has added restrictions on how referral codes can be shared and promoted</li>
51-
<li>Program terms now explicitly prohibit "social media posts targeting referrals outside of family and friends"</li>
52-
</ul>
53-
</div>
54-
55-
<div class="bg-gray-50 dark:bg-gray-700 rounded-lg p-6">
56-
<h4 class="font-bold text-lg text-primary dark:text-accent mb-3">Policy on Code Sharing</h4>
57-
<p class="text-gray-600 dark:text-gray-300 mb-4">
58-
According to Rivian's updated terms (March 25, 2025), users are not permitted to engage in:
70+
<?php endif; ?>
71+
72+
<!-- Information Section -->
73+
<div class="info-section max-w-4xl mx-auto mt-12 space-y-8">
74+
<!-- How it Works -->
75+
<div class="bg-gray-50 dark:bg-gray-800 border border-gray-400 dark:border-gray-700 rounded-xl p-6 shadow-xl transition-colors duration-200">
76+
<h3 class="text-xl font-bold text-amber-600 dark:text-amber-400 mb-4">
77+
How does it work?
78+
</h3>
79+
<p class="text-white dark:text-gray-300">
80+
When you use an owner's referral code during checkout of a qualifying R1 Shop vehicle,
81+
then take delivery – both the original owner (referrer) and new owner (referee) get rewards!
5982
</p>
60-
<ul class="list-disc list-inside text-gray-600 dark:text-gray-300 space-y-2">
61-
<li>Paid advertising of referral codes</li>
62-
<li>Social media posts targeting referrals outside of family and friends</li>
63-
<li>Services that distribute referral codes (like ours)</li>
64-
<li>Offering incentives for using referral codes</li>
65-
</ul>
83+
</div>
84+
85+
<!-- Rewards Section -->
86+
<div class="bg-gray-50 dark:bg-gray-800 border border-gray-400 dark:border-gray-700 rounded-xl p-6 shadow-xl transition-colors duration-200">
87+
<h3 class="text-xl font-bold text-amber-600 dark:text-amber-400 mb-4">
88+
What are the rewards?
89+
</h3>
6690

67-
<p class="mt-4 text-gray-600 dark:text-gray-300">
68-
For the complete details on the current referral program, please view the <a href="https://rivian.com/legal/rewards" class="text-primary dark:text-accent hover:underline">official Rivian Rewards Program Terms</a>.
69-
</p>
91+
<!-- Points Reward -->
92+
<div class="mb-6">
93+
<p class="text-white dark:text-gray-100">
94+
500 points that can be redeemed in Gear Shop or R1 Shop
95+
</p>
96+
<p class="text-gray-300 dark:text-gray-400 text-sm mt-1">
97+
(1 point equals 1 dollar in credit)
98+
</p>
99+
</div>
100+
101+
<!-- Charging Reward
102+
<div>
103+
<p class="text-white dark:text-gray-300">
104+
6 months of free charging at Rivian Adventure Network sites
105+
</p>
106+
<p class="text-gray-300 dark:text-gray-400 text-sm mt-1">
107+
(up to a lifetime limit of 3 years)
108+
</p>
109+
</div> -->
70110
</div>
71111
</div>
72-
73-
<!-- Contact Section -->
74-
<div class="bg-white dark:bg-gray-800 rounded-xl shadow-lg p-6 transition-colors duration-200">
75-
<h3 class="text-xl font-bold text-primary dark:text-accent mb-4">
76-
Questions or Comments?
77-
</h3>
78-
<p class="text-gray-600 dark:text-gray-300 mb-4">
79-
If you have any questions about this change or need assistance, please feel free to contact us.
80-
</p>
81-
<a href="mailto:admin@codetoadventure.com" class="inline-flex items-center px-4 py-2 bg-primary hover:bg-secondary text-white rounded-md transition-colors duration-200">
82-
Contact Us
83-
</a>
84-
</div>
85112
</main>
86113

87114
<?php include 'includes/footer.php'; ?>
115+
<?php include 'includes/modal.php'; ?>
88116

89117
<script src="js/main.js"></script>
90118
</body>
91-
</html>
119+
</html>

0 commit comments

Comments
 (0)