Below is the HTML and Bootstrap code for the requested pages. Each page adheres to the design rules you've outlined, including a clean modern look with a color scheme of red, black, and white utilizing the 60-30-10 rule for coloring.
1. Authorization Page (Login)
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Login - Tractor Parts</title>
<style>
body {
background-color: #fff;
color: #333;
}
.bg-dark-red {
background-color: #A50000;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-light bg-dark-red">
<a class="navbar-brand text-white" href="#">Tractor Parts</a>
</nav>
<div class="container mt-5">
<div class="row justify-content-center">
<div class="col-md-6">
<h2 class="text-center">Authorization</h2>
<form>
<div class="form-group">
<label for="login">Login</label>
<input type="text" class="form-control" id="login" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="password" required>
</div>
<button type="submit" class="btn btn-primary btn-block bg-dark-red">Log In</button>
</form>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
2. Navbar (Navigation)
This section would be included throughout your website for navigation.
html Copy code
<nav class="navbar navbar-expand-lg navbar-light bg-dark-red">
<a class="navbar-brand text-white" href="#">Tractor Parts</a>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link text-white" href="#">Profile</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#">Buy Parts</a>
</li>
<li class="nav-item">
<a class="nav-link text-white" href="#">Search with VIN</a>
</li>
</ul>
</div>
</nav>
3. Buy Parts Page (Tractor Models)
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Buy Parts - Tractor Parts</title>
<style>
body {
background-color: #fff;
color: #333;
}
.bg-dark-red {
background-color: #A50000;
}
.card {
margin-bottom: 20px;
}
</style>
</head>
<body>
<?php include 'navbar.php'; ?>
<div class="container mt-5">
<h2 class="text-center">Available Tractor Models</h2>
<div class="row">
<div class="col-sm-4">
<div class="card">
<img class="card-img-top" src="tractor1.jpg" alt="Tractor Model 1">
<div class="card-body">
<h5 class="card-title">Tractor Model 1</h5>
<p class="card-text">Description of Tractor Model 1.</p>
<a href="#" class="btn btn-primary bg-dark-red">Buy Parts</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img class="card-img-top" src="tractor2.jpg" alt="Tractor Model 2">
<div class="card-body">
<h5 class="card-title">Tractor Model 2</h5>
<p class="card-text">Description of Tractor Model 2.</p>
<a href="#" class="btn btn-primary bg-dark-red">Buy Parts</a>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="card">
<img class="card-img-top" src="tractor3.jpg" alt="Tractor Model 3">
<div class="card-body">
<h5 class="card-title">Tractor Model 3</h5>
<p class="card-text">Description of Tractor Model 3.</p>
<a href="#" class="btn btn-primary bg-dark-red">Buy Parts</a>
</div>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
4. Search VIN Page
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Search with VIN - Tractor Parts</title>
<style>
body {
background-color: #fff;
color: #333;
}
.bg-dark-red {
background-color: #A50000;
}
</style>
</head>
<body>
<?php include 'navbar.php'; ?>
<div class="container mt-5">
<h2 class="text-center">Search with VIN</h2>
<div class="row justify-content-center">
<div class="col-md-6">
<form>
<div class="form-group">
<label for="vinNumber">Enter Your VIN Number</label>
<input type="text" class="form-control" id="vinNumber" placeholder="VIN Number" required>
</div>
<button type="submit" class="btn btn-primary btn-block bg-dark-red">Search</button>
</form>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
5. Parts Tree Page (Machine Model -> Modules -> Parts)
html Copy code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Parts Tree - Tractor Parts</title>
<style>
body {
background-color: #fff;
color: #333;
}
.bg-dark-red {
background-color: #A50000;
}
.tree ul {
padding-left: 20px;
}
.tree li {
list-style-type: none;
}
</style>
</head>
<body>
<?php include 'navbar.php'; ?>
<div class="container mt-5">
<h2 class="text-center">Parts Tree</h2>
<div class="tree">
<ul>
<li>Machine Model
<ul>
<li>Module 1
<ul>
<li>Part A</li>
<li>Part B</li>
</ul>
</li>
<li>Module 2
<ul>
<li>Part C</li>
<li>Part D</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</body>
</html>
Summary
The above pages cover your requirements for an authorization page, a navigation bar, a buy parts page with tractor models, a VIN search page, and a parts tree structure. Use consistent styling and established design principles to make it look modern and intuitive. Replace image source placeholders and implement backend functionality as needed.