hellowbeast commited on
Commit
5fbc663
Β·
1 Parent(s): dff5471

Improve heading contrast

Browse files
Files changed (2) hide show
  1. index.html +1 -0
  2. style.css +11 -5
index.html CHANGED
@@ -10,6 +10,7 @@
10
  <body>
11
  <main class="card">
12
  <h1>Hello πŸ‘‹</h1>
 
13
  <p>This is a static Space β€” plain HTML, CSS and JavaScript served from the Hugging Face Hub.</p>
14
  <button id="greet">Say hello back</button>
15
  <p id="out" class="out"></p>
 
10
  <body>
11
  <main class="card">
12
  <h1>Hello πŸ‘‹</h1>
13
+ <div class="rule"></div>
14
  <p>This is a static Space β€” plain HTML, CSS and JavaScript served from the Hugging Face Hub.</p>
15
  <button id="greet">Say hello back</button>
16
  <p id="out" class="out"></p>
style.css CHANGED
@@ -24,15 +24,21 @@ body {
24
 
25
  h1 {
26
  font-size: clamp(2.5rem, 9vw, 4.5rem);
27
- margin: 0 0 1rem;
 
 
 
 
 
 
 
 
 
28
  background: linear-gradient(90deg, #7dd3fc, #a78bfa, #f472b6);
29
- -webkit-background-clip: text;
30
- background-clip: text;
31
- color: transparent;
32
  }
33
 
34
  p {
35
- color: #b9c2d4;
36
  font-size: 1rem;
37
  line-height: 1.6;
38
  margin: 0.5rem 0;
 
24
 
25
  h1 {
26
  font-size: clamp(2.5rem, 9vw, 4.5rem);
27
+ margin: 0 0 0.25rem;
28
+ color: #f1f5f9;
29
+ letter-spacing: -0.02em;
30
+ }
31
+
32
+ .rule {
33
+ width: 96px;
34
+ height: 4px;
35
+ margin: 0 auto 1.25rem;
36
+ border-radius: 999px;
37
  background: linear-gradient(90deg, #7dd3fc, #a78bfa, #f472b6);
 
 
 
38
  }
39
 
40
  p {
41
+ color: #c3cbdb;
42
  font-size: 1rem;
43
  line-height: 1.6;
44
  margin: 0.5rem 0;