Skip to content

Commit 7debd8f

Browse files
Add favicon, homepage image, video (#372)
Likely the image will be redone, video will change before live etc (it's too long!). Gone for a thumbnail at the end of the process for some interest but might overlay an image for quicker load.
1 parent 84d0b11 commit 7debd8f

File tree

5 files changed

+14
-18
lines changed

5 files changed

+14
-18
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
/>
2525
<meta property="og:image" content="%VITE_FULL_URL%social.jpg" />
2626

27-
<link rel="icon" type="image/png" href="/imgs/favicon.png" />
27+
<link rel="shortcut icon" href="%VITE_FULL_URL%/imgs/favicon.ico" />
2828

2929
<script
3030
src="https://shared-assets.microbit.org/common/v1/common.js"

public/imgs/favicon.ico

14.7 KB
Binary file not shown.

public/imgs/favicon.png

-7.46 KB
Binary file not shown.

src/images/clap-square.png

85.3 KB
Loading

src/pages/HomePage.tsx

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import YoutubeVideoEmbed from "../components/YoutubeVideoEmbed";
2323
import { useDeployment } from "../deployment";
2424
import blockImage from "../images/block.png";
2525
import xyzGraph from "../images/xyz-graph.png";
26+
import clap from "../images/clap-square.png";
2627
import { createNewPageUrl } from "../urls";
2728

2829
const graphData = {
@@ -109,11 +110,21 @@ const HomePage = () => {
109110
<Box flex="1" position="relative">
110111
<Image
111112
src={xyzGraph}
112-
borderRadius="md"
113+
borderRadius="lg"
113114
bgColor="white"
114115
pr={1}
115116
alt={intl.formatMessage({ id: "homepage-alt" })}
116117
/>
118+
<Image
119+
height="55%"
120+
position="absolute"
121+
bottom={0}
122+
left={0}
123+
src={clap}
124+
borderRadius="md"
125+
pr={1}
126+
alt={intl.formatMessage({ id: "homepage-alt" })}
127+
/>
117128
</Box>
118129
</HStack>
119130
<VStack spacing={8} w="100%" maxW="container.md">
@@ -122,24 +133,9 @@ const HomePage = () => {
122133
</Heading>
123134
<Box w="100%" position="relative">
124135
<YoutubeVideoEmbed
125-
youtubeId="ZhUtuuQemFc"
136+
youtubeId="7DqaU_Qexy4"
126137
alt={intl.formatMessage({ id: "homepage-video-alt" })}
127138
/>
128-
<Box
129-
position="absolute"
130-
bgColor="brand.700"
131-
color="white"
132-
fontWeight="bold"
133-
top={0}
134-
left={0}
135-
right={0}
136-
bottom={0}
137-
display="flex"
138-
justifyContent="center"
139-
alignItems="center"
140-
>
141-
<Text>Video coming soon</Text>
142-
</Box>
143139
</Box>
144140
<Text fontSize="md">
145141
<FormattedMessage

0 commit comments

Comments
 (0)