-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-netlify.sh
More file actions
executable file
·180 lines (168 loc) · 4.24 KB
/
deploy-netlify.sh
File metadata and controls
executable file
·180 lines (168 loc) · 4.24 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
#!/bin/bash
set -e
echo "Starting Jackerbox landing page deployment..."
# Create a public directory for the landing page
mkdir -p public
# Create a simple index.html file
cat > public/index.html << 'EOL'
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Jackerbox - Equipment Rental Marketplace</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
background-color: #f5f5f7;
color: #333;
line-height: 1.6;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background-color: white;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.logo {
font-size: 24px;
font-weight: bold;
color: #0070f3;
text-decoration: none;
}
nav a {
margin-left: 20px;
color: #333;
text-decoration: none;
}
nav a:hover {
color: #0070f3;
}
main {
max-width: 800px;
margin: 40px auto;
padding: 0 20px;
}
.card {
background-color: white;
border-radius: 8px;
padding: 40px;
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
h1 {
font-size: 32px;
margin-bottom: 20px;
color: #0070f3;
}
h2 {
font-size: 24px;
margin: 30px 0 15px;
color: #333;
}
p {
margin-bottom: 15px;
font-size: 16px;
}
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px;
margin: 30px 0;
}
.feature {
background-color: #f9f9f9;
padding: 20px;
border-radius: 5px;
text-align: center;
}
.feature h3 {
margin-bottom: 10px;
color: #0070f3;
}
.button {
display: inline-block;
background-color: #0070f3;
color: white;
padding: 10px 20px;
border-radius: 5px;
text-decoration: none;
font-weight: 500;
margin-top: 10px;
}
.button:hover {
background-color: #005cc5;
}
.status-message {
background-color: #e3f2fd;
border-left: 4px solid #2196f3;
padding: 15px;
margin: 20px 0;
border-radius: 0 5px 5px 0;
}
footer {
text-align: center;
margin-top: 60px;
color: #666;
padding-bottom: 40px;
}
</style>
</head>
<body>
<header>
<a href="/" class="logo">Jackerbox</a>
<nav>
<a href="/">Home</a>
<a href="#features">Features</a>
<a href="#contact">Contact</a>
</nav>
</header>
<main>
<div class="card">
<h1>Welcome to Jackerbox</h1>
<p>The equipment rental marketplace that connects people with the gear they need.</p>
<div class="status-message">
<strong>Site Status:</strong> Our main application is currently under maintenance. This is a temporary landing page while we complete our updates.
</div>
<h2 id="features">Key Features</h2>
<div class="features">
<div class="feature">
<h3>Rent Equipment</h3>
<p>Find and rent equipment from people in your area.</p>
</div>
<div class="feature">
<h3>List Your Gear</h3>
<p>Make money by renting out your equipment.</p>
</div>
<div class="feature">
<h3>Secure Payments</h3>
<p>Safe and secure payment processing.</p>
</div>
</div>
<h2 id="contact">Contact Us</h2>
<p>If you have any questions or need assistance, please contact our support team at support@jackerbox.com</p>
</div>
</main>
<footer>
<p>© 2024 Jackerbox. All rights reserved.</p>
</footer>
</body>
</html>
EOL
# Create a simple netlify.toml file for direct HTML hosting
cat > netlify.toml << 'EOL'
[build]
publish = "public"
# No build command needed for static HTML
EOL
# Deploy to Netlify
echo "Deploying landing page to Netlify..."
netlify deploy --prod --dir=public
echo "Deployment completed successfully!"
echo "Your site should now be live at https://jackerbox.netlify.app"