summaryrefslogtreecommitdiff
path: root/css/04-external-css/index.html
blob: 872a05bfa317f96ae8f1353a292772e75d73894d (plain)
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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Reusable CSS Demo</title>
  <!-- Linking the separate CSS file -->
  <link rel="stylesheet" href="styles.css">
</head>
<body>

  <h1>Reusable Components Example</h1>

  <!-- Reusing the .card class and different button variations -->
  <div class="card">
    <h2>Product Feature A</h2>
    <p>This layout uses the primary action button style.</p>
    <button class="btn btn-primary">Accept</button>
  </div>

  <div class="card">
    <h2>Product Feature B</h2>
    <p>This layout reuses the exact same card wrapper but switches to a secondary button.</p>
    <button class="btn btn-secondary">Learn More</button>
  </div>

  <div class="card">
    <h2>The beauty of CSS design</h2>
    <p>Visit <a href="https://csszengarden.com/" target="_blank">CSS Zen Garden</a> and try changing designs.</p>
  </div>
</body>
</html>