Skip to content

Commit 52ba3dc

Browse files
committed
feat: add new images
1 parent 1b923fd commit 52ba3dc

File tree

7 files changed

+49
-48
lines changed

7 files changed

+49
-48
lines changed

index.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77

88
<meta name="og:title" content="GitHub Audio">
99
<meta name="og:url" content="https://github.audio">
10-
<meta name="og:image" content="https://github.audio/public/images/electric-guitar.png">
10+
<meta name="og:image" content="images/logo.png">
1111
<meta name="og:description" content="Listen to music generated by events happening across GitHub">
1212

1313
<meta name="twitter:card" content="summary" />
1414
<meta name="twitter:site" content="https://github.audio" />
1515
<meta name="twitter:title" content="GitHub Audio" />
1616
<meta name="twitter:description" content="Listen to music generated by events happening across GitHub" />
17-
<meta name="twitter:image" content="https://github.audio/public/images/electric-guitar.png" />
17+
<meta name="twitter:image" content="/images/logo.png" />
1818
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
1919

2020
<meta http-equiv='Expires' content='0'>
@@ -23,8 +23,8 @@
2323
<meta http-equiv='imagetoolbar' content='no'>
2424

2525
<title>GitHub Audio</title>
26-
<link rel="mask-icon" href="/images/electric-guitar.svg" color="orange">
27-
<link rel="shortcut icon" type="image/png" href="/images/favicon.png"/>
26+
<link rel="mask-icon" href="/images/logo-180.png" color="black">
27+
<link rel="shortcut icon" type="image/png" href="/images/favicon.ico"/>
2828

2929
<!-- Google Fonts -->
3030
<link rel="preconnect" href="https://fonts.googleapis.com">
@@ -43,4 +43,4 @@
4343
ga('send', 'pageview');
4444
</script>
4545
</body>
46-
</html>
46+
</html>

public/images/electric-guitar.png

-5.82 KB
Binary file not shown.

public/images/favicon.ico

15 KB
Binary file not shown.

public/images/favicon.png

-1.73 KB
Binary file not shown.

public/images/logo-60.avif

1.43 KB
Binary file not shown.

public/images/logo.png

41.2 KB
Loading

src/App.tsx

Lines changed: 44 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -44,29 +44,23 @@ const PlayButton = styled.img`
4444
const Header = styled.header<{ $isOnline: boolean }>`
4545
position: relative;
4646
width: 100%;
47-
height: 75px;
48-
color: #fff;
49-
font-family: 'Inter', sans-serif;
50-
padding: 20px;
47+
padding: 20px 40px;
5148
z-index: 1000;
5249
transition: background-color 0.3s ease;
50+
display: flex;
51+
flex-direction: row-reverse;
52+
align-items: center;
53+
54+
@media (max-width: 768px) {
55+
padding: 10px 20px;
56+
}
5357
54-
h1 {
55-
float: left;
56-
font-size: 1.6em;
57-
line-height: 1em;
58-
margin: 0;
59-
60-
span {
61-
font-size: 0.4em;
62-
visibility: ${props => props.$isOnline ? 'hidden' : 'visible'};
63-
}
58+
.logo {
59+
height: 60px;
60+
width: auto;
6461
}
6562
6663
input[type="range"] {
67-
position: absolute;
68-
top: 30px;
69-
right: 40px;
7064
width: 100px;
7165
opacity: 0.3;
7266
transition: opacity 0.2s ease;
@@ -100,17 +94,16 @@ const MainArea = styled.div<{ $isOnline: boolean }>`
10094
margin: auto;
10195
background: conic-gradient(
10296
from 0deg,
103-
#90D1CA 0%,
104-
#7BCDC1 10%,
105-
#129990 20%,
97+
#FE7743 0%,
98+
#F1BA88 20%,
10699
#6C4E4E 30%,
107-
#CB0404 40%,
108-
#D93C1B 50%,
109-
#FE5D26 60%,
110-
#FF7F35 70%,
111-
#FF9B45 80%,
112-
#927AF5 90%,
113-
#4B70F5 100%
100+
#3A59D1 40%,
101+
#3D90D7 50%,
102+
#0118D8 60%,
103+
#7965C1 70%,
104+
#483AA0 80%,
105+
#CF0F47 90%,
106+
#EA98DA 100%
114107
);
115108
animation: spinAndPulseBlob 30s cubic-bezier(0.77, 0, 0.175, 1) infinite,
116109
fadeBlob 15s ease-in-out infinite;
@@ -174,6 +167,11 @@ const Footer = styled.footer`
174167
text-align: center;
175168
color: #666;
176169
font-size: 0.9em;
170+
display: flex;
171+
justify-content: center;
172+
align-items: center;
173+
flex-direction: column;
174+
gap: 10px;
177175
`;
178176

179177
const App: React.FC = () => {
@@ -296,10 +294,6 @@ const App: React.FC = () => {
296294

297295
<MainArea $isOnline={isOnline}>
298296
<Header $isOnline={isOnline}>
299-
<h1>
300-
Project Audio for GitHub&nbsp;
301-
<span>offline</span>
302-
</h1>
303297
<input
304298
type="range"
305299
min="0"
@@ -329,18 +323,25 @@ const App: React.FC = () => {
329323
</ConfigArea>
330324

331325
<Footer>
332-
<div>
333-
<span>This project is not in any way affiliated with GitHub.</span><br/>
334-
This project is open source, you can view it on{' '}
335-
<a href="https://github.com/debugger22/github-audio" target="_blank" rel="noopener noreferrer">
336-
GitHub
337-
</a><br/>
338-
Developed by{' '}
339-
<a href="https://github.com/debugger22/github-audio" target="_blank" rel="noopener noreferrer">
340-
@debugger22
341-
</a><br/>
342-
ProTip: It's actually kind of nice to leave on the background
343-
</div>
326+
<img
327+
className="logo"
328+
src="/images/logo-60.avif"
329+
alt="GitHub Audio Logo"
330+
width={60}
331+
height={60}
332+
/>
333+
<span>This project is not in any way affiliated with GitHub.</span>
334+
<span>
335+
<a href="https://github.com/debugger22/github-audio" target="_blank" rel="noopener noreferrer">
336+
Source Code
337+
</a>
338+
</span>
339+
<span>
340+
Developed by{' '} <a href="https://github.com/debugger22" target="_blank" rel="noopener noreferrer">@debugger22</a>
341+
</span>
342+
<span>
343+
ProTip: It's actually kind of nice to leave on the background
344+
</span>
344345
</Footer>
345346
</AppContainer>
346347
);

0 commit comments

Comments
 (0)