-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (128 loc) · 5.92 KB
/
index.html
File metadata and controls
140 lines (128 loc) · 5.92 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="icon" href="./assets/img/logo.png">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@mdi/font@latest/css/materialdesignicons.min.css">
<link rel="stylesheet" href="assets/style/main.css">
<link rel="stylesheet" href="assets/style/style.css">
<title>gregslist_mvc</title>
</head>
<body data-bs-theme="light">
<header>
<nav class="navbar bg-codeworks text-light gap-2 px-2">
<img src="./assets/img/logo.png" height="45" alt="" loading="lazy">
<div><b>gregslist_mvc</b></div>
<div class="ms-auto" id="authstate"></div>
</div>
</nav>
</header>
<main>
<div class="text-center mt-2">
<button onclick="app.carsController.toggleCarsSection()" class="btn btn-primary">Cars 🚗</button>
</div>
<!-- TODO houses stuff goes here -->
<!-- TODO add d-none to hide this junk -->
<section id="cars-section" class="container">
<div class="row my-3">
<div class="col-md-6">
<form onsubmit="app.carsController.submitCar()" class="sticky-top">
<div>
<label for="car-make">Car Make</label>
<input id="car-make" type="text" minlength="2" maxlength="50" required name="make" class="w-100">
</div>
<div>
<label for="car-model">Car Model</label>
<input id="car-model" type="text" minlength="1" maxlength="100" required name="model" class="w-100">
</div>
<div>
<label for="car-year">Car Year</label>
<!-- TODO it would be good to automate setting the max here -->
<input id="car-year" type="number" min="1886" max="2026" required name="year" class="w-100">
</div>
<div>
<label for="car-mileage">Car Mileage</label>
<input id="car-mileage" type="number" min="0" max="4000000" required name="mileage" class="w-100">
</div>
<div>
<label for="car-price">Car Price (in USD)</label>
<input id="car-price" type="number" min="0" max="1000000" required name="price" class="w-100">
</div>
<div>
<label for="car-img-url">Car Image URL</label>
<input id="car-img-url" type="url" maxlength="500" required name="imgUrl" class="w-100">
</div>
<div>
<label for="car-condition">Car Condition</label>
<input id="car-condition" type="text" maxlength="200" name="condition" class="w-100">
</div>
<div>
<label for="car-horse-power">Car Horse Power</label>
<input id="car-horse-power" type="number" min="1" max="500" required name="horsePower" class="w-100">
</div>
<div>
<label for="car-color">Car Color</label>
<input id="car-color" type="color" required name="color">
</div>
<div>
<label for="car-has-clean-title">Does the car have a clean title?</label>
<input id="car-has-clean-title" type="checkbox" name="hasCleanTitle">
</div>
<div>
<label for="car-is-drivable">Can I drive it off the lot?</label>
<input id="car-is-drivable" type="checkbox" name="isDrivable">
</div>
<button type="reset">Reset</button>
<button type="submit">Submit</button>
</form>
</div>
<div class="col-6 d-none d-md-block">
<img
src="https://images.unsplash.com/photo-1533558701576-23c65e0272fb?w=700&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8Mnx8Y2FyJTIwa2V5c3xlbnwwfHwwfHx8MA%3D%3D"
alt="hand holding car keys" class="img-fluid">
</div>
</div>
<div id="car-listings" class="row">
<!-- STUB car listing template -->
<!-- <div class="col-md-6 mb-3">
<div class="shadow position-relative">
<img
src="https://images.unsplash.com/photo-1627771184357-b3e417586845?w=1200&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTI0fHx2dyUyMGJ1Z3xlbnwwfHwwfHx8Mg%3D%3D"
alt="2000 vw bug" class="img-fluid">
<div class="p-3">
<div class="d-flex justify-content-between">
<p class="fs-3 m-0">2000 vw bug</p>
<div class="fs-4">
<span class="mdi mdi-car-cog" title="Non drivable"></span>
<span class="mdi mdi-note-check" title="Has a clean title"></span>
</div>
</div>
<small>Listed on 8/27/2025</small>
<p class="mt-3"></p>
<p>This is a fair condition vw bug with 200 horse power and 200000 miles.</p>
</div>
<span class="text-success car-price bg-light px-2">$3000</span>
</div>
</div> -->
</div>
</section>
</main>
<footer class="text-bg-dark">
<div class="text-center">
<p class="mb-0"><small>Made with <i class="mdi mdi-heart text-pink"></i> by CodeWorks</small></p>
</div>
</footer>
<!-- SECTION links for bootstrap, axios, and auth -->
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
<script src="https://cdn.auth0.com/js/auth0-spa-js/1.22/auth0-spa-js.production.js"></script>
<script src="https://cdn.jsdelivr.net/gh/jakeoverall/auth0provider-client/browser/Auth0Provider.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
<!-- !SECTION -->
<!-- The start of our javascript -->
<script src="app/App.js" type="module"></script>
</body>
</html>