Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
Major upgrade v2.0.0
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<h2>Contact Us</h2>
|
||||
<p>Get in touch with us.</p>
|
||||
|
||||
<form action="" method="post">
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<!-- FIXED: Wrapped in label -->
|
||||
<label>
|
||||
Name:
|
||||
<input type="text" name="fullname" placeholder="John Doe" style="padding: 8px; width: 100%;">
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<!-- FIXED: Added for/id association -->
|
||||
<label for="email">Email Address</label>
|
||||
<br>
|
||||
<input type="email" id="email" name="email" style="padding: 8px; width: 100%;">
|
||||
</div>
|
||||
|
||||
<div style="margin-bottom: 1rem;">
|
||||
<label for="message">Message</label>
|
||||
<br>
|
||||
<textarea id="message" name="message" rows="5" style="width: 100%;"></textarea>
|
||||
</div>
|
||||
|
||||
<!-- FIXED: Added inner text or aria-label -->
|
||||
<a href="#" class="btn" aria-label="Send via WhatsApp">
|
||||
<i class="fa fa-send"></i> Send
|
||||
</a>
|
||||
|
||||
<button type="submit" class="btn">Send Message</button>
|
||||
</form>
|
||||
@@ -0,0 +1,36 @@
|
||||
<h2>Latest Products</h2>
|
||||
<p>Welcome to our accessible product catalog.</p>
|
||||
|
||||
<?php
|
||||
$products = [
|
||||
['id' => 1, 'name' => 'Super Gadget', 'image' => 'gadget.jpg', 'price' => '$99'],
|
||||
['id' => 2, 'name' => 'Mega Widget', 'image' => 'widget.png', 'price' => '$49'],
|
||||
['id' => 3, 'name' => 'Ultra Thing', 'image' => 'thing.jpg', 'price' => '$199'],
|
||||
];
|
||||
?>
|
||||
|
||||
<div class="products">
|
||||
<?php foreach ($products as $product): ?>
|
||||
<div class="card">
|
||||
<!-- FIXED: Added alt attribute describing the product -->
|
||||
<img src="images/<?php echo $product['image']; ?>" width="100"
|
||||
alt="<?php echo htmlspecialchars($product['name']); ?>">
|
||||
<h3>
|
||||
<?php echo $product['name']; ?>
|
||||
</h3>
|
||||
<p>
|
||||
<?php echo $product['price']; ?>
|
||||
</p>
|
||||
<button class="btn">Buy Now</button>
|
||||
</div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<h3>Sponsors</h3>
|
||||
<div>
|
||||
<!-- FIXED: Added empty alt="" for decorative images -->
|
||||
<img src="https://via.placeholder.com/150" alt="">
|
||||
<img src="https://via.placeholder.com/150" alt="">
|
||||
</div>
|
||||
@@ -0,0 +1,75 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="tr"> <!-- FIXED: Added lang attribute -->
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>YakNet Dynamic Demo (Fixed)</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
header {
|
||||
background: #333;
|
||||
color: #fff;
|
||||
padding: 1rem;
|
||||
}
|
||||
|
||||
nav a {
|
||||
color: #fff;
|
||||
margin-right: 1rem;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.container {
|
||||
padding: 2rem;
|
||||
max-width: 800px;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.card {
|
||||
border: 1px solid #ddd;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1rem;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.btn {
|
||||
background: #28a745;
|
||||
color: white;
|
||||
padding: 0.5rem 1rem;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="padding: 0;">
|
||||
<h1>My Dynamic Site (Accessible)</h1>
|
||||
<nav>
|
||||
<a href="?page=home">Home</a>
|
||||
<a href="?page=contact">Contact</a>
|
||||
<a href="?page=about">About</a>
|
||||
<!-- FIXED: Added aria-label to empty link, or removed it/added text -->
|
||||
<a href="#" class="btn" aria-label="Profile">👤</a>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main class="container">
|
||||
<?php include $viewPath; ?>
|
||||
</main>
|
||||
|
||||
<footer style="text-align: center; padding: 2rem; background: #f4f4f4; margin-top: 2rem;">
|
||||
©
|
||||
<?php echo date('Y'); ?> YakNet Demo
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user