-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
209 lines (197 loc) · 10.4 KB
/
index.php
File metadata and controls
209 lines (197 loc) · 10.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?php require_once 'inc/config.php'; ?>
<?php
$page_title = "Home | Astrakit";
$page_description = "Astrakit is a free and open-source chat app designed for seamless communication. Discover its features, download the app, and join our community today!";
?>
<!DOCTYPE html>
<html lang="en">
<?php require_once 'inc/head.php'; ?>
<body>
<?php
$account_count_text = "-"; // Default text
$api_url = 'https://api.astrakit.cc/api/status';
$api_response = @file_get_contents($api_url); // Use @ to suppress errors if API is down
if ($api_response !== false) {
$data = json_decode($api_response, true);
if (isset($data['account_count'])) {
$account_count_text = htmlspecialchars($data['account_count']);
}
}
?>
<?php require_once 'inc/common-elements.php'; ?>
<?php require_once 'inc/navbar.php'; ?>
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>Discover The <span class="highlight">Future Of Chatting</span></h1>
<p>Astrakit is a free and open-source chat app designed by nerds. Enjoy secure, seamless communication with powerful features and complete transparency, all without any cost.</p>
<p class="subtext">Join over <?php echo $account_count_text; ?> satisfied users who have transformed the way they chat with people.</p>
<div class="cta-buttons">
<a href="#download" class="btn primary">Download Now</a>
<a href="#features" class="btn secondary">Learn More</a>
</div>
</div>
<div class="hero-image">
<div class="phone-mockup">
<div class="phone-screen">
</div>
</div>
</div>
</div>
</section>
<div class="container" id="features">
<h2>Key Features <span class="highlight">That Shine</span></h2>
<p class="section-intro">Discover the tools that make Astrakit the perfect place to connect, share, and chat effortlessly. From seamless messaging to customizable experiences, we’ve got everything you need to stay connected your way!</p>
<div class="features-grid">
<div class="feature-card">
<i class="fas fa-lock"></i>
<h3>Secure & Encrypted</h3>
<p>You have control over your data, with options to delete it at any time and customizable encryption methods.</p>
</div>
<div class="feature-card">
<i class="fas fa-history"></i>
<h3>Temporary Message Storage</h3>
<p>Messages are stored on our servers only until delivered and read, then automatically deleted, ensuring no long-term record on our infrastructure.</p>
</div>
<div class="feature-card">
<i class="fas fa-code"></i>
<h3>Open source & Free</h3>
<p>We believe that open source software combined with privacy should be accessible to everyone. We're funded only by donations.</p>
</div>
<div class="feature-card">
<i class="fas fa-eye"></i>
<h3>Transparent</h3>
<p>We operate with complete transparency, providing open access to our source code and development process, by still keeping your data secure at any time.</p>
</div>
<div class="feature-card">
<i class="fas fa-puzzle-piece"></i>
<h3>Feature packed</h3>
<p>Astrakit is loaded with features that enhance your chatting experience. Stay tuned for upcoming features that will make communication even more enjoyable.</p>
</div>
<div class="feature-card">
<i class="fas fa-users"></i>
<h3>Community Driven</h3>
<p>Join a vibrant community of users and cats (hehe) who contribute to the continuous improvement and evolution of Astrakit.</p>
</div>
</div>
</div>
</section>
<section id="gallery" class="gallery">
<div class="container">
<h2>Experience Astrakit <span class="highlight">Yourself</span></h2>
<p class="section-intro">Get a glimpse of Astrakit’s sleek design and powerful features in action!</p>
<div class="gallery-container">
<div class="gallery-item">
<img src="src/images/screenshot1.png" alt="Showcase screenshot">
<div class="gallery-overlay">
<h3>Simple interface</h3>
</div>
</div>
<div class="gallery-item">
<img src="src/images/screenshot2.png" alt="Showcase screenshot">
<div class="gallery-overlay">
<h3>Feature packed</h3>
</div>
</div>
<div class="gallery-item">
<img src="src/images/screenshot3.png" alt="Showcase screenshot">
<div class="gallery-overlay">
<h3>Make Astrakit yours</h3>
</div>
</div>
</div>
</div>
</section>
<section id="team" class="team">
<div class="container">
<h2>Who Works In <span class="highlight">Our Team</span></h2>
<p class="section-intro">Discover the talented individuals behind Astrakit and learn how their expertise shapes our platform.</p>
<div class="testimonial-container">
<div class="testimonial-card" style="padding: 0 !important;">
<iframe src="https://api.astrakit.cc/iframe-profile?username=catpawzz" frameborder="0" height="200px" width="100%" allowtransparency="true"></iframe>
</div>
<div class="testimonial-card" style="padding: 0 !important;">
<iframe src="https://api.astrakit.cc/iframe-profile?username=snupai" frameborder="0" height="200px" width="100%" allowtransparency="true"></iframe>
</div>
<div class="testimonial-card" style="padding: 0 !important;">
<iframe src="https://api.astrakit.cc/iframe-profile?username=yuuiko" frameborder="0" height="200px" width="100%" allowtransparency="true"></iframe>
</div>
</div>
</div>
</div>
</section>
<section id="download" class="download">
<div class="container">
<div class="glass-card">
<h2>Ready to <span class="highlight">Get Started?</span></h2>
<p>Getting started with Astrakit is completely free and doesn't take long at all! Not convinced? Try it out by yourself below!</p>
<p class="version-info">Current version: ALPHA | Last updated: -</p>
<div class="store-buttons">
<a href="#" class="store-btn">
<i class="fab fa-android"></i>
<span>F-Droid</span>
</a>
<a href="#" class="store-btn">
<i class="fab fa-google-play"></i>
<span>Google Play</span>
</a>
</div>
</div>
</div>
</section>
<section id="contact" class="contact">
<div class="container">
<h2>Get In <span class="highlight">Touch</span></h2>
<p class="section-intro">We'd love to hear from you! Whether you have questions, feedback, or just want to say hello, feel free to reach out.</p>
<div class="contact-container">
<div class="contact-info">
<div class="contact-item">
<i class="fas fa-envelope"></i>
<span>contact@astrakit.cc</span>
</div>
<div class="contact-item">
<i class="fas fa-message"></i>
<span>@astrakit</span>
</div>
<div class="contact-item">
<i class="fas fa-map-marker-alt"></i>
<span>Catland (it's not real)</span>
</div>
<h4>Find us online</h4>
<div class="social-icons">
<a href="https://cat-space.net/@astrakit" style="text-decoration: none;"><i class="fab fa-mastodon"></i></a>
<a href="https://api.astrakit.cc/@astrakit" style="text-decoration: none;"><img src="/src/images/favicon.png" alt="Favicon" style="height: 16px; width: 16px; vertical-align: middle;"></a>
</div>
</div>
<form class="contact-form">
<div class="form-group">
<label for="name">Your Name</label>
<input type="text" id="name" placeholder="Enter your name" required>
</div>
<div class="form-group">
<label for="email">Your Email</label>
<input type="email" id="email" placeholder="Enter your email address" required>
</div>
<div class="form-group">
<label for="message">Your Message</label>
<textarea id="message" placeholder="What would you like to tell us?" required></textarea>
</div>
<button type="button" class="btn primary" onclick="sendEmail()">Send Email</button>
<script>
function sendEmail() {
var name = document.getElementById('name').value;
var email = document.getElementById('email').value;
var message = document.getElementById('message').value;
var subject = "Astrakit Contact Form";
var body = "Name: " + name + "%0D%0AEmail: " + email + "%0D%0AMessage: " + message;
window.location.href = "mailto:contact@astrakit.cc?subject=" + encodeURIComponent(subject) + "&body=" + encodeURIComponent(body);
}
</script>
</form>
</div>
</div>
</section>
<?php require_once 'inc/footer.php'; ?>
<script src="src/app.js"></script>
</body>
</html>