Skip to content

Commit 72bba18

Browse files
author
Sadanand Pai
committed
Web: CSS improvements
1 parent 17aeca3 commit 72bba18

File tree

5 files changed

+25
-5
lines changed

5 files changed

+25
-5
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
<h1>JavaScript Modern Interview Code Challenges</h1>
33
<h3>Collection of modern interview code challenges on JavaScript suitable for</h3>
44
<h4>Interviewees | Interviewers | Knowledge test | Practice</h4>
5-
<a href="#javascript-modern-interview-code-challenges-by-topic"><img src="web/public/hero.png" alt="banner" width="500px"/></a>
5+
<br/><br/>
6+
<a href="#javascript-modern-interview-code-challenges-by-topic"><img src="web/public/hero.svg" alt="hero" width="350px"/></a>
67
</div>
78

9+
<br/><br/>
10+
811
<div align="center">
912
<p>
1013
<a name="stars"><img src="https://img.shields.io/github/stars/sadanandpai/javascript-code-challenges?style=for-the-badge"></a>

web/public/hero.png

-34.2 KB
Binary file not shown.

web/public/hero.svg

Lines changed: 1 addition & 0 deletions
Loading

web/src/pages/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ Collection of modern interview code challenges on JavaScript suitable for <br />
88
**Interviewees | Interviewers | Knowledge test | Practice**
99

1010
<Image
11-
src="/hero.png"
11+
src="/hero.svg"
1212
alt="hero banner"
1313
width={400}
1414
height={350}
15-
className="m-auto"
15+
className="m-auto my-16"
1616
/>
1717
</div>
1818

19-
<Cards style={{ gridTemplateColumns: "1fr 1fr" }}>
19+
<Cards num={2} className="cards">
2020
<Card title="Concepts" href="/concepts/primitives" />
2121
<Card title="Challenges" href="/challenges/primitives" />
2222
</Cards>

web/src/styles/globals.css

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
@tailwind utilities;
1+
@tailwind utilities;
2+
3+
.cards.cards {
4+
gap: 2rem;
5+
}
6+
7+
.cards span {
8+
margin: auto;
9+
}
10+
11+
.dark .cards.cards a {
12+
border-color: rgb(150, 150, 150);
13+
}
14+
15+
.dark .cards.cards a:hover {
16+
border-color: white;
17+
}

0 commit comments

Comments
 (0)