1
00:00:00,600 --> 00:00:04,960
Welcome back perfect peeps to 
code with coding cat. 

2
00:00:05,120 --> 00:00:08,160
I got it right this week. 
Yeah, I think we got to call 

3
00:00:08,160 --> 00:00:09,920
them crazy cats or something, 
though. 

4
00:00:09,920 --> 00:00:11,920
We're still working on that 
Alliterative. 

5
00:00:12,120 --> 00:00:14,840
I know I feel like perfect peeps
are still cool though. 

6
00:00:15,240 --> 00:00:16,320
I don't know. 
Cool. 

7
00:00:16,600 --> 00:00:20,840
Cool coding cat friends. 
Yeah, we'll, we'll work on it. 

8
00:00:20,840 --> 00:00:23,880
I I also have to do our intro. 
Still, there's only so much time

9
00:00:23,880 --> 00:00:25,360
in the day. 
Exactly. 

10
00:00:26,400 --> 00:00:27,880
So we haven't. 
Put it in the real. 

11
00:00:29,160 --> 00:00:31,560
We we have a special guest with 
us today. 

12
00:00:31,800 --> 00:00:35,280
Tomash, you you want to 
introduce yourself. 

13
00:00:36,720 --> 00:00:40,160
Sure. 
Hi, good morning, afternoon, 

14
00:00:40,160 --> 00:00:43,160
evening to to everyone. 
My name is Thomas. 

15
00:00:43,800 --> 00:00:47,800
I work at Cloudinery and I do 
dev rail at Cloudinery and I'm 

16
00:00:47,800 --> 00:00:52,720
just flattered to be to be here 
and hopefully I'll be useful in 

17
00:00:53,280 --> 00:00:56,200
helping you doing some of this 
live coding. 

18
00:00:57,080 --> 00:00:59,800
Are you do you do stuff with the
MD program? 

19
00:00:59,800 --> 00:01:01,640
Is that why I see you float 
around out there? 

20
00:01:02,400 --> 00:01:09,000
I do nice, in fact, very soon, 
and this is me spoiling some of 

21
00:01:09,000 --> 00:01:11,880
those beans that I'm not 
supposed to spoil, but there's 

22
00:01:11,880 --> 00:01:16,160
going to be more stuff coming 
towards the MD program for for 

23
00:01:16,160 --> 00:01:18,080
me that's. 
Exciting, I've been at. 

24
00:01:18,120 --> 00:01:20,200
MD Very. 
Exciting since the beginning, 

25
00:01:20,240 --> 00:01:24,000
so. 
Yes, So you will see the the 

26
00:01:24,000 --> 00:01:27,000
updates hopefully finally soon. 
Very cool. 

27
00:01:27,200 --> 00:01:29,400
That's that's exciting. 
Did you have you had crossover 

28
00:01:29,400 --> 00:01:32,760
with Tessa then, right? 
Yes, we, I think we've worked 

29
00:01:32,760 --> 00:01:35,960
together for about 2-3 years. 
I want to say. 

30
00:01:36,000 --> 00:01:38,800
So very cool. 
Awesome. 

31
00:01:41,280 --> 00:01:44,040
So I always like to start our 
Fridays off a little more 

32
00:01:44,040 --> 00:01:48,480
casual. 
Brittany, how was Netlify this 

33
00:01:48,480 --> 00:01:50,920
week? 
Because I always like to start. 

34
00:01:51,680 --> 00:01:53,920
Our Fridays. 
I can't figure out where the 

35
00:01:54,000 --> 00:01:57,360
echo is coming from. 
Oh, you know what? 

36
00:01:57,400 --> 00:01:58,760
I think it's coming from my 
phone. 

37
00:01:59,360 --> 00:02:03,280
No, it was playing on my phone. 
I'm like where is? 

38
00:02:03,920 --> 00:02:05,080
This. 
Sometimes there's a million 

39
00:02:05,080 --> 00:02:07,160
tabs, no one knows. 
Exactly. 

40
00:02:07,280 --> 00:02:10,960
I think we decided here in like 
week seven was that I don't 

41
00:02:10,960 --> 00:02:13,160
know. 
Week 7-8 time time is a 

42
00:02:13,160 --> 00:02:15,280
nickname, but it's flurred 
together. 

43
00:02:15,680 --> 00:02:18,080
It's like the Nestle Fight 
Diaries, isn't it? 

44
00:02:18,560 --> 00:02:21,600
It's great, yeah. 
You got another post out I was 

45
00:02:21,640 --> 00:02:23,920
pretty excited about. 
I did, yeah. 

46
00:02:23,920 --> 00:02:26,280
I got a post out on quick this 
time. 

47
00:02:26,640 --> 00:02:30,320
I I meant to meant to have this 
up and loaded, but we'll do it 

48
00:02:30,320 --> 00:02:34,120
right now. 
It's fun getting all of the new 

49
00:02:34,120 --> 00:02:37,400
technologies and getting to work
with some of the new things. 

50
00:02:37,400 --> 00:02:41,360
I love felt always, but I like 
getting to try out some of these

51
00:02:41,360 --> 00:02:41,720
new. 
Things. 

52
00:02:41,720 --> 00:02:43,760
Wow you guys post a lot. 
I thought you were going to be 

53
00:02:43,760 --> 00:02:46,760
like the second one, maybe Boom 
boom boom boom. 

54
00:02:47,080 --> 00:02:51,560
Yeah, there's lots of post going
out holy small all the time. 

55
00:02:52,080 --> 00:02:55,760
So the little quick JavaScript 
framework, as you all might 

56
00:02:55,760 --> 00:03:01,040
know, I was at Builder until 
like this week and May, May next

57
00:03:01,040 --> 00:03:02,320
week, we'll talk about where I'm
headed. 

58
00:03:02,320 --> 00:03:05,280
But hey. 
Princess here. 

59
00:03:05,920 --> 00:03:09,120
So Brittany wrote up this sweet 
quick article. 

60
00:03:10,440 --> 00:03:12,120
I think it's pretty cool. 
So if you haven't heard it 

61
00:03:12,120 --> 00:03:16,280
quick, it's kind of a a new 
JavaScript framework that 

62
00:03:16,600 --> 00:03:20,280
basically ships almost no 
JavaScript to the front end. 

63
00:03:20,360 --> 00:03:23,960
And then once it's up there, it 
can load it. 

64
00:03:24,000 --> 00:03:27,440
I don't know if you say 
progressively, that's probably 

65
00:03:27,440 --> 00:03:30,080
not the right word, but. 
Asynchronously. 

66
00:03:30,520 --> 00:03:32,800
Isn't that how it? 
I mean, as it as it needs it, 

67
00:03:33,080 --> 00:03:37,920
let's say as it needs it. 
So yeah, cool post, Good job. 

68
00:03:38,600 --> 00:03:41,360
Thank you. 
Thank you for showcasing it. 

69
00:03:41,960 --> 00:03:43,680
Yeah. 
But basically my job. 

70
00:03:43,680 --> 00:03:45,320
I've been writing a lot of blog 
posts. 

71
00:03:45,320 --> 00:03:47,080
I've been starting my own 
stream. 

72
00:03:47,080 --> 00:03:49,440
I've been doing like lots of 
different things. 

73
00:03:49,440 --> 00:03:51,640
I can't even keep track anymore.
I do too much. 

74
00:03:53,320 --> 00:03:56,480
Salma asked me today if I if I 
got a break ever. 

75
00:03:56,480 --> 00:04:00,920
And I'm just like, no. 
That's such a Bower. 

76
00:04:02,080 --> 00:04:07,160
Oh Tamash, how was your week? 
Did you do anything fun at 

77
00:04:07,160 --> 00:04:09,320
Cloudnary? 
Did you read any blog posts? 

78
00:04:10,760 --> 00:04:16,279
No, so so you see, Cloudnary had
their big company get together 

79
00:04:17,120 --> 00:04:19,640
in a remote location and I 
wasn't there. 

80
00:04:19,640 --> 00:04:25,720
So so it was a very quiet week. 
I also got a bit sick. 

81
00:04:25,720 --> 00:04:27,120
So I just just all said news 
really. 

82
00:04:27,120 --> 00:04:29,880
So it's you better skip the 
update from 55. 

83
00:04:31,560 --> 00:04:32,760
But it's all good now. 
All good. 

84
00:04:32,760 --> 00:04:34,560
Now you know I'm I'm back in 
action. 

85
00:04:35,640 --> 00:04:41,680
So in case Tamash has to bail on
excuse me, I've been sick all 

86
00:04:41,680 --> 00:04:44,640
week too, so if I just cut out. 
It's just me. 

87
00:04:47,840 --> 00:04:53,760
So Tamash you, you are kind of 
further into the time as as it 

88
00:04:53,760 --> 00:04:55,480
were. 
So it's getting late where you 

89
00:04:55,480 --> 00:05:00,160
are and I don't want to skip out
in case you have to jet later on

90
00:05:00,160 --> 00:05:04,440
as we're coding and miss out on 
a a new training course you have

91
00:05:04,440 --> 00:05:05,840
going. 
You want to talk a little bit 

92
00:05:05,840 --> 00:05:08,400
about this? 
Sure. 

93
00:05:08,400 --> 00:05:11,120
So wow, you already loaded it up
actually. 

94
00:05:11,240 --> 00:05:15,440
So, so yeah, I, I run this 
portal website, you know, 

95
00:05:15,440 --> 00:05:17,600
whatever you want to call it 
called jump stack or training. 

96
00:05:18,840 --> 00:05:22,160
And I basically record courses 
about various jump stack 

97
00:05:22,200 --> 00:05:25,440
technologies. 
So I think this is the, the 

98
00:05:25,440 --> 00:05:29,920
course that I just recorded is 
course #14 and it's actually 

99
00:05:29,920 --> 00:05:32,120
there in the first one. 
Create jump stack applications 

100
00:05:32,120 --> 00:05:35,080
with Swell Kit. 
So again, all these courses are 

101
00:05:35,080 --> 00:05:37,240
for free and then that's the 
latest edition. 

102
00:05:37,680 --> 00:05:40,400
So I'm just using Swelt and 
contentful and then, you know, 

103
00:05:41,080 --> 00:05:43,960
create a fun little app. 
I use a little bit of cloudy and

104
00:05:43,960 --> 00:05:45,720
then we just deploy the whole 
thing on Versal. 

105
00:05:45,720 --> 00:05:50,440
So if anyone wants to get the 
basics, you know, learn the 

106
00:05:50,440 --> 00:05:54,920
basics of Swelt kit, there's a 
little bit of Swelt in there as 

107
00:05:54,920 --> 00:05:56,000
well. 
But obviously, you know, didn't 

108
00:05:56,000 --> 00:05:57,560
spend a lot of time talking 
about Swelt. 

109
00:05:58,120 --> 00:06:01,520
The assumption is that you kind 
of know what it is, but then you

110
00:06:01,520 --> 00:06:04,200
want to know, you know, how to 
integrate it with the content 

111
00:06:04,200 --> 00:06:06,720
full and you know, how do you 
add like images and stuff? 

112
00:06:06,720 --> 00:06:10,480
And one of the cool things that 
I added in this project and, and

113
00:06:10,480 --> 00:06:14,240
I talked about it in another 
podcast is shoppable video, 

114
00:06:14,400 --> 00:06:16,600
right? 
Which is basically you have a 

115
00:06:16,600 --> 00:06:19,720
video playing and then maybe, 
you know, it's a model walking 

116
00:06:19,720 --> 00:06:23,000
down the down the street. 
And then, you know, they wear a,

117
00:06:23,000 --> 00:06:26,440
a bag, you know, dress the 
sunglass. 

118
00:06:26,440 --> 00:06:29,640
And then you get this little bar
in the video. 

119
00:06:29,640 --> 00:06:32,280
And if you click the sunglass, 
then the video jumps to the 

120
00:06:32,280 --> 00:06:35,360
second where the, the, the 
sunglass appears. 

121
00:06:35,360 --> 00:06:37,320
And then, you know, just click 
it and it takes you to the 

122
00:06:37,320 --> 00:06:41,760
product description page. 
So that's the in the yeah, we, 

123
00:06:42,080 --> 00:06:45,320
we talked about it. 
In this video I'm in a link. 

124
00:06:45,720 --> 00:06:50,520
Do you have to use the Cloudnary
component to be able to do that?

125
00:06:51,040 --> 00:06:52,880
Yes. 
So you have to actually use the 

126
00:06:52,880 --> 00:06:56,520
cloud in your video player 
because it has a configuration 

127
00:06:56,520 --> 00:06:59,360
object which then you can 
configure to work with the 

128
00:06:59,360 --> 00:07:04,320
so-called shoppable video. 
And then it also takes it also 

129
00:07:04,320 --> 00:07:08,520
takes the the other image assets
that you want to put into that 

130
00:07:08,520 --> 00:07:10,360
sidebar from your cloud in your 
account. 

131
00:07:10,360 --> 00:07:12,360
So the product images are also 
in your account. 

132
00:07:12,360 --> 00:07:14,720
So it all kind of that's really.
Cool, you know. 

133
00:07:15,160 --> 00:07:17,200
Works very well together. 
I should have. 

134
00:07:17,600 --> 00:07:21,840
I know there's a React component
for this, but from this felt kit

135
00:07:21,840 --> 00:07:24,920
side, do you just use the native
JavaScript component then? 

136
00:07:26,520 --> 00:07:31,400
So to display the images I used 
the. 

137
00:07:31,400 --> 00:07:34,920
We have this package called the 
URL generator, which is at cloud

138
00:07:35,080 --> 00:07:40,200
slash URL hyphen Gen., which is 
pretty much a framework agnostic

139
00:07:40,800 --> 00:07:44,840
JavaScript package because we 
don't obviously have a, you 

140
00:07:44,840 --> 00:07:47,880
know, an SDK for swelt. 
But then of course that URL Jen 

141
00:07:47,880 --> 00:07:50,840
works with any front end 
framework. 

142
00:07:50,840 --> 00:07:53,200
So I use that. 
And then for the video player, 

143
00:07:53,200 --> 00:07:57,840
that's like just a a drop in 
video player JS that you put in 

144
00:07:57,840 --> 00:07:59,760
a script tag and then that's 
pretty much it. 

145
00:08:00,840 --> 00:08:04,040
I think this might be a perfect 
segue. 

146
00:08:04,080 --> 00:08:07,160
Oh. 
Just a second, I have to ask 

147
00:08:07,160 --> 00:08:10,640
Tomas how you create so many 
courses? 

148
00:08:13,520 --> 00:08:16,480
He does was sit down you. 
Yeah. 

149
00:08:17,520 --> 00:08:21,400
You just make time sleep. 
No, it's, yeah, I look, it's I, 

150
00:08:21,400 --> 00:08:23,840
I do come from a, a technical 
instructor background. 

151
00:08:23,840 --> 00:08:27,440
So before I, I did Deborah, I 
did technical training courses 

152
00:08:27,440 --> 00:08:31,000
for various companies. 
So teaching has always been 

153
00:08:31,000 --> 00:08:34,360
something I've been doing and I 
just enjoy it so. 

154
00:08:35,000 --> 00:08:37,000
OK. 
I just yeah, keep on doing it. 

155
00:08:37,000 --> 00:08:39,400
I'm wondering because we're 
trying to create some courses 

156
00:08:39,400 --> 00:08:43,280
for coding cat and it's just, 
it's so hard to find time. 

157
00:08:43,280 --> 00:08:45,640
And I think the type that we're 
doing is more like 

158
00:08:45,640 --> 00:08:48,680
instructional, like step by step
through the basics of the 

159
00:08:48,680 --> 00:08:50,480
beginning. 
And for me, spelt kit is 

160
00:08:50,480 --> 00:08:53,000
changing all the time. 
So my intro to spelt kit course,

161
00:08:53,000 --> 00:08:55,120
I'm like, I'm waiting for like 
stability. 

162
00:08:55,480 --> 00:08:58,240
I'm like I don't want to go back
and re record these videos. 

163
00:08:59,120 --> 00:09:02,920
I know that yeah, there's a 
disclaimer in the at the 

164
00:09:02,920 --> 00:09:05,640
beginning of this this course 
that says, hey, this is beta. 

165
00:09:05,640 --> 00:09:10,160
So, you know, just things may 
change, but then, yeah, yeah, 

166
00:09:10,160 --> 00:09:12,320
there are some courses that are 
recorded maybe three years ago 

167
00:09:12,320 --> 00:09:16,160
that probably not so. 
You don't worry. 

168
00:09:16,240 --> 00:09:19,760
About probably they it would no 
'cause you know, I I would then 

169
00:09:19,760 --> 00:09:22,840
just re record. 
Well, I wouldn't re record the 

170
00:09:22,840 --> 00:09:25,240
same stuff. 
I would record a new course 

171
00:09:25,240 --> 00:09:27,720
using the sort of updated 
version of the tech. 

172
00:09:28,080 --> 00:09:29,760
Yeah. 
But then again, if someone is, 

173
00:09:30,840 --> 00:09:33,400
if someone's new, new to 
someone's new to all of this, 

174
00:09:33,400 --> 00:09:37,520
then I think, you know, whether 
you use, I don't know, Gatsby 3 

175
00:09:37,520 --> 00:09:39,440
or whatever I was using. 
And now I think that version 

176
00:09:39,440 --> 00:09:43,640
four or, you know, the, the 
fundamentals are still the same.

177
00:09:43,960 --> 00:09:46,320
Maybe the, you know, the syntax 
is a little bit different or you

178
00:09:46,320 --> 00:09:47,960
have to configure stuff 
differently. 

179
00:09:47,960 --> 00:09:51,920
But the, the whole here's how 
you create a route, here's how 

180
00:09:51,920 --> 00:09:55,360
you do this and that. 
That's pretty much, you know, 

181
00:09:55,360 --> 00:09:56,720
the same. 
Gotcha. 

182
00:09:56,920 --> 00:09:58,960
Yeah. 
And if anyone is interested too,

183
00:09:58,960 --> 00:10:04,120
Coding Cat allows authors to 
come on and we pay you for 

184
00:10:04,120 --> 00:10:06,200
courses. 
So if if you want to come on, 

185
00:10:06,200 --> 00:10:09,280
you get the full value for your 
course if you sell it on Coding 

186
00:10:09,280 --> 00:10:11,520
Cat. 
So I have 14 courses to sell. 

187
00:10:11,560 --> 00:10:15,120
How much would that be? 
It's all. 

188
00:10:15,120 --> 00:10:17,520
It's all based. 
On watch time so. 

189
00:10:18,160 --> 00:10:20,200
The 100% of what they watch, you
get. 

190
00:10:20,320 --> 00:10:23,760
So yeah, bring them over. 
We'd we'd happily take them on 

191
00:10:25,120 --> 00:10:28,640
and I, I don't know, I I got to 
write this blog post. 

192
00:10:28,640 --> 00:10:32,280
Maybe Brittany needs to, but we 
are now an official GitHub 

193
00:10:32,520 --> 00:10:35,960
sponsorship so we got all 
approved. 

194
00:10:36,560 --> 00:10:37,800
Yes. 
Maybe I should. 

195
00:10:38,080 --> 00:10:39,560
Maybe I should bring that up. 
Let's see. 

196
00:10:41,520 --> 00:10:46,560
Yeah, we're trying to work on 
getting sponsors, making this 

197
00:10:46,560 --> 00:10:50,280
thing like official and. 
We got the cool heart button now

198
00:10:50,280 --> 00:10:55,400
that you can click and it talks 
all about like how we actually 

199
00:10:55,400 --> 00:10:59,400
pay out people the views you 
get, what dollars that 

200
00:10:59,400 --> 00:11:01,520
represents all of those fun 
things. 

201
00:11:01,800 --> 00:11:04,040
And there's more to it than 
this, but this is kind of just 

202
00:11:04,040 --> 00:11:07,560
for sponsored people to like, 
read into and get and. 

203
00:11:07,960 --> 00:11:10,720
Get some analytics. 
Got a goal out there so we can 

204
00:11:10,720 --> 00:11:14,760
like pay our people and as we 
get more sponsors, we'll move 

205
00:11:14,760 --> 00:11:17,640
that goal up. 
So go click a tier if you love 

206
00:11:17,640 --> 00:11:20,520
our stuff and especially if you 
want to come on and be an 

207
00:11:20,520 --> 00:11:22,880
author. 
Check that out and let us know. 

208
00:11:23,000 --> 00:11:25,880
DM us if you if you like 
building courses for sure. 

209
00:11:27,120 --> 00:11:29,240
Or blog posts or anything. 
Literally. 

210
00:11:29,400 --> 00:11:31,240
Yeah. 
Let us know for sure. 

211
00:11:32,720 --> 00:11:34,400
All right, now it's time to 
transition. 

212
00:11:34,440 --> 00:11:38,160
OK, I really. 
I had a good transition but now 

213
00:11:38,160 --> 00:11:43,920
that we've kind of diverged. 
So tabash was talking about how 

214
00:11:44,200 --> 00:11:47,920
how they use the cloud nary URL 
in in their set up. 

215
00:11:47,920 --> 00:11:51,760
And so for coding cap, if y'all 
remember from the last time we 

216
00:11:51,760 --> 00:11:54,840
were doing this yeah, now we're 
getting back into the this felt 

217
00:11:54,840 --> 00:12:01,160
get notion, all that fun stuff. 
We have a notion page set up in 

218
00:12:01,160 --> 00:12:05,120
the back end and when you load 
different items up to that. 

219
00:12:05,120 --> 00:12:08,880
So for our streams or posts or 
whatever, I think we've been 

220
00:12:08,920 --> 00:12:10,920
showing off our streams. 
So we'll look at that first. 

221
00:12:12,200 --> 00:12:14,680
So when you load those, you can 
actually load any image. 

222
00:12:14,680 --> 00:12:18,280
You can just copy paste, drag, 
whatever you want to do. 

223
00:12:18,800 --> 00:12:21,840
And when you do that, it kind of
looks like this. 

224
00:12:23,280 --> 00:12:29,080
And so we, we dynamically create
these images based off a Twitter

225
00:12:29,080 --> 00:12:32,920
handle. 
So when we, the way that we do 

226
00:12:32,920 --> 00:12:37,720
that is we actually run a Google
Cloud function through Firebase 

227
00:12:38,720 --> 00:12:43,760
and every 5 minutes it goes and 
looks to see if we have anything

228
00:12:43,760 --> 00:12:47,040
that we need scheduled. 
So that's kind of the the first 

229
00:12:47,040 --> 00:12:50,000
thing that happens out here. 
I see why I'm confused now. 

230
00:12:50,000 --> 00:12:54,080
I was like following the live 
share, but this is just our code

231
00:12:54,080 --> 00:12:55,800
with coding cat coding base, 
right? 

232
00:12:55,920 --> 00:12:58,640
It is our coding cat, yeah. 
Yeah. 

233
00:12:58,640 --> 00:13:03,280
So this, this is our coding cat 
back end code, if you will. 

234
00:13:03,280 --> 00:13:06,800
So this is in Firebase. 
And when we schedule this every 

235
00:13:06,800 --> 00:13:09,960
5 minutes, it has the 
opportunity to go take a look 

236
00:13:09,960 --> 00:13:14,280
and see if we have anything 
that's in this scheduled area 

237
00:13:14,600 --> 00:13:17,160
that needs an image. 
So it checks anything blank that

238
00:13:17,160 --> 00:13:20,040
needs an image. 
So for instance at. 

239
00:13:20,120 --> 00:13:23,160
The bottom. 
This new podcast, I forget what 

240
00:13:23,160 --> 00:13:25,280
Sean's is going to be on. 
Is this the view one? 

241
00:13:26,120 --> 00:13:27,960
I'll just do I. 
Don't know, it's on my birthday 

242
00:13:27,960 --> 00:13:30,760
though so we haven't decided if 
I'm going to be there or not. 

243
00:13:31,240 --> 00:13:34,680
Right, I I remember that I doubt
you'll be there, but I will be 

244
00:13:36,000 --> 00:13:37,240
you shouldn't be don't know 
that's. 

245
00:13:37,240 --> 00:13:39,400
My big That's my big birthday 
too, folks. 

246
00:13:39,480 --> 00:13:42,400
Still be 29. 
Forever. 

247
00:13:42,400 --> 00:13:44,480
For the rest of my life, I 
won't. 

248
00:13:44,960 --> 00:13:47,960
Be 20 happy. 
So yeah, as we're walking 

249
00:13:47,960 --> 00:13:51,480
through this, basically we have 
a bunch of pub Subs that come 

250
00:13:51,480 --> 00:13:54,400
off of this. 
So what I did, I created a topic

251
00:13:54,400 --> 00:13:58,000
that it sends out right here. 
So you'll see a send topic. 

252
00:13:58,200 --> 00:14:00,960
The topic ID is cloud nary 
create from notion. 

253
00:14:02,200 --> 00:14:06,000
When that runs it then goes 
through and says, OK, go find 

254
00:14:06,000 --> 00:14:08,480
this Twitter handle from the 
Twitter API. 

255
00:14:08,480 --> 00:14:13,840
Grab the image of that user and 
try to generate a new cover URL.

256
00:14:15,360 --> 00:14:19,360
So when we take that cover URL 
we actually have all this crazy 

257
00:14:19,360 --> 00:14:22,120
cloud nary stuff. 
So Tamash, this is probably very

258
00:14:22,120 --> 00:14:24,520
familiar for. 
You. 

259
00:14:24,920 --> 00:14:30,160
We do a bunch of transformations
on this and then the guest image

260
00:14:30,280 --> 00:14:34,160
overlay comes on and that's that
little image on the bottom left 

261
00:14:34,160 --> 00:14:37,600
corner and we generate that 
dynamically from Twitter so we 

262
00:14:37,600 --> 00:14:41,400
always can have one offs. 
We had this kind of set for 

263
00:14:41,400 --> 00:14:43,920
multiple authors, but it gets a 
little crazy on there. 

264
00:14:43,920 --> 00:14:46,880
Similar to like long names like 
this one's covering up ABA. 

265
00:14:47,560 --> 00:14:51,040
If it's a multiple one I go in 
figma and just mess around. 

266
00:14:51,440 --> 00:14:53,600
So unfortunately we do some 
figma on those. 

267
00:14:55,120 --> 00:14:58,280
So there's a couple things in 
there going on, but the main 

268
00:14:58,280 --> 00:15:01,920
thing here is this nice cloud 
nary uploader upload. 

269
00:15:02,720 --> 00:15:06,800
All we have to do with that is 
anything that takes in a URL, it

270
00:15:06,800 --> 00:15:09,800
can then upload to Cloudner 
itself. 

271
00:15:09,920 --> 00:15:12,880
So what we're finding when we 
were doing Opengraph images and 

272
00:15:12,880 --> 00:15:17,320
stuff, even though we can 
dynamically generate that image,

273
00:15:17,400 --> 00:15:20,960
it looks terrible when it goes 
through Opengraph. 

274
00:15:20,960 --> 00:15:26,520
So what we actually do is take 
this generated URL and load a 

275
00:15:26,520 --> 00:15:31,640
full image up to Cloudnary as if
it were the whole image. 

276
00:15:31,720 --> 00:15:36,360
And we actually write that based
on the current slug for that 

277
00:15:36,600 --> 00:15:39,840
that podcast. 
So that's kind of one of the 

278
00:15:39,840 --> 00:15:43,280
first things that we had going 
on more recently. 

279
00:15:43,280 --> 00:15:46,120
What we've added to this is 
another pub sub. 

280
00:15:46,760 --> 00:15:50,080
So now I take and look at all of
our different back ends that we 

281
00:15:50,080 --> 00:15:52,440
have. 
So for posts or tutorials, 

282
00:15:52,440 --> 00:15:57,120
whatever we're doing now, we can
actually go into Notion and 

283
00:15:57,120 --> 00:16:00,360
let's just take a look at like a
post might be easier. 

284
00:16:01,680 --> 00:16:04,040
So we can look at this test post
right here. 

285
00:16:04,600 --> 00:16:09,320
And let's say like I just went 
like this and copied something 

286
00:16:09,320 --> 00:16:13,000
and I can paste it directly in 
Notion, which is an awesome flow

287
00:16:13,000 --> 00:16:16,520
because like you don't have to 
do anything uploading other 

288
00:16:16,520 --> 00:16:18,600
places. 
When you get done with that, you

289
00:16:18,600 --> 00:16:22,160
click this little check box 
right here and it actually goes 

290
00:16:22,160 --> 00:16:24,640
out. 
And every 5 minutes it now is 

291
00:16:24,640 --> 00:16:28,120
reading for that check mark. 
And that's what this search 

292
00:16:28,120 --> 00:16:30,400
does. 
So the promise all goes out for 

293
00:16:30,400 --> 00:16:33,360
all of these different ones. 
When they all finish, it comes 

294
00:16:33,360 --> 00:16:38,000
through and it actually does two
different topic assignments 

295
00:16:38,000 --> 00:16:41,440
through here. 
So when one gets done, it's 

296
00:16:41,440 --> 00:16:44,000
going to go to PIX to cloud 
Nari. 

297
00:16:44,720 --> 00:16:49,560
That PIX to cloud Nari is going 
to both change the cover URL. 

298
00:16:50,720 --> 00:16:55,560
So again, it's using that upload
cloud Nari from URL, which is 

299
00:16:55,720 --> 00:16:57,960
awesome. 
I, I still, I've loved the fact 

300
00:16:57,960 --> 00:17:01,200
that they do this 'cause I don't
have to download a file stream, 

301
00:17:01,200 --> 00:17:04,359
upload a bit file stream, like 
all that messiness, it's all 

302
00:17:04,359 --> 00:17:08,960
taken care of through Cloudnary.
So we actually take and download

303
00:17:08,960 --> 00:17:13,319
all of the Notion ones, which 
are these and they actually have

304
00:17:13,319 --> 00:17:16,240
timeouts on them. 
So you can only get these URLs 

305
00:17:16,240 --> 00:17:18,880
for an hour every time, like 
every time they load. 

306
00:17:18,880 --> 00:17:21,560
So for our static pages, that 
could break some of them. 

307
00:17:22,160 --> 00:17:25,880
So that's why we push them all 
out to Cloudnary the other nice 

308
00:17:25,880 --> 00:17:29,240
piece around that which we can 
get into the further we get into

309
00:17:29,240 --> 00:17:31,560
spell kit. 
But we also put a wrapper around

310
00:17:31,560 --> 00:17:34,080
all of our images using 
currently. 

311
00:17:34,080 --> 00:17:35,840
So we'll have to figure this 
piece out. 

312
00:17:35,840 --> 00:17:40,320
But currently we use Next JS's 
image component so that we get 

313
00:17:40,320 --> 00:17:45,360
cool image like it only loads 
when it scrolls into view, It 

314
00:17:45,360 --> 00:17:49,240
does all the the sizing 
dynamically and it also taps 

315
00:17:49,240 --> 00:17:51,120
into our cloud and airy public 
ID too. 

316
00:17:52,000 --> 00:17:56,120
Is that something that Cloud and
Airy has a component or 

317
00:17:56,120 --> 00:17:59,080
something for that we could use 
in spell kit? 

318
00:17:59,640 --> 00:18:03,480
They do have a JavaScript one. 
Tomas, you want to, Tomas you 

319
00:18:03,480 --> 00:18:07,480
want to talk about. 
Yeah, so right. 

320
00:18:07,480 --> 00:18:10,360
So again, I'm a bit confused, 
but why you use next? 

321
00:18:10,800 --> 00:18:13,840
Why you use Next GS? 
So sorry there's. 

322
00:18:13,880 --> 00:18:17,120
Like you, are you rewriting? 
There's two sides, yeah. 

323
00:18:17,240 --> 00:18:19,760
Current, so it's on next GS 
we're moving. 

324
00:18:19,760 --> 00:18:22,000
And you rewrite that too, so OK,
got it. 

325
00:18:23,360 --> 00:18:26,600
So first of all, for for next 
year's, probably you you're 

326
00:18:26,600 --> 00:18:29,440
already using this, but for next
year's you can configure the 

327
00:18:29,440 --> 00:18:32,720
image component with third party
loaders. 

328
00:18:32,720 --> 00:18:36,640
If you don't want to use, you 
know the Versailles CDN or 

329
00:18:36,640 --> 00:18:38,880
whatever they use for your 
images, then you can just 

330
00:18:38,880 --> 00:18:42,440
configure it to use cloud nary 
and and other providers. 

331
00:18:44,600 --> 00:18:49,600
But specifically so, as I said, 
for for swelt, because we don't 

332
00:18:49,600 --> 00:18:53,600
have an an officially supported 
SDK, you would have to use this 

333
00:18:53,600 --> 00:19:00,400
sort of generic URL generator 
package, which essentially will 

334
00:19:00,400 --> 00:19:05,040
only do one thing. 
It will create the final cloud 

335
00:19:05,040 --> 00:19:08,400
in your URL for you based on, 
you know, the various 

336
00:19:08,400 --> 00:19:10,840
transformations and 
optimizations and whatever you 

337
00:19:10,880 --> 00:19:13,880
you throw at it. 
But it's not going to do the 

338
00:19:14,680 --> 00:19:17,000
sort of like the lazy loading or
or whatever. 

339
00:19:17,000 --> 00:19:20,280
You would have to come up with 
the logic for that on your own. 

340
00:19:21,360 --> 00:19:24,480
Yeah, and this this kind of gets
back to, you know, every time we

341
00:19:24,480 --> 00:19:27,200
talk about Svelt, like there's a
lot coming out now and people 

342
00:19:27,200 --> 00:19:30,160
are making amazing packages, but
that's where React is so much 

343
00:19:30,160 --> 00:19:32,800
further ahead because there's so
many of these packages out there

344
00:19:32,800 --> 00:19:35,280
already. 
So we could do the same thing 

345
00:19:35,280 --> 00:19:39,080
where we create our our own 
Svelt image component. 

346
00:19:39,080 --> 00:19:40,520
And maybe that's already in the 
works. 

347
00:19:40,520 --> 00:19:45,080
Someone DM us if, if it is 
otherwise, like we can do all 

348
00:19:45,080 --> 00:19:48,360
that stuff too because it's it's
just JavaScript again at the end

349
00:19:48,360 --> 00:19:49,840
of the day. 
And it would be nice to have a, 

350
00:19:49,840 --> 00:19:53,040
a component do that. 
But we are using the the cloud 

351
00:19:53,040 --> 00:19:55,760
nary loader. 
And anytime we run into an image

352
00:19:55,760 --> 00:20:00,920
that is not using our media dot 
coding CAD dot dev CDN, we 

353
00:20:00,920 --> 00:20:03,440
actually take and just load a 
normal loader. 

354
00:20:03,440 --> 00:20:06,960
So it just loads the source. 
So we kind of cover both sides 

355
00:20:06,960 --> 00:20:11,840
of that a little bit, OK. 
And so that's, that's probably a

356
00:20:11,840 --> 00:20:15,800
lot of, you know, kind of the 
long and short as far as the 

357
00:20:15,800 --> 00:20:18,720
blocks go. 
Every single block gets its own 

358
00:20:18,720 --> 00:20:21,240
pub sub. 
So its own function gets created

359
00:20:21,240 --> 00:20:26,520
for every block and then it does
the patch update back to that 

360
00:20:26,520 --> 00:20:29,560
block, which is awesome. 
I mean, we can replace whole 

361
00:20:29,560 --> 00:20:33,160
pages in matter of seconds 
really so. 

362
00:20:33,840 --> 00:20:36,800
So then do do you mind if I just
have a quick question? 

363
00:20:36,800 --> 00:20:41,200
So once you, so once you grab 
that image from Notion, you can 

364
00:20:41,200 --> 00:20:45,000
upload it to cloud in there. 
Then I assume you and I don't 

365
00:20:45,000 --> 00:20:47,840
know if you have this already or
this is something that you're 

366
00:20:47,840 --> 00:20:50,720
you're still working on, but 
then how do you display that 

367
00:20:50,720 --> 00:20:52,080
image? 
Yep. 

368
00:20:52,120 --> 00:20:55,960
So when it when it goes. 
So usually we're doing this 

369
00:20:56,000 --> 00:20:58,720
during like the draft mode of a 
post. 

370
00:20:58,920 --> 00:21:01,760
And if we want, we can take a 
look at all of this live. 

371
00:21:01,760 --> 00:21:06,120
But usually what we're doing is 
we're kind of looking at a draft

372
00:21:06,120 --> 00:21:14,320
and on our Notion, we actually 
display the draft in how do I 

373
00:21:14,320 --> 00:21:18,520
say this next, GS has a preview 
of preview data. 

374
00:21:19,240 --> 00:21:23,240
And when you load that, it will 
actually preview our page with 

375
00:21:23,240 --> 00:21:26,040
that data. 
And once we run Cloud Nari, we 

376
00:21:26,040 --> 00:21:29,600
just refresh and then Cloud Nari
is all of the images at that 

377
00:21:29,600 --> 00:21:32,080
point. 
If we're in production and let's

378
00:21:32,080 --> 00:21:37,640
say we're updating a post and we
want it to be immediately 

379
00:21:37,960 --> 00:21:41,360
revalidated, we do have a 
revalidate endpoint now as well.

380
00:21:41,360 --> 00:21:45,280
So we can hit that specific post
and it too will take off and 

381
00:21:45,280 --> 00:21:46,800
just load our cloud narrowing 
images. 

382
00:21:47,560 --> 00:21:48,600
OK? 
Does that make sense? 

383
00:21:49,360 --> 00:21:53,040
Cool, yeah. 
All right, so that was kind of 

384
00:21:53,040 --> 00:21:59,240
our notion tidbits for the day. 
And again, coding cat dot dev is

385
00:21:59,240 --> 00:22:02,840
completely open source. 
If you see something that makes 

386
00:22:02,840 --> 00:22:05,280
more sense to you, feel free to 
throw APR in. 

387
00:22:06,440 --> 00:22:08,960
I I was looking to see if I 
could find this felt image 

388
00:22:08,960 --> 00:22:13,600
package and there's not one 
that's current Rodney that's 

389
00:22:13,600 --> 00:22:16,280
popular in the felt world. 
Was working on one but I don't 

390
00:22:16,280 --> 00:22:21,480
it's from 2021. 
I think so for in my course I 

391
00:22:21,480 --> 00:22:25,680
well it's. 
It's not really like a full 

392
00:22:25,760 --> 00:22:31,920
blown image component, but I did
extract the cloud inner logic 

393
00:22:31,920 --> 00:22:37,000
into image dot swelt file. 
It just reads, you know, like 

394
00:22:37,000 --> 00:22:39,640
width and height and public ID 
and the basis that it does 

395
00:22:40,240 --> 00:22:42,080
whatever it has to do. 
So it kind of, you know, 

396
00:22:42,080 --> 00:22:46,600
extracted away, but it's still 
not like, you know, that's 

397
00:22:46,720 --> 00:22:48,320
that's. 
That's actually a really great 

398
00:22:48,320 --> 00:22:51,840
point because we were going to 
do some like what are they 

399
00:22:51,840 --> 00:22:54,320
called the preview, like data 
pieces. 

400
00:22:54,320 --> 00:22:56,520
So like cloud narrator, you can 
hit the endpoint and actually 

401
00:22:56,520 --> 00:22:59,680
create like a blurred version of
an image too. 

402
00:22:59,720 --> 00:23:01,600
So there's. 
Like sharp guys. 

403
00:23:01,760 --> 00:23:03,400
Cool things. 
Yeah, exactly. 

404
00:23:04,320 --> 00:23:06,320
There's a lot of cool things 
with that cloud in our endpoint 

405
00:23:06,320 --> 00:23:07,640
you can actually end up 
creating. 

406
00:23:07,640 --> 00:23:12,880
So you can just bring like a 1K 
or less image in maybe bytes of 

407
00:23:12,880 --> 00:23:16,880
an image to show like it's going
to snap into view and then it 

408
00:23:16,880 --> 00:23:19,280
actually appears so. 
Yeah. 

409
00:23:19,280 --> 00:23:21,920
Could we set that up in our 
spell kit site right now? 

410
00:23:23,800 --> 00:23:28,120
Yeah, we haven't we. 
So let's let's review where 

411
00:23:28,120 --> 00:23:32,440
we've kind of ended up. 
Let me bring it up and we'll get

412
00:23:32,720 --> 00:23:35,600
there. 
So last time where we left off, 

413
00:23:36,680 --> 00:23:40,760
we were actually adding in you 
or Daisy. 

414
00:23:40,760 --> 00:23:42,600
We were fighting about atomic 
seasons. 

415
00:23:43,520 --> 00:23:45,640
We were disgusting. 
We were disgusting. 

416
00:23:45,920 --> 00:23:51,080
We were arguing. 
The thing she does to me after 

417
00:23:51,080 --> 00:23:54,200
this, I'm telling you I'm gonna 
have to turn her in for abuse or

418
00:23:54,200 --> 00:23:58,080
something. 
Just kidding. 

419
00:23:58,080 --> 00:24:00,520
We're we're totally friends. 
So. 

420
00:24:00,520 --> 00:24:03,480
I don't know if you know, sorry.
Let's just, I don't know if you 

421
00:24:03,480 --> 00:24:07,560
know the TV series and then 
later film down Downton Abbey. 

422
00:24:08,200 --> 00:24:12,040
Oh, I love Downton Abbey. 
OK, so if you if you look at the

423
00:24:12,160 --> 00:24:14,920
the film, so there's going to be
a new one out soon. 

424
00:24:15,000 --> 00:24:17,640
But if you look at the the one 
that came out maybe two years 

425
00:24:17,640 --> 00:24:21,960
ago, there's a scene where this 
this older lady, someone, 

426
00:24:22,040 --> 00:24:24,680
someone tells like, oh, you 
know, why could you just stop 

427
00:24:24,680 --> 00:24:26,360
arguing? 
And she goes, well, I don't 

428
00:24:26,360 --> 00:24:29,400
argue. 
I explain like that's all what 

429
00:24:29,400 --> 00:24:32,480
you need to know. 
Was it the Dame Maggie? 

430
00:24:33,320 --> 00:24:35,680
I, I think so. 
I like Maggie Smith. 

431
00:24:35,680 --> 00:24:36,680
That's. 
Her name? 

432
00:24:36,960 --> 00:24:38,360
Yeah. 
Oh, she's so good. 

433
00:24:39,000 --> 00:24:40,640
Brilliant. 
It's a brilliant line. 

434
00:24:43,200 --> 00:24:44,920
Sorry, yeah. 
No, it's all good. 

435
00:24:44,960 --> 00:24:47,360
It's all good. 
So where we kind of left off, we

436
00:24:47,360 --> 00:24:52,280
we added Daisy UI and and we 
were having a discussion about 

437
00:24:53,440 --> 00:24:59,120
how to add buttons, but do it in
a like it's felt design 

438
00:24:59,120 --> 00:25:02,000
component design system type of 
way. 

439
00:25:02,760 --> 00:25:07,600
And Brittany was trying to 
delicately explain to me because

440
00:25:07,600 --> 00:25:10,240
I wasn't quite catching on what 
she was going for. 

441
00:25:12,360 --> 00:25:16,600
It was messing me up with how 
classes on Daisy UI wouldn't 

442
00:25:16,680 --> 00:25:18,280
accomplish everything we were 
trying to. 

443
00:25:18,280 --> 00:25:20,800
But then I got it like later on.
Thankfully, she. 

444
00:25:20,920 --> 00:25:23,000
I I sent you a photo down there 
too. 

445
00:25:23,560 --> 00:25:26,240
I just, I had to get it out. 
I wasn't explaining it very 

446
00:25:26,240 --> 00:25:29,440
well, so that's not me. 
So I think what we're going to 

447
00:25:29,440 --> 00:25:34,160
do today is actually try to 
implement that button and then 

448
00:25:34,160 --> 00:25:37,480
we could probably go to images 
because the other part that we 

449
00:25:37,480 --> 00:25:41,640
have is a list of podcasts. 
And the next step that we are 

450
00:25:41,640 --> 00:25:44,680
going to do is when you click on
a podcast, which this is 

451
00:25:44,680 --> 00:25:45,760
probably broken. 
Yep. 

452
00:25:46,480 --> 00:25:51,160
We were using a package called 
Notion to HTML, which actually 

453
00:25:51,160 --> 00:25:54,480
expects public pages and we're 
actually doing all of ours 

454
00:25:54,480 --> 00:25:57,120
private. 
So we actually will probably 

455
00:25:57,120 --> 00:26:01,680
have to create a Notion to spelt
type of package that will 

456
00:26:01,680 --> 00:26:05,280
release out to people. 
It's to create like these image 

457
00:26:05,280 --> 00:26:07,000
wrappers and things like that. 
So. 

458
00:26:07,000 --> 00:26:10,360
And another thing we need to add
is a NAV bar because us typing 

459
00:26:10,360 --> 00:26:12,360
in the routes is going to get 
real annoying. 

460
00:26:13,240 --> 00:26:15,880
Yeah, so let's let's work on 
those couple things. 

461
00:26:15,880 --> 00:26:18,920
And Tamash, if if you're like, 
man, you're not getting to the 

462
00:26:18,920 --> 00:26:21,520
cloud nary piece quick enough, 
feel free to drop off. 

463
00:26:21,520 --> 00:26:23,080
You can always join us again 
too. 

464
00:26:23,600 --> 00:26:26,760
Oh no, I'll get the I'll get the
whip out and then make sure you 

465
00:26:26,760 --> 00:26:29,360
get there. 
Cool. 

466
00:26:30,760 --> 00:26:35,520
So I think with that said, 
Britt, do you want to do you 

467
00:26:35,520 --> 00:26:36,840
want to drive or you want me to 
drive? 

468
00:26:36,840 --> 00:26:40,480
How do you want to do this? 
Yeah, if I can find the code 

469
00:26:40,480 --> 00:26:42,720
that we were talking about. 
I don't remember what I was 

470
00:26:42,720 --> 00:26:45,760
doing. 
I know for a fact you discorded 

471
00:26:45,760 --> 00:26:48,160
it to me. 
I know I'm like scrolling 

472
00:26:48,160 --> 00:26:49,920
through all the discord since 
then there it is. 

473
00:26:49,920 --> 00:26:52,760
OK so but I have to share my 
screen. 

474
00:26:52,760 --> 00:26:56,480
So how do you want to do that? 
Are you following me or I'm 

475
00:26:56,480 --> 00:26:58,840
following you? 
Share your screen. 

476
00:26:59,000 --> 00:27:03,520
I can just share it directly in 
Stream Yard if you want, or I 

477
00:27:03,520 --> 00:27:05,000
can just follow you around 
either way. 

478
00:27:05,160 --> 00:27:09,480
Screen to share. 
There you go. 

479
00:27:09,960 --> 00:27:12,280
Good. 
I'll zoom in for everyone. 

480
00:27:13,040 --> 00:27:16,240
So we're still getting that 
error, but that error's fine, so

481
00:27:16,240 --> 00:27:17,600
we're going to just deal with 
that later. 

482
00:27:17,840 --> 00:27:19,400
Yeah. 
So basically we're going to rip 

483
00:27:19,400 --> 00:27:26,480
out this essentially. 
And where is our slug I'm? 

484
00:27:27,480 --> 00:27:31,200
Trying to find the live. 
Share This is the piece that 

485
00:27:31,200 --> 00:27:35,600
will end up taking out this page
HTML we'll have to take out 

486
00:27:35,600 --> 00:27:41,280
where it converts it right here,
this Notion page OK. 

487
00:27:41,840 --> 00:27:43,440
How do I stop? 
I block. 

488
00:27:43,440 --> 00:27:46,480
Following you, I wonder. 
Oh, good question. 

489
00:27:47,160 --> 00:27:49,680
I think if you click that you 
know the the same button that 

490
00:27:49,680 --> 00:27:52,360
you clicked. 
I clicked a different button 

491
00:27:52,360 --> 00:27:54,200
because I was. 
No, it's the one next to it. 

492
00:27:54,440 --> 00:27:58,600
No, the one the one next to 
joined to the right. 

493
00:27:58,720 --> 00:28:03,480
This one ah. 
Now, OK, maybe you don't. 

494
00:28:04,400 --> 00:28:06,440
OK, I don't know. 
I thought it would give you the 

495
00:28:06,480 --> 00:28:11,360
option to unfollow as well. 
But no, it's just got the two. 

496
00:28:12,000 --> 00:28:18,120
You know what I so there's a 
request others too. 

497
00:28:19,960 --> 00:28:22,240
Interesting. 
If you if you click that share 

498
00:28:22,240 --> 00:28:26,000
button or the joined button it 
doesn't show stop following. 

499
00:28:28,440 --> 00:28:31,640
Leave Access Focus. 
That's it. 

500
00:28:36,800 --> 00:28:39,360
Well, if anyone's watching and 
you know how to stop following 

501
00:28:39,360 --> 00:28:40,520
again. 
OK, so. 

502
00:28:40,520 --> 00:28:43,440
Otherwise, for now I can just 
turn mine off if you want. 

503
00:28:44,080 --> 00:28:47,440
So in this button file, I did 
this primary and I realized 

504
00:28:47,440 --> 00:28:51,320
afterwards that primary was not 
a good thing to call that I 

505
00:28:51,320 --> 00:28:55,440
should have just called it type.
And we can change this to type 

506
00:28:55,960 --> 00:29:06,280
TYPE and yeah, all this 
TypeScript stuff in here is 

507
00:29:06,280 --> 00:29:11,200
going to really get me. 
What did I do down here? 

508
00:29:11,200 --> 00:29:17,840
So down here button dash type. 
And we just need to do that, 

509
00:29:18,400 --> 00:29:20,880
right? 
So that's kind of the basic 

510
00:29:20,880 --> 00:29:25,320
version of it. 
And this no, this shouldn't be a

511
00:29:25,320 --> 00:29:31,960
boolean. 
This should be a pipes and we'll

512
00:29:33,080 --> 00:29:39,720
create the type type types equal
to primary. 

513
00:29:40,240 --> 00:29:44,400
What are all the types that we 
want to use secondary? 

514
00:29:47,320 --> 00:29:50,240
Probably at least those for now.
We could probably do more later 

515
00:29:50,240 --> 00:29:53,240
I guess. 
And so when you were saying how 

516
00:29:53,240 --> 00:29:55,520
would I do success and error the
other day? 

517
00:29:55,520 --> 00:29:58,240
So I mean, there's like, that's 
a good start. 

518
00:29:59,000 --> 00:30:01,440
So those are the ones. 
And then TypeScript will now 

519
00:30:01,440 --> 00:30:07,040
like only allow these four 
options and we'll show you an 

520
00:30:07,040 --> 00:30:09,600
error if you're not using that 
for one of these types, so. 

521
00:30:10,120 --> 00:30:12,560
The other great thing I was 
thinking about when we were 

522
00:30:12,560 --> 00:30:16,240
talking about this, it hit me. 
I, I watched a, a podcast years 

523
00:30:16,240 --> 00:30:18,960
ago on design systems and they 
actually put all of their 

524
00:30:18,960 --> 00:30:22,000
analytics into this button 
component, which I thought was 

525
00:30:22,000 --> 00:30:23,760
amazing. 
So we we can do that too. 

526
00:30:24,920 --> 00:30:27,000
Yeah. 
The other thing with this that 

527
00:30:27,000 --> 00:30:31,600
you can add is like now we can 
do like let size and we can give

528
00:30:31,600 --> 00:30:39,160
it the sizes and we'll create a 
type for sizes and those can be 

529
00:30:39,160 --> 00:30:44,840
large, medium. 
And I mean, you can decide if 

530
00:30:44,840 --> 00:30:49,240
you want to not use one of 
these, you can only use large 

531
00:30:49,240 --> 00:30:53,320
and small, maybe to show this 
off. 

532
00:30:53,320 --> 00:30:55,800
And then down here, you just add
the button. 

533
00:30:56,360 --> 00:31:02,360
Oh my goodness, button dash, 
dollar sign, curly brace size. 

534
00:31:04,680 --> 00:31:09,920
And I've got to export it. 
You can put export in front of 

535
00:31:09,920 --> 00:31:11,840
each of these, but I feel like 
it's repetitive. 

536
00:31:11,840 --> 00:31:14,840
So I like to do this little 
export object instead. 

537
00:31:15,360 --> 00:31:17,680
But that's kind of the gist of 
this. 

538
00:31:17,680 --> 00:31:20,240
I mean, we can do the rest of it
later if we want to move on. 

539
00:31:21,080 --> 00:31:23,680
Yeah, that's pretty cool. 
So now in order to use that 

540
00:31:23,680 --> 00:31:26,600
button, we actually call the 
buttons felt component. 

541
00:31:26,640 --> 00:31:29,480
We could replace the one on our 
main page, right? 

542
00:31:30,000 --> 00:31:34,800
Yeah, so we can save that file 
and go over to our main page in 

543
00:31:35,080 --> 00:31:38,080
the home route. 
You know what would be nice as 

544
00:31:38,080 --> 00:31:39,720
well? 
I'm sorry, I'm just thinking out

545
00:31:40,000 --> 00:31:41,880
loud. 
What would be nice as well is to

546
00:31:41,880 --> 00:31:45,840
set up defaults in the button so
that if you just call the button

547
00:31:45,840 --> 00:31:49,440
as a component, it it kind of 
gets set up with us like a 

548
00:31:49,440 --> 00:31:53,280
preset, you know, like a primary
medium, for example, or 

549
00:31:53,280 --> 00:31:56,400
whatever. 
And then for every other case 

550
00:31:56,400 --> 00:31:59,280
where you want that to be 
different, then you would pass 

551
00:31:59,280 --> 00:32:03,560
in the type and the size just 
probably makes life easier. 

552
00:32:03,560 --> 00:32:05,680
That does. 
I don't know if primary is 

553
00:32:05,680 --> 00:32:08,200
empty, so right choices, but you
know something. 

554
00:32:09,560 --> 00:32:13,240
That is, that's a fine default 
for a button component I would 

555
00:32:13,240 --> 00:32:15,160
think. 
And then if. 

556
00:32:15,600 --> 00:32:16,720
You change it, you would change 
it. 

557
00:32:16,720 --> 00:32:19,720
That's a great call out. 
So on the home route, we can 

558
00:32:19,760 --> 00:32:24,880
update this to have a script tag
and we can import the button 

559
00:32:24,880 --> 00:32:28,120
component from and we're going 
to use that dollar sign Lib 

560
00:32:30,080 --> 00:32:32,840
slash components. 
I think you have to do the TS in

561
00:32:32,840 --> 00:32:34,760
the top to make it work. 
Yeah, I do. 

562
00:32:36,680 --> 00:32:39,320
Well, I'm not using. 
I'm not using TypeScript in 

563
00:32:39,320 --> 00:32:40,280
this. 
That's true. 

564
00:32:40,520 --> 00:32:44,560
I don't, but yeah. 
Will it take in your typings now

565
00:32:44,560 --> 00:32:47,440
though? 
If you like, when you use button

566
00:32:47,440 --> 00:32:51,480
like this, does it know there's 
medium and large without 

567
00:32:51,480 --> 00:32:54,280
TypeScript? 
Let's see. 

568
00:32:54,760 --> 00:32:59,360
Type equal to or No. 
Did I call it type or types? 

569
00:33:00,920 --> 00:33:04,040
Type, Type. 
OK, that works. 

570
00:33:04,040 --> 00:33:06,560
Type equal to. 
Let's do something random. 

571
00:33:09,960 --> 00:33:15,840
Yeah, because it's just the the 
JavaScript script tag. 

572
00:33:16,120 --> 00:33:18,760
Which ones are allowed though? 
Oh, that. 

573
00:33:18,920 --> 00:33:21,280
Sounds interesting. 
Well, let's see if we add Wang 

574
00:33:21,280 --> 00:33:27,160
equals TS. 
Oops, TS does that do same 

575
00:33:27,240 --> 00:33:30,360
thing? 
It's changing some things, but 

576
00:33:30,360 --> 00:33:32,520
it's still not importing the 
types correctly. 

577
00:33:33,080 --> 00:33:36,760
It should I I I remember that. 
That's interesting. 

578
00:33:37,200 --> 00:33:38,400
Yeah, we'll have to check that 
out. 

579
00:33:39,800 --> 00:33:44,400
That fixed that, but secondary. 
Oh, there, it's prompting it. 

580
00:33:44,400 --> 00:33:48,240
So now we're. 
If I do accent, which we didn't 

581
00:33:48,240 --> 00:33:51,280
add, it's gonna say that it's 
but it doesn't I guess. 

582
00:33:51,320 --> 00:33:56,320
It says type types though. 
Type of types, but it doesn't 

583
00:33:56,320 --> 00:33:59,120
bring in those types because 
we're not importing them into 

584
00:33:59,120 --> 00:34:00,680
this file. 
So is that? 

585
00:34:00,880 --> 00:34:05,040
If you take out the accent and 
just hit control space, does it?

586
00:34:05,640 --> 00:34:10,280
Does it give you those? 
Control space, give me 

587
00:34:10,280 --> 00:34:12,040
something. 
Doesn't look like it. 

588
00:34:12,600 --> 00:34:16,199
Oh yeah, there you go, in the 
very top secondary success. 

589
00:34:16,679 --> 00:34:17,719
Oh Yep. 
Cool. 

590
00:34:19,719 --> 00:34:23,320
So I mean we could do secondary 
there and whatever secondary is,

591
00:34:23,320 --> 00:34:25,440
it will change it right over. 
Here. 

592
00:34:26,360 --> 00:34:29,880
Zoom that in a little bit. 
Cool. 

593
00:34:30,120 --> 00:34:34,159
So I think we can use that 
everywhere we want a button now,

594
00:34:34,159 --> 00:34:38,080
yes, let me take it out of. 
I don't think we need it in our 

595
00:34:38,080 --> 00:34:40,159
other routes. 
While I'm doing that, do you 

596
00:34:40,159 --> 00:34:44,719
want to or I can look up either 
way, Daisy UI has a like a 

597
00:34:44,719 --> 00:34:47,960
navigation and a layout and we 
can start to talk about how we 

598
00:34:47,960 --> 00:34:49,840
can do a global layout in 
Svelkit. 

599
00:34:49,840 --> 00:34:54,639
Sure. 
It's it's very funny because 

600
00:34:54,679 --> 00:34:58,160
today was the first time I heard
about Daisy UI so. 

601
00:34:58,360 --> 00:34:59,640
Oh, really? 
And you just. 

602
00:34:59,640 --> 00:35:01,520
I know. 
Yeah, I kind of missed that. 

603
00:35:01,560 --> 00:35:04,200
I don't know. 
Scott Spence, who was in the 

604
00:35:04,200 --> 00:35:08,120
chat a little earlier, loves to 
use Daisy UI with spell Kit all 

605
00:35:08,120 --> 00:35:11,160
the time in his courses as well.
And I mean, I really like the 

606
00:35:11,160 --> 00:35:13,920
style of it and the ease of 
changing the themes and stuff. 

607
00:35:13,960 --> 00:35:17,080
Yeah, because I'm a big fan for 
Tailwind and I, I, you know, I 

608
00:35:17,080 --> 00:35:22,200
used it in many, many projects 
and it's just I, I don't know 

609
00:35:22,200 --> 00:35:25,080
how I never heard of. 
This is like a nice free open 

610
00:35:25,080 --> 00:35:29,120
source component library for 
that because Tailwind Labs is 

611
00:35:29,120 --> 00:35:32,520
paid of course, but. 
I mean, yeah, they also have 

612
00:35:32,520 --> 00:35:35,840
like a few free components I I 
think. 

613
00:35:36,680 --> 00:35:40,400
But you know, what I really 
liked about this is I don't know

614
00:35:40,400 --> 00:35:43,120
if you remember, you know, how 
the, I think it's still 

615
00:35:43,120 --> 00:35:46,120
structured the same way, but you
know, getbootstrap.com or 

616
00:35:46,120 --> 00:35:49,200
whatever, you know, the, the 
Bootstrap framework, Yep, they 

617
00:35:49,200 --> 00:35:52,240
used to have this navigation are
very similar to that, right? 

618
00:35:52,240 --> 00:35:55,480
So the alert, the badge, the 
car, the carousel and, and all 

619
00:35:55,480 --> 00:35:57,800
that. 
And this just uses that. 

620
00:35:57,800 --> 00:36:00,680
So, you know, if you come from 
that background, this will look 

621
00:36:00,680 --> 00:36:03,920
very familiar, which I kind of 
like, you know. 

622
00:36:04,120 --> 00:36:06,440
It does, yeah. 
Actually it really does, because

623
00:36:06,440 --> 00:36:09,880
it's the atomic classes that 
Bootstrap has. 

624
00:36:09,960 --> 00:36:11,920
It's very similar now. 
What did you say? 

625
00:36:11,960 --> 00:36:15,160
We were looking for Alex like 
layouts and configuration. 

626
00:36:15,360 --> 00:36:17,640
Yeah, I'd be. 
So they have specific like 

627
00:36:17,640 --> 00:36:20,880
colors and things that they 
represent, like primary you just

628
00:36:21,000 --> 00:36:23,800
saw. 
As far as layout goes though, I 

629
00:36:23,800 --> 00:36:28,840
think it would be cool to like 
we have our specific theme 

630
00:36:28,840 --> 00:36:31,400
colors now and stuff. 
It would be cool to put the 

631
00:36:31,400 --> 00:36:35,560
layout configuration at the top 
of Svelte Kit to show people how

632
00:36:35,560 --> 00:36:38,920
to use layouts. 
OK. 

633
00:36:39,840 --> 00:36:41,000
Does that make sense? 
I hope. 

634
00:36:43,080 --> 00:36:46,240
Sort of. 
So you want to configure it to 

635
00:36:46,240 --> 00:36:49,000
use like our colors? 
Is that what you're talking 

636
00:36:49,000 --> 00:36:51,280
about? 
Well, we can we can worry about 

637
00:36:51,280 --> 00:36:53,600
the colors in a minute. 
Let's let's just talk about how 

638
00:36:53,600 --> 00:36:58,200
like in spelt kit, you can give 
a layout for all of the pages 

639
00:36:58,200 --> 00:36:59,200
and how that's done. 
Oh. 

640
00:36:59,200 --> 00:37:02,280
OK, OK. 
When you create the layout spelt

641
00:37:02,360 --> 00:37:05,240
file. 
Yeah, so we did do that already.

642
00:37:05,240 --> 00:37:08,320
When we did our spelt add 
command, it created this and 

643
00:37:08,320 --> 00:37:12,120
imported this app dot C CSS file
which is just our tailwind 

644
00:37:12,720 --> 00:37:17,920
imports here. 
So everything in this file is 

645
00:37:17,920 --> 00:37:20,880
just the tailwind base 
components and utilities that 

646
00:37:20,880 --> 00:37:23,040
get imported. 
And then that gets imported into

647
00:37:23,040 --> 00:37:26,720
this layout dot spout file. 
And to have that show up on the 

648
00:37:26,720 --> 00:37:28,280
screen, you have to have this 
slot. 

649
00:37:28,280 --> 00:37:31,040
So if we commented that slot 
out, nothing would show. 

650
00:37:32,160 --> 00:37:35,200
And so this slot is actually 
where all of the children live 

651
00:37:35,200 --> 00:37:37,800
at. 
So what I like to do is bring 

652
00:37:37,800 --> 00:37:42,400
all of my things into here and 
do like a main wrapper around 

653
00:37:42,400 --> 00:37:45,920
the slot. 
And so I would do a header 

654
00:37:45,920 --> 00:37:49,200
component here that we haven't 
created, but like a header here 

655
00:37:49,600 --> 00:37:54,440
and then create a header 
component header dot spelt. 

656
00:37:56,080 --> 00:38:01,720
And we can just do a quick 
actually let me do NAV a fly 

657
00:38:03,040 --> 00:38:05,600
times. 
How many routes do we have? 

658
00:38:05,600 --> 00:38:08,600
Podcast just two. 
For now, yeah. 

659
00:38:09,320 --> 00:38:14,960
Oh, Emma, it's not working. 
You notice that Code spaces 

660
00:38:14,960 --> 00:38:17,440
isn't working in here, or 
Copilot's not working in here 

661
00:38:17,480 --> 00:38:20,160
either. 
You probably because you're in 

662
00:38:20,160 --> 00:38:23,160
mine and I don't have copilot, I
think I don't know. 

663
00:38:23,520 --> 00:38:28,200
Maybe. 
Hey, Hey, Trev, we need a home 

664
00:38:28,200 --> 00:38:34,320
route home. 
We need a I'll do. 

665
00:38:34,760 --> 00:38:36,200
I'm not even going to do the 
list items. 

666
00:38:36,200 --> 00:38:37,320
I'm just going to leave it like 
this. 

667
00:38:37,320 --> 00:38:43,280
And then we need a podcast. 
Plural route podcast. 

668
00:38:43,280 --> 00:38:48,360
And I I think Daisy has the NAV 
configuration right. 

669
00:38:48,360 --> 00:38:50,080
What do? 
You mean? 

670
00:38:51,560 --> 00:38:55,720
Go check. 
Oh, so we could do a NAV? 

671
00:38:56,600 --> 00:39:01,480
Yeah, I saw that earlier today 
when I was reviewing what Daisy 

672
00:39:01,480 --> 00:39:04,560
UI can do. 
Slash header dot spelt. 

673
00:39:05,840 --> 00:39:08,240
Yeah, I think it's just navbar 
at that point. 

674
00:39:08,720 --> 00:39:11,640
So the way that like you 
described to me before the 

675
00:39:11,640 --> 00:39:16,000
customization of those, would 
you do a navbar spelt component 

676
00:39:16,000 --> 00:39:19,200
again for the like 
composability? 

677
00:39:20,400 --> 00:39:24,080
I probably would eventually when
we start getting more links and 

678
00:39:24,080 --> 00:39:26,800
things in here, pull this out. 
Or if we put other things in our

679
00:39:26,800 --> 00:39:30,680
header like we have on coding 
cat where we have the avatar and

680
00:39:30,680 --> 00:39:33,040
the sign in and all that. 
I would break all that out to do

681
00:39:33,040 --> 00:39:36,760
a NAV component. 
Now with with svet is there any 

682
00:39:36,760 --> 00:39:39,800
pre loading that occurs like in 
in next? 

683
00:39:40,000 --> 00:39:43,520
So like it sees a link and it 
automatically loads that J sign 

684
00:39:43,520 --> 00:39:46,480
in the background. 
There is, so yeah, we would want

685
00:39:46,480 --> 00:39:50,720
to do the prefet I think is what
it's called. 

686
00:39:51,200 --> 00:39:54,120
So now we have our thing up 
here, but I need to find out 

687
00:39:54,120 --> 00:39:57,680
what was the Daisy UI now? 
It's just NAV bar. 

688
00:39:58,640 --> 00:40:00,480
So class NAV bar. 
Yep. 

689
00:40:01,840 --> 00:40:04,240
Hyphen bar. 
No all one word. 

690
00:40:06,520 --> 00:40:08,040
Yep, you got it. 
OK. 

691
00:40:09,240 --> 00:40:12,480
I just gave it some margin and 
took away all the padding. 

692
00:40:12,480 --> 00:40:14,440
Why or gap? 
Why did it do that? 

693
00:40:19,520 --> 00:40:22,760
That's interesting. 
Looks like they have some like 

694
00:40:22,760 --> 00:40:26,000
buttons for their NAV. 
Let's see what else they. 

695
00:40:26,040 --> 00:40:29,920
Have NAV or let's see. 
Oh, and then they have a menu, 

696
00:40:29,920 --> 00:40:32,240
so there's a menu option. 
There's all kinds of stuff in. 

697
00:40:33,200 --> 00:40:33,960
Here. 
Interesting. 

698
00:40:35,120 --> 00:40:39,200
So you can do background 
neutral, background primary. 

699
00:40:40,000 --> 00:40:43,560
For now we might want to just do
primary to see like the color a 

700
00:40:43,560 --> 00:40:45,440
little more. 
So what do you do Big? 

701
00:40:46,000 --> 00:40:48,400
BG dash primary. 
Yep. 

702
00:40:52,040 --> 00:40:55,600
Interesting. 
Yep, that color and those can be

703
00:40:55,600 --> 00:40:59,000
like buttons instead, so you can
I. 

704
00:40:59,280 --> 00:41:03,280
Think it's not color, it's text.
So if you put class on those a 

705
00:41:03,280 --> 00:41:10,200
tags, they can be class button 
and then do Well, I guess that's

706
00:41:10,200 --> 00:41:13,440
see that's the tricky part. 
Like now you would you'd have to

707
00:41:13,440 --> 00:41:17,480
figure out how far you go with 
using your button tags and 

708
00:41:17,480 --> 00:41:20,360
stuff, so. 
So you want these to be buttons 

709
00:41:20,360 --> 00:41:22,640
inside the? 
That's kind of weird, isn't it? 

710
00:41:22,760 --> 00:41:25,400
Well, they're just classes as 
buttons. 

711
00:41:25,400 --> 00:41:29,080
They're still a tags, so. 
I I know, but I mean you want 

712
00:41:29,080 --> 00:41:31,400
those styled as buttons in the 
NAV bar. 

713
00:41:32,960 --> 00:41:35,000
I mean, that's the way they 
suggested. 

714
00:41:35,000 --> 00:41:37,720
I don't know if that's what we. 
Want they suggested? 

715
00:41:38,400 --> 00:41:40,720
Well, that's that's the example 
they have so. 

716
00:41:41,320 --> 00:41:43,640
Oh. 
They have a couple other 

717
00:41:43,640 --> 00:41:45,840
examples. 
Where do you see the examples? 

718
00:41:45,840 --> 00:41:48,160
Because I'm on their NAV bar 
page and I don't see that just. 

719
00:41:48,400 --> 00:41:50,520
Open up the HTML inside of 
those. 

720
00:41:51,360 --> 00:41:53,320
So if you Scroll down to one you
like, just click. 

721
00:41:53,320 --> 00:41:55,480
Oh, I see. 
When you hover over it, it's got

722
00:41:55,480 --> 00:42:00,200
it's just the accent, though, So
they they match the button color

723
00:42:00,440 --> 00:42:04,120
with the background of this. 
And so you can have that hover 

724
00:42:04,440 --> 00:42:08,840
style that I wouldn't do it that
way, but OK, so spelt kit 

725
00:42:08,840 --> 00:42:11,040
prefetch is how we do the next 
thing. 

726
00:42:11,040 --> 00:42:18,840
And I'm going to felt. 
Oh, that didn't type felt kit 

727
00:42:18,840 --> 00:42:20,800
and prefetch is what we want on 
these. 

728
00:42:21,240 --> 00:42:23,600
I thought I selected both of 
those spots, but I didn't. 

729
00:42:26,040 --> 00:42:27,600
And that's how you grab those 
links. 

730
00:42:27,600 --> 00:42:31,440
So when you hover over these now
it will call for that in the and

731
00:42:31,440 --> 00:42:34,000
I put these backwards. 
Oops. 

732
00:42:36,320 --> 00:42:41,080
When you get a minute I'm I'm 
curious about how slot works. 

733
00:42:41,880 --> 00:42:44,440
OK. 
What are you curious about? 

734
00:42:44,840 --> 00:42:49,880
So like when I write Angular, we
can do multiple router kind of 

735
00:42:49,880 --> 00:42:52,560
inputs. 
So you could do like a in the 

736
00:42:52,560 --> 00:42:55,320
middle if it's this route, 
display this. 

737
00:42:55,320 --> 00:42:58,000
If it's that route, display 
something different in the 

738
00:42:58,000 --> 00:43:00,520
footer. 
So like a marketing page, you 

739
00:43:00,520 --> 00:43:02,800
might take the footer away and 
the header away and it's just 

740
00:43:02,800 --> 00:43:07,200
one solid page. 
Whereas like a normal app page 

741
00:43:07,200 --> 00:43:10,400
you would have all that stuff. 
Is that something that slots can

742
00:43:10,400 --> 00:43:13,160
handle or? 
That sounds more like a layout 

743
00:43:13,160 --> 00:43:15,160
reset. 
So you would have one layout 

744
00:43:15,160 --> 00:43:18,360
that has like the header and 
footer on it, and then you would

745
00:43:18,360 --> 00:43:21,160
have a reset layout that you 
would use for those routes that 

746
00:43:21,160 --> 00:43:23,960
you'd wanted a different layout.
Slots work. 

747
00:43:24,840 --> 00:43:28,160
Just think of it as that's where
all the children go for that 

748
00:43:28,160 --> 00:43:31,800
layout. 
So everything, every route right

749
00:43:31,800 --> 00:43:35,560
now that we have, even podcast 
routes are going to go into the 

750
00:43:35,560 --> 00:43:38,040
slot in this layout component 
right here. 

751
00:43:38,480 --> 00:43:41,760
You can also have named slots, 
so you can give them a name and 

752
00:43:41,760 --> 00:43:45,880
then in the component you want 
to use that slot or put that 

753
00:43:45,880 --> 00:43:49,080
content in you just put type 
equal to the name of the slot. 

754
00:43:49,440 --> 00:43:52,520
That would that would probably 
get me closer in my mind because

755
00:43:52,520 --> 00:43:55,400
you could do like a instead of 
doing a footer component 

756
00:43:55,400 --> 00:43:58,640
directly on this layout page, 
you could do a slot called 

757
00:43:58,640 --> 00:44:00,560
footer and like pass that in 
then. 

758
00:44:01,160 --> 00:44:03,560
Yeah, that's cool. 
I think you could do it like 

759
00:44:03,560 --> 00:44:04,000
that. 
Yep. 

760
00:44:04,600 --> 00:44:05,480
Interesting. 
Sweet. 

761
00:44:06,000 --> 00:44:07,760
OK so I got the NAV bar and 
stuff. 

762
00:44:07,760 --> 00:44:11,720
Do you want to take back over 
and start doing some of the yeah

763
00:44:11,800 --> 00:44:13,480
configurations? 
Let's try it out. 

764
00:44:14,480 --> 00:44:18,280
I love that the Daisy UI primary
theme like kind of matches my VS

765
00:44:18,280 --> 00:44:21,560
Code theme. 
It does. 

766
00:44:22,640 --> 00:44:24,600
Doesn't. 
It yeah, yeah, that really flows

767
00:44:24,640 --> 00:44:26,280
together. 
It's funny, on my one screen it 

768
00:44:26,280 --> 00:44:28,560
looks very. 
Blue and they once said prefetch

769
00:44:28,560 --> 00:44:30,360
is so cool. 
Prefetch is very cool. 

770
00:44:32,160 --> 00:44:35,000
Yeah, that is awesome. 
I'm kind of curious, can we show

771
00:44:35,000 --> 00:44:38,520
that off in local host what that
looks like if I if I just go 

772
00:44:38,520 --> 00:44:43,360
back home and. 
You can and you can see call it 

773
00:44:43,360 --> 00:44:45,920
in the network panel, but you're
not sharing, so I'm going to. 

774
00:44:46,000 --> 00:44:49,600
Have to add me. 
There we go, and we'll probably 

775
00:44:49,600 --> 00:44:52,520
need to get either a different 
view or just hide our faces. 

776
00:44:52,920 --> 00:45:01,480
This right runtime paths maybe? 
Yeah, I don't look in this very 

777
00:45:01,480 --> 00:45:04,720
often so I don't know where it's
at, but usually when you hover 

778
00:45:04,720 --> 00:45:07,040
over it you can see network 
requests being made. 

779
00:45:07,040 --> 00:45:09,800
So if you clear your cache and 
stop and restart it. 

780
00:45:12,680 --> 00:45:15,720
I would also track the and this 
is. 

781
00:45:15,720 --> 00:45:17,760
This is how I have that set up 
like. 

782
00:45:17,840 --> 00:45:20,440
Oh it's on hover. 
It pre caches, not. 

783
00:45:20,440 --> 00:45:24,720
On oh, it's on hover. 
Let's do this. 

784
00:45:25,440 --> 00:45:26,600
Did it do it? 
Yeah, there. 

785
00:45:26,600 --> 00:45:31,000
You go, yeah, that's cool. 
I like that because it doesn't 

786
00:45:31,000 --> 00:45:34,160
have to like load it. 
Can you do more aggressive style

787
00:45:34,160 --> 00:45:37,000
where if it's like showing or 
something it'll load it? 

788
00:45:37,520 --> 00:45:41,600
I don't know, maybe. 
Just random questions from Alex,

789
00:45:41,600 --> 00:45:44,000
you know. 
Well, I'm going to get the docs 

790
00:45:44,000 --> 00:45:47,080
up because there's, like I said,
a lot that I still need to learn

791
00:45:47,080 --> 00:45:50,200
with felt kit too. 
There's more advanced stuff so 

792
00:45:50,200 --> 00:45:55,720
that would be nice. 
All right, so it sounds like I'm

793
00:45:55,720 --> 00:45:57,400
hoping that you were still 
updating. 

794
00:45:57,440 --> 00:45:58,760
Yes. 
OK, sweet. 

795
00:46:01,200 --> 00:46:05,720
So Brittany added this layout. 
We have this new header file or 

796
00:46:05,720 --> 00:46:10,440
components up here and we just 
imported that just like we would

797
00:46:10,440 --> 00:46:14,080
with react. 
So still mentally I'm I'm 

798
00:46:14,080 --> 00:46:17,560
together today, even though I 
can barely think what this sign 

799
00:46:17,560 --> 00:46:19,680
is called. 
All right. 

800
00:46:19,680 --> 00:46:22,880
So the next part that we are on,
we're going to. 

801
00:46:22,880 --> 00:46:25,200
Just reading in the docs that 
you can programmatically invoke 

802
00:46:25,200 --> 00:46:26,960
prefetch. 
Nice. 

803
00:46:27,000 --> 00:46:28,440
That's awesome. 
I love that. 

804
00:46:28,760 --> 00:46:32,840
But otherwise it's on Hova and 
on Touch on mobile. 

805
00:46:33,360 --> 00:46:36,240
Yeah, I was going to say I love 
the fact like on hover for 

806
00:46:36,240 --> 00:46:39,360
mobile you could load it. 
Otherwise on desktop I'd preload

807
00:46:39,360 --> 00:46:42,040
it like that's that's kind of 
where my mental model will go 

808
00:46:42,120 --> 00:46:44,120
just network bandwidth wise. 
Yeah. 

809
00:46:45,960 --> 00:46:49,760
So yeah, it brought all this in.
So these are our posts and what 

810
00:46:49,760 --> 00:46:52,400
we're going to work on next. 
We, we could work on this 

811
00:46:52,400 --> 00:46:55,920
because it's kind of a mess and 
we could show pagination, but 

812
00:46:55,920 --> 00:46:57,800
maybe we'll get there when when 
we need to. 

813
00:46:59,160 --> 00:47:03,160
But the the next page we want to
show is this one, which is the 

814
00:47:03,160 --> 00:47:05,960
podcast itself, which should 
still throw in air. 

815
00:47:08,160 --> 00:47:13,160
So podcast fix that. 
So what we were doing last time 

816
00:47:13,160 --> 00:47:16,080
was getting this perfect stream 
page HTML. 

817
00:47:16,080 --> 00:47:19,200
And that's kind of where things 
went awry because we're using 

818
00:47:19,200 --> 00:47:23,240
this notion page to HTML, which 
they very clearly call out needs

819
00:47:23,240 --> 00:47:25,200
to be a public page. 
So that was my bad. 

820
00:47:29,520 --> 00:47:33,160
Let's see. 
So get perfect picks at zero, 

821
00:47:33,160 --> 00:47:36,240
That's our page. 
So if we just send back that 

822
00:47:36,240 --> 00:47:42,000
page, let's say. 
I just froze up so hopefully I 

823
00:47:42,000 --> 00:47:45,120
don't lose Internet connection. 
Be fantastic. 

824
00:47:46,560 --> 00:47:51,280
I hope you're good. 
All right, so let's go back over

825
00:47:51,280 --> 00:47:53,160
here. 
Now we're actually sending the 

826
00:47:53,160 --> 00:47:58,560
entire post back. 
And when we come into here, this

827
00:47:58,560 --> 00:48:01,440
should be more representative, 
unused. 

828
00:48:01,600 --> 00:48:07,280
OK, cool. 
So I think now we should be able

829
00:48:07,280 --> 00:48:10,920
to do this, right? 
Console dot log post. 

830
00:48:13,880 --> 00:48:17,000
And see what we get. 
But was it? 

831
00:48:17,760 --> 00:48:20,760
Did you fix the public issue? 
Oh, you have an object there 

832
00:48:20,760 --> 00:48:21,400
now? 
OK. 

833
00:48:21,520 --> 00:48:24,560
Good. 
The cool part now, because the 

834
00:48:24,560 --> 00:48:28,120
way that notion works, for those
who haven't used it, there's 

835
00:48:28,240 --> 00:48:32,040
everything is a page. 
It starts with a database and 

836
00:48:32,040 --> 00:48:34,920
then a page. 
So our streams are all in a 

837
00:48:34,920 --> 00:48:38,080
database. 
Every stream is a page. 

838
00:48:38,520 --> 00:48:41,800
In order to get the blocks, you 
have to go into the page to get 

839
00:48:41,800 --> 00:48:44,480
those blocks. 
So that's kind of the the next 

840
00:48:44,480 --> 00:48:47,240
step of where we are right now. 
And again, like, I don't think 

841
00:48:47,240 --> 00:48:49,440
anybody can see it 'cause it was
under our faces. 

842
00:48:49,440 --> 00:48:50,880
So I hit us. 
OK. 

843
00:48:51,120 --> 00:48:54,920
Sweet. 
So right now this is all we're 

844
00:48:54,920 --> 00:48:58,040
bringing back about our current 
object. 

845
00:48:58,040 --> 00:49:02,680
So we have a cover photo. 
So we could do this in Notion. 

846
00:49:03,240 --> 00:49:07,720
This is our it's interesting. 
It has the V usually that 

847
00:49:07,720 --> 00:49:12,680
doesn't occur, but whatever. 
So this is this is actually the 

848
00:49:12,680 --> 00:49:16,960
card that we could create. 
So let's try doing that first. 

849
00:49:20,080 --> 00:49:23,920
So in Daisy UI we have card I 
believe. 

850
00:49:28,280 --> 00:49:31,040
You even changed the theme of 
your Daisy UI docs. 

851
00:49:31,440 --> 00:49:33,160
Oh, I just whatever came up, I 
don't know. 

852
00:49:33,160 --> 00:49:37,400
Yeah, Oh no, not a light theme. 
My eyes. 

853
00:49:37,640 --> 00:49:41,240
Oh, I like synthwave you. 
Know me poor to wash his eyes, 

854
00:49:41,480 --> 00:49:43,000
he's like heaven. 
I was like, oh. 

855
00:49:43,640 --> 00:49:45,120
That was that was to get him to 
wake up and. 

856
00:49:45,760 --> 00:49:50,120
He's like, oh. 
Wow, so this is actually a 

857
00:49:50,120 --> 00:49:52,520
pretty cool card right here. 
Yeah, I like that. 

858
00:49:54,440 --> 00:49:57,840
So in here we should be able to 
just do that and that should 

859
00:49:57,840 --> 00:50:00,400
actually just show up now. 
Nope, we're going to create a 

860
00:50:00,400 --> 00:50:01,680
Card component. 
OK. 

861
00:50:05,040 --> 00:50:08,360
OK, so Brittany says we're going
to create a card component. 

862
00:50:08,960 --> 00:50:12,800
So we are going to do in our 
components, we're going to do 

863
00:50:12,800 --> 00:50:17,040
new card, just card. 
Card dot spell. 

864
00:50:17,520 --> 00:50:19,720
OK, I didn't know if you want to
call it something else. 

865
00:50:20,360 --> 00:50:26,720
Oh no, card's fine. 
It sounds like we need some 

866
00:50:26,720 --> 00:50:32,040
inputs coming in so export right
for import. 

867
00:50:32,800 --> 00:50:35,480
Is that correct export? 
Export for props. 

868
00:50:35,480 --> 00:50:41,040
So in react like to make a prop 
like your react terminology 

869
00:50:41,040 --> 00:50:44,040
would be to use export. 
OK. 

870
00:50:44,840 --> 00:50:47,800
And then I liked your cool like 
how you just export everything. 

871
00:50:47,800 --> 00:50:52,800
So if we do let, I don't know 
what we're going to change in 

872
00:50:52,800 --> 00:50:55,240
this thing yet. 
They're so dynamic, maybe like 

873
00:50:55,240 --> 00:51:02,480
width equal 96? 
Yeah. 

874
00:51:02,480 --> 00:51:06,040
And I I guess the it's going to 
be a number. 

875
00:51:10,240 --> 00:51:12,720
And then this guy will become 
that. 

876
00:51:20,150 --> 00:51:23,070
Oh my goodness. 
Yep, and like you could change 

877
00:51:23,070 --> 00:51:25,950
the shadow so you could have 
like a hover shadow I. 

878
00:51:29,110 --> 00:51:37,110
Do shadow. 
I think you wanted to put W dash

879
00:51:37,110 --> 00:51:44,910
with not 96 in line 7 W. 
Not W Dash. 

880
00:51:46,280 --> 00:51:49,120
Yeah. 
Because you you did 96. 

881
00:51:49,600 --> 00:51:52,160
Oh, you want width there instead
of 96? 

882
00:51:52,160 --> 00:51:55,120
You want it to be the variable 
inside of the curly braces. 

883
00:51:57,160 --> 00:52:02,120
Oh, that a fun one. 
Shadow, Shadow. 

884
00:52:02,960 --> 00:52:06,920
Yep. 
And then to be good Stewarts of 

885
00:52:06,920 --> 00:52:10,360
the TypeScript. 
Put your Lang in there. 

886
00:52:11,360 --> 00:52:15,000
That is one thing that is a 
little annoying about Spout Kit 

887
00:52:15,000 --> 00:52:18,120
to be honest, is that you have 
to explicitly tell it like what 

888
00:52:18,120 --> 00:52:21,400
language you're using in each 
script, or if you're using SAS 

889
00:52:21,400 --> 00:52:23,280
in the style tag, you have to do
that too. 

890
00:52:24,040 --> 00:52:27,360
It's can you do like snippets? 
Is there like a package where 

891
00:52:27,440 --> 00:52:30,920
you just always? 
Oh yeah, you can extensions in 

892
00:52:30,920 --> 00:52:34,520
VS Code that you can create your
own snippets for whatever you 

893
00:52:34,520 --> 00:52:35,920
want. 
So that would work. 

894
00:52:35,960 --> 00:52:37,520
What were you saying, Tamash? 
Sorry. 

895
00:52:38,080 --> 00:52:40,880
No I just I was just wondering 
if this is going to work because

896
00:52:40,880 --> 00:52:45,560
you sent 96 to be a string so 
wouldn't then the clause BW dash

897
00:52:46,960 --> 00:52:49,560
single quote 9/6? 
So it needs I think it. 

898
00:52:49,640 --> 00:52:53,080
Needs to be a number. 
Yeah, I think it evaluates it 

899
00:52:53,080 --> 00:52:56,920
though. 
That's what we can. 

900
00:52:56,920 --> 00:52:59,640
We can try it either way though,
totally fine with me I. 

901
00:52:59,640 --> 00:53:02,480
Think it does make sense to keep
it either a string or a number. 

902
00:53:03,120 --> 00:53:05,640
I do think it's going to be a 
string at the end of the day and

903
00:53:05,640 --> 00:53:12,640
then then the pipe is going to 
be pipe with colon or equal 

904
00:53:14,040 --> 00:53:15,600
still ears. 
There we go, equal. 

905
00:53:19,720 --> 00:53:21,000
Yeah. 
And I think it's convention to 

906
00:53:21,000 --> 00:53:25,880
capitalize your type, right? 
I'm very new to TypeScript so 

907
00:53:26,000 --> 00:53:27,880
like I don't know what other 
widths we would use. 

908
00:53:28,000 --> 00:53:28,880
Do we know what the? 
Size. 

909
00:53:28,880 --> 00:53:32,720
There's 7264. 
Oh, I thought you're going to 

910
00:53:32,720 --> 00:53:34,320
say there's 72 of them. 
Like no. 

911
00:53:34,960 --> 00:53:37,360
There are a lot of them, but 
they're they're like base. 

912
00:53:38,360 --> 00:53:42,960
You can also do like 16 one 
third and full and screen. 

913
00:53:43,040 --> 00:53:47,200
And there any way we can import 
Daisy UIS types just do it that 

914
00:53:47,200 --> 00:53:49,120
way. 
That's got to be a thing, right?

915
00:53:50,120 --> 00:53:52,000
I don't know. 
So if you do app. 

916
00:53:52,120 --> 00:53:54,600
Types. 
Worked. 

917
00:53:54,600 --> 00:53:56,640
Let's do that. 
From. 

918
00:53:56,640 --> 00:53:59,560
Oh, because you use the package.
Maybe they just have types in 

919
00:53:59,560 --> 00:54:01,800
the package. 
That would be nice. 

920
00:54:02,480 --> 00:54:05,360
Oh, the one said he made a 
snippet for it. 

921
00:54:05,360 --> 00:54:10,040
Hey, what for? 
For adding the lane TypeScript. 

922
00:54:10,680 --> 00:54:12,680
And made a snippet where it is 
said snippet. 

923
00:54:13,280 --> 00:54:16,560
Well, it's probably in his like 
extension that he made for 

924
00:54:16,600 --> 00:54:20,120
himself. 
But yeah, but like I said, 

925
00:54:20,120 --> 00:54:23,920
there's snippet extensions that 
you can use and then create your

926
00:54:23,920 --> 00:54:25,720
own for whatever you need it 
for. 

927
00:54:27,200 --> 00:54:30,040
So you can maybe make ATS 
snippet that would just add the 

928
00:54:30,040 --> 00:54:34,640
Lang equal to TS. 
Let's see if this actually 

929
00:54:34,640 --> 00:54:36,200
works. 
Probably not. 

930
00:54:36,400 --> 00:54:40,680
Nope, that must not be a typed 
thing. 

931
00:54:41,640 --> 00:54:43,360
Nope. 
That's a bummer. 

932
00:54:43,360 --> 00:54:44,640
I guess they don't have them 
listed. 

933
00:54:44,880 --> 00:54:47,600
Oh well, maybe we can put that 
in as APR. 

934
00:54:47,960 --> 00:54:50,720
I was just going to say that I 
think it's open source. 

935
00:54:50,720 --> 00:54:54,680
You can do APR add types that it
would. 

936
00:54:54,680 --> 00:54:57,960
It would be a lot, and you could
probably pull these types out 

937
00:54:57,960 --> 00:55:01,640
into like a type folder too and 
extract all this code from your 

938
00:55:01,640 --> 00:55:03,240
files. 
Yeah, I was going to ask you 

939
00:55:03,280 --> 00:55:04,480
that. 
Maybe we'll do that. 

940
00:55:05,160 --> 00:55:07,280
I think I started. 
Yeah, I have all these other 

941
00:55:07,280 --> 00:55:09,440
ones for other stuff. 
Yeah, so. 

942
00:55:11,960 --> 00:55:14,560
Maybe we'll do a model called 
Daisy UI I'm. 

943
00:55:14,960 --> 00:55:21,040
Going to do MV. 
Oh God, what is it MVC spelt? 

944
00:55:21,760 --> 00:55:26,720
MVC spelt. 
Model view controller spelt and.

945
00:55:27,800 --> 00:55:32,200
Going back to the YEAH phase of 
2002. 

946
00:55:35,680 --> 00:55:39,800
That's still like really popular
in like the node back in world. 

947
00:55:42,040 --> 00:55:45,640
I used it with. 
I don't know if you if you ever 

948
00:55:45,760 --> 00:55:49,920
heard of Cake PHP. 
We didn't change it to at yet. 

949
00:55:49,920 --> 00:55:53,400
If you want to do that, we can. 
We can use my Making Pathing 

950
00:55:53,400 --> 00:55:56,720
Easier in Cell Kit article. 
Oh should we? 

951
00:55:56,920 --> 00:55:59,360
Should we leave it in Lib to 
stay? 

952
00:55:59,360 --> 00:56:02,600
It can be, it can be in Lib, but
you're using the at symbol and 

953
00:56:02,600 --> 00:56:05,160
right now the default is what 
we're using, which is the dollar

954
00:56:05,160 --> 00:56:07,760
sign. 
OK, let me let me move that up 

955
00:56:07,760 --> 00:56:13,200
then into Lib right like. 
That yeah you can. 

956
00:56:13,360 --> 00:56:15,960
I like that convention of 
keeping everything in the Lib 

957
00:56:15,960 --> 00:56:17,720
folder. 
Yeah, let's do that. 

958
00:56:18,120 --> 00:56:21,680
And then it would just be dollar
sign Lib slash models instead of

959
00:56:21,680 --> 00:56:24,120
at. 
But I do prefer at. 

960
00:56:24,400 --> 00:56:29,080
I would change it but you said 
you wanted to keep it as 

961
00:56:29,120 --> 00:56:30,600
standard. 
Just felt kit. 

962
00:56:33,080 --> 00:56:37,480
If we're going to do an advanced
felt kit course, no pressure, we

963
00:56:37,720 --> 00:56:42,600
probably want to try. 
Oh, is it not default? 

964
00:56:45,480 --> 00:56:49,600
Wits is declared, but its value 
is never read because you're not

965
00:56:50,200 --> 00:56:53,160
using. 
Import, import, import and. 

966
00:56:53,200 --> 00:56:55,760
Export. 
You could delete line 3 then, 

967
00:56:55,760 --> 00:56:56,320
right? 
Because. 

968
00:56:56,320 --> 00:56:59,360
You yeah, you do need to delete 
line 3 because you're using it 

969
00:56:59,360 --> 00:57:01,120
twice. 
That's probably the issue. 

970
00:57:02,400 --> 00:57:07,800
But no, it's this import is 
never used as a value and must 

971
00:57:08,240 --> 00:57:13,880
use import type. 
Oh, I wonder if types are 

972
00:57:13,880 --> 00:57:16,080
different. 
I've never used TypeScript. 

973
00:57:16,320 --> 00:57:20,560
I swear we're using that in 
other places, but oh, those are 

974
00:57:20,560 --> 00:57:23,000
in the TS files, not svelte 
files though. 

975
00:57:23,560 --> 00:57:28,640
Like here. 
We're using types, we're using 

976
00:57:28,640 --> 00:57:30,200
post. 
I know that somewhere. 

977
00:57:31,120 --> 00:57:34,560
Interesting. 
Well, OK, that's, that's 

978
00:57:34,560 --> 00:57:35,800
something new. 
That's good. 

979
00:57:35,880 --> 00:57:37,560
That is, but it looks like it's.
Working. 

980
00:57:37,560 --> 00:57:42,600
Oh, we did do import type there.
OK, all right, back to our card.

981
00:57:43,040 --> 00:57:48,520
Let's see right girl? 
We can also do export by I mean 

982
00:57:51,240 --> 00:58:01,480
sizes I guess Bulls XL. 
Oh Yep, you skipped. 

983
00:58:02,400 --> 00:58:04,000
Are are those the two you want 
to use? 

984
00:58:04,000 --> 00:58:05,400
Is that what you're? 
I don't know. 

985
00:58:05,400 --> 00:58:07,960
I don't know what we're doing 
yet, but OK, I just figured I'd 

986
00:58:07,960 --> 00:58:09,600
put those in. 
Yeah. 

987
00:58:12,280 --> 00:58:15,040
And we're also using that in 
that button component. 

988
00:58:15,040 --> 00:58:17,680
So we would probably want to 
standardize those before we 

989
00:58:17,680 --> 00:58:21,480
forget. 
You could probably have that 

990
00:58:21,840 --> 00:58:25,920
again, all separates, right the 
the. 

991
00:58:26,040 --> 00:58:30,680
So if you have things like the 
sizes, which then you reuse in a

992
00:58:30,760 --> 00:58:34,600
button and then a card, then you
can just extract those into yet 

993
00:58:34,600 --> 00:58:37,920
another file. 
Now you can have this, you know 

994
00:58:39,560 --> 00:58:43,760
nice structure of your of your 
types. 

995
00:58:44,600 --> 00:58:46,800
We're going to try. 
We'll see how far we get. 

996
00:58:48,680 --> 00:58:53,160
I was like, this could actually 
be like your own subset of the 

997
00:58:53,160 --> 00:58:56,720
Daisy UI because you get all of 
Daisy UI, but you want to create

998
00:58:56,720 --> 00:58:59,600
your own kind of design system 
off of that, and this is a way 

999
00:58:59,800 --> 00:59:03,160
to configure that to your own 
liking. 

1000
00:59:04,320 --> 00:59:05,760
We're going to have to do our 
colors. 

1001
00:59:05,760 --> 00:59:07,880
Later provide this 
out-of-the-box. 

1002
00:59:09,840 --> 00:59:15,400
I think they have a config that 
you can customize what you want 

1003
00:59:15,400 --> 00:59:19,560
and you just have to put the 
config file in your tailwind dot

1004
00:59:19,560 --> 00:59:22,560
config dot JS similar to how we 
do in our next JS. 

1005
00:59:23,240 --> 00:59:25,400
Application. 
It's not going to be this low 

1006
00:59:25,400 --> 00:59:26,720
level. 
Though, yeah, I don't think it 

1007
00:59:26,720 --> 00:59:29,240
has types though. 
It doesn't. 

1008
00:59:29,960 --> 00:59:32,920
I wish they did and that's why I
said if we could PR them and say

1009
00:59:32,920 --> 00:59:35,320
hey put all these types, it'd be
amazing. 

1010
00:59:39,480 --> 00:59:41,800
Well, that would still import 
all of the types, right? 

1011
00:59:41,800 --> 00:59:45,240
But this is this way we're 
actually specifying the only the

1012
00:59:45,240 --> 00:59:48,480
types that we want. 
From there, that is true, it is 

1013
00:59:48,600 --> 00:59:50,280
doing more of a custom version 
of them. 

1014
00:59:50,280 --> 00:59:54,000
But if we did it with theirs, 
you can actually do all this 

1015
00:59:54,000 --> 00:59:57,120
crazy TypeScript magic where you
start to do like reducers and 

1016
00:59:57,120 --> 00:59:59,200
like use this, all that fun 
stuff. 

1017
00:59:59,200 --> 01:00:00,160
But. 
That's all on you. 

1018
01:00:02,040 --> 01:00:04,880
I'm not that great with 
TypeScript unfortunately, but we

1019
01:00:04,880 --> 01:00:07,400
can work through it. 
This is how far I've gotten is 

1020
01:00:07,400 --> 01:00:11,080
being able to write like a 
simple one line type with the OR

1021
01:00:11,080 --> 01:00:15,640
operator. 
So let's see here where we are 

1022
01:00:15,640 --> 01:00:19,120
at this and we're going to 
import. 

1023
01:00:19,120 --> 01:00:27,440
So we've created our our type 
for import and this is no longer

1024
01:00:27,440 --> 01:00:31,440
a type. 
So it's import card. 

1025
01:00:31,560 --> 01:00:34,360
Oh, actually we're we're doing 
default imports on these army 

1026
01:00:34,760 --> 01:00:37,480
card. 
It'd be cool. 

1027
01:00:37,480 --> 01:00:40,520
Like all of these, I think, 
since they're so specific to do 

1028
01:00:40,520 --> 01:00:44,880
a top level, like export just a 
bunch of things from a single 

1029
01:00:44,880 --> 01:00:49,840
file, But that's fine. 
So instead of did Britney 

1030
01:00:49,840 --> 01:00:51,320
freeze? 
I think so. 

1031
01:00:51,400 --> 01:00:53,440
She's very intense if she didn't
freeze. 

1032
01:00:54,080 --> 01:00:57,840
Yeah, she's focusing. 
For card from. 

1033
01:00:57,840 --> 01:01:00,120
I can hear again everything's 
loading back up. 

1034
01:01:01,920 --> 01:01:04,480
Lib. 
I was just thinking it would be 

1035
01:01:04,480 --> 01:01:10,840
cool if we move these not model 
the single file I think. 

1036
01:01:14,680 --> 01:01:15,480
Can you hear me? 
Yeah. 

1037
01:01:16,120 --> 01:01:18,160
We can hear. 
I think I might have to yell at 

1038
01:01:18,160 --> 01:01:21,440
my kids to stop streaming. 
Maybe that's what's going on? 

1039
01:01:21,760 --> 01:01:27,760
Taking all my bandwidth? 
Stop stealing my bandwidth. 

1040
01:01:28,160 --> 01:01:33,480
OK so I think yeah I forgot to 
start NPM run down. 

1041
01:01:34,000 --> 01:01:39,440
It's going to be super fun. 
Whoa, that got a little crazy 

1042
01:01:39,440 --> 01:01:41,800
wonky. 
Well, let's see what happened 

1043
01:01:43,840 --> 01:01:48,040
and can you split your screen so
we can see the code and the 

1044
01:01:48,040 --> 01:01:50,640
sorry. 
I'm looking. 

1045
01:01:52,640 --> 01:01:55,680
Excuse me? 
OK, so let's look at our card. 

1046
01:01:55,680 --> 01:01:58,680
So W dash, what's that coming 
through US? 

1047
01:01:58,680 --> 01:02:04,640
96? 
Well, you're going to have to go

1048
01:02:04,640 --> 01:02:06,920
down a little bit. 
I can't never mind, I'll hide 

1049
01:02:06,920 --> 01:02:11,120
our faces. 
Card width 96. 

1050
01:02:11,480 --> 01:02:14,760
All of that's coming through 
correctly, but the division 

1051
01:02:14,840 --> 01:02:18,680
itself is do. 
You need this top level to have 

1052
01:02:18,680 --> 01:02:21,920
like a Max. 
What does card actually give? 

1053
01:02:21,960 --> 01:02:25,640
Us well we would put it on the 
card itself so it's just the 

1054
01:02:25,640 --> 01:02:27,760
full width, so it needs a Max 
width. 

1055
01:02:27,760 --> 01:02:31,360
So I think in the card component
we can add a class. 

1056
01:02:31,440 --> 01:02:34,240
Isn't that kind of weird though 
that when we had this? 

1057
01:02:34,840 --> 01:02:37,440
In the other file it was fine. 
Yes, let. 

1058
01:02:37,600 --> 01:02:45,120
Me. 
Just click. 

1059
01:02:45,160 --> 01:02:46,880
So let's see. 
What if you? 

1060
01:02:47,640 --> 01:02:51,000
Do that. 
I'm going to do that and then do

1061
01:02:51,000 --> 01:02:55,560
that now. 
It's fine magic. 

1062
01:02:55,840 --> 01:02:59,280
So why? 
Is it because Tailwind can't see

1063
01:02:59,280 --> 01:03:02,880
our new componentized things? 
I don't know yet. 

1064
01:03:03,640 --> 01:03:07,040
Tailwind V3 says hey, I don't. 
Take that one out and let me see

1065
01:03:07,040 --> 01:03:09,760
what was happening. 
It's just because it was like 

1066
01:03:09,760 --> 01:03:12,320
full width and I don't know now 
it's fine. 

1067
01:03:14,160 --> 01:03:16,600
Interesting. 
Maybe it's the Just in Time 

1068
01:03:16,600 --> 01:03:18,680
compilation? 
And that's what I'm wondering. 

1069
01:03:18,680 --> 01:03:21,840
If it didn't see it then it 
threw it out, which would not be

1070
01:03:21,840 --> 01:03:24,680
good for this thought of 
componentizing. 

1071
01:03:26,040 --> 01:03:29,920
OK, that's weird because it 
should still build it and then 

1072
01:03:29,920 --> 01:03:30,440
throw it. 
Away. 

1073
01:03:30,440 --> 01:03:33,240
Oh, nobody could see The Dirty 
look I just gave you. 

1074
01:03:34,040 --> 01:03:38,160
Oh, what was The Dirty look? 
Because you said this thought 

1075
01:03:38,160 --> 01:03:41,920
about not or about 
componentizing I mean. 

1076
01:03:42,080 --> 01:03:46,480
Action of componentizing. 
Sorry, she's really upset after 

1077
01:03:46,480 --> 01:03:47,800
our last one. 
I don't know. 

1078
01:03:48,960 --> 01:03:51,880
I'm a little touchy. 
I'm all for design system. 

1079
01:03:51,880 --> 01:03:54,360
Justin's confused, I swear. 
I'm just kidding. 

1080
01:03:56,080 --> 01:03:58,360
Oh, I don't know if we posted 
this, but we should. 

1081
01:03:59,680 --> 01:04:02,320
Kids sucking up bandwidth. 
Not cool, not cool, kids. 

1082
01:04:02,800 --> 01:04:06,240
Not cool Alex, get off my 
bandwidth. 

1083
01:04:06,760 --> 01:04:09,200
See how she yells our kids and 
it hurts my ears. 

1084
01:04:09,200 --> 01:04:11,920
It's not good. 
I'm Alex too. 

1085
01:04:11,920 --> 01:04:15,000
Yeah. 
OK. 

1086
01:04:15,000 --> 01:04:16,160
Did you? 
Did you? 

1087
01:04:16,160 --> 01:04:18,640
Hear me call him Alexander 
earlier, by the way. 

1088
01:04:18,880 --> 01:04:20,680
No 'cause my ears a little lit 
up. 

1089
01:04:22,880 --> 01:04:26,920
So we're we're to Tamasha's like
spot. 

1090
01:04:26,920 --> 01:04:31,640
I think now we can bring in a 
cover image from clouded area. 

1091
01:04:32,280 --> 01:04:38,000
So I'm like next JS where we 
have that cool loader, we should

1092
01:04:38,320 --> 01:04:42,520
use Cloud Nary's component. 
Do we think or? 

1093
01:04:42,800 --> 01:04:47,040
I would I would create my. 
Since we're doing everything in 

1094
01:04:47,040 --> 01:04:49,960
components, it should be at the 
Image component. 

1095
01:04:49,960 --> 01:04:52,040
OK, let's build the image 
component. 

1096
01:04:52,240 --> 01:04:55,080
At least they, you know, very 
basic one. 

1097
01:04:56,440 --> 01:04:59,360
I've always wondered is that do 
you guys when you create new 

1098
01:04:59,360 --> 01:05:03,080
files in VS code, do you go new 
and then later save it where you

1099
01:05:03,080 --> 01:05:04,760
want? 
No, I. 

1100
01:05:04,840 --> 01:05:07,960
Never do that. 
My hands on the mouse to like OK

1101
01:05:07,960 --> 01:05:10,640
go here, go. 
Here go. 

1102
01:05:10,640 --> 01:05:14,200
I think there is a key command 
that you can do that if you're 

1103
01:05:14,200 --> 01:05:17,800
on the right folder. 
Anyone write it in the comments 

1104
01:05:17,800 --> 01:05:19,040
even later? 
We'll see it. 

1105
01:05:20,480 --> 01:05:23,040
I think one of the online code 
editors, I don't know if it's 

1106
01:05:23,040 --> 01:05:28,560
Stag Blitz or Code Sandbox, they
because you know when you create

1107
01:05:28,560 --> 01:05:32,880
a new file in in code, you have 
to actually click the folder and

1108
01:05:32,880 --> 01:05:35,480
then go a new file. 
Otherwise it's just created at 

1109
01:05:35,480 --> 01:05:38,320
the root of your project. 
But one of those online editors,

1110
01:05:38,320 --> 01:05:41,280
when you hover your mouse over 
the folder, you get this little 

1111
01:05:41,280 --> 01:05:45,840
icon to create a file or a 
folder where your mouse is. 

1112
01:05:45,840 --> 01:05:49,280
And that kind of makes sense and
I would love to have that in 

1113
01:05:49,280 --> 01:05:51,000
code as well. 
Does make sense. 

1114
01:05:52,080 --> 01:05:56,800
Interesting. 
So we're going to take this guy 

1115
01:05:56,880 --> 01:05:59,800
out. 
Do we take the whole figure do 

1116
01:05:59,800 --> 01:06:04,240
you think or leave figure alone?
On Windows it's Control Alt 

1117
01:06:04,360 --> 01:06:09,440
windows in so that sounds. 
Is that a hyper key command 

1118
01:06:09,680 --> 01:06:11,920
option? 
Command. 

1119
01:06:11,960 --> 01:06:18,880
What's the Windows key for Mac? 
Command key I think. 

1120
01:06:19,000 --> 01:06:20,600
Yeah. 
And then and then N. 

1121
01:06:20,880 --> 01:06:24,760
So it's all the bottom control 
option and command and then N 

1122
01:06:25,880 --> 01:06:27,760
like that. 
I don't know. 

1123
01:06:28,160 --> 01:06:31,000
Mine is Control alt windows 
button in. 

1124
01:06:31,920 --> 01:06:33,680
Control. 
Yeah, I think that would be 

1125
01:06:34,120 --> 01:06:37,680
weird. 
Does that does that pop this up 

1126
01:06:37,680 --> 01:06:38,400
Brett, for you? 
Oops. 

1127
01:06:40,160 --> 01:06:41,960
Control. 
That. 

1128
01:06:43,320 --> 01:06:47,280
Control Alt windows button in it
pops up that yes. 

1129
01:06:47,520 --> 01:06:51,720
OK, weird. 
That's a weird Keith. 

1130
01:06:51,840 --> 01:06:55,160
Like my fingers felt weird too. 
That is very weird. 

1131
01:06:57,160 --> 01:06:59,000
Why doesn't like this? 
Needs to be string? 

1132
01:06:59,000 --> 01:07:03,400
Yeah, weird that it knew it that
time. 

1133
01:07:03,560 --> 01:07:05,640
I don't. 
I don't understand that. 

1134
01:07:06,920 --> 01:07:09,960
It knew it. 
Like without this it knew. 

1135
01:07:11,640 --> 01:07:14,000
No it didn't. 
Oh, that's I don't know. 

1136
01:07:14,000 --> 01:07:15,240
I don't know what's happening 
anymore. 

1137
01:07:16,880 --> 01:07:20,560
All right, so that's like the 
very basic. 

1138
01:07:21,000 --> 01:07:25,120
Well, let's at least do some Li 
set up. 

1139
01:07:26,400 --> 01:07:33,760
Yes, please. 
We will also simplify that even 

1140
01:07:33,760 --> 01:07:36,120
further, right? 
You don't need source equals. 

1141
01:07:37,080 --> 01:07:37,760
Yeah. 
Oh yeah. 

1142
01:07:37,760 --> 01:07:40,880
So in JSX world you have to do 
this. 

1143
01:07:40,880 --> 01:07:45,080
You can actually just do the SRC
and the alt in curly braces, no?

1144
01:07:45,520 --> 01:07:47,640
If the attribute is the same as 
the, I hope they. 

1145
01:07:48,200 --> 01:07:48,800
Update. 
That correct? 

1146
01:07:50,880 --> 01:07:53,080
Well, it's JSX, right? 
Well. 

1147
01:07:53,320 --> 01:07:55,960
I I think JSX technically can do
this. 

1148
01:07:56,040 --> 01:08:01,400
React more than correctly Think.
Don't kill me people I don't 

1149
01:08:01,400 --> 01:08:02,760
know I. 
Won't talk bad about reacting. 

1150
01:08:03,040 --> 01:08:06,880
Yeah, React. 
OK, so we have an image 

1151
01:08:06,880 --> 01:08:10,400
component that we'll have to 
work on like see if we lazy 

1152
01:08:10,400 --> 01:08:15,840
load, but for now so that is 
going to go in here. 

1153
01:08:23,000 --> 01:08:24,680
Oh, I'm not following you 
anymore. 

1154
01:08:25,439 --> 01:08:27,960
I'm just getting errors. 
Follow. 

1155
01:08:27,960 --> 01:08:33,439
There we go. 
This is still like the neatest 

1156
01:08:33,439 --> 01:08:35,720
little service, the live share. 
I love it. 

1157
01:08:35,720 --> 01:08:37,000
I think it's. 
Amazing. 

1158
01:08:45,960 --> 01:08:47,279
OK. 
Type. 

1159
01:08:47,960 --> 01:08:51,200
In there. 
So this has to be so I don't 

1160
01:08:51,200 --> 01:08:55,920
have to do that even do I just 
do like so this will become. 

1161
01:08:56,080 --> 01:08:57,840
Well, where's your SRC coming 
from? 

1162
01:08:58,760 --> 01:09:01,279
Yeah, that's that's kind of 
interesting. 

1163
01:09:01,279 --> 01:09:06,600
So here we'll have to do 
something like let maybe we do 

1164
01:09:06,600 --> 01:09:14,200
an image component I guess 
figure because we have to pass 

1165
01:09:14,200 --> 01:09:19,359
all the data for an image in to 
allow for it and it's going to 

1166
01:09:19,479 --> 01:09:24,680
be optional. 
I would imagine you do a. 

1167
01:09:25,479 --> 01:09:29,439
Type of image your card 
component. 

1168
01:09:29,439 --> 01:09:34,640
I think you would want this 
logic to be in your Image 

1169
01:09:34,640 --> 01:09:42,500
component. 
You would want what in your 

1170
01:09:42,500 --> 01:09:44,779
image component. 
I I would think you would want 

1171
01:09:44,779 --> 01:09:50,740
the logic in your image 
component for like the cloud and

1172
01:09:50,740 --> 01:09:54,360
area piece right? 
I think all that will be, yeah, 

1173
01:09:54,360 --> 01:09:57,480
but we're calling the image to 
show it within a card. 

1174
01:09:57,480 --> 01:10:00,640
So if we get image we would show
it. 

1175
01:10:00,640 --> 01:10:03,640
So like how do you do? 
Can you do image question mark 

1176
01:10:04,600 --> 01:10:08,160
turn area or no? 
Yeah, you can do a turn area 

1177
01:10:08,160 --> 01:10:11,280
like that, like that. 
Oh no, you can't. 

1178
01:10:12,880 --> 01:10:15,800
No, it that doesn't work. 
How do you do? 

1179
01:10:15,800 --> 01:10:20,080
Do you have to write function 
like if image give me the 

1180
01:10:20,080 --> 01:10:22,280
component otherwise don't? 
You would use. 

1181
01:10:22,680 --> 01:10:25,360
Template. 
Sorry. 

1182
01:10:27,120 --> 01:10:30,560
I would do a templating block so
if. 

1183
01:10:32,400 --> 01:10:33,640
I forget about that. 
OK. 

1184
01:10:34,720 --> 01:10:38,240
Then you would call image. 
Perfect. 

1185
01:10:39,000 --> 01:10:41,320
And if and then you can do an 
else there. 

1186
01:10:44,080 --> 01:10:48,400
Awesome. 
Why is it complaining? 

1187
01:10:49,520 --> 01:10:53,440
Because image does not. 
Image implicitly hasn't any type

1188
01:10:53,840 --> 01:10:57,000
because you haven't defined the 
type for image this. 

1189
01:10:57,080 --> 01:11:00,600
Yeah, you're giving it the image
as your component. 

1190
01:11:00,680 --> 01:11:04,120
Oh, so it doesn't know a 
component's type like the 

1191
01:11:04,120 --> 01:11:07,040
exports coming out of that. 
It doesn't understand this. 

1192
01:11:08,920 --> 01:11:10,480
Apparently not. 
I don't know. 

1193
01:11:11,520 --> 01:11:15,720
Interesting, so if I were to do 
this would it work? 

1194
01:11:16,040 --> 01:11:18,880
Who's got a cat meowing? 
Yeah, she's annoying. 

1195
01:11:22,760 --> 01:11:25,280
I I thought it was appropriate 
on brand. 

1196
01:11:26,400 --> 01:11:32,600
Yeah, that's true. 
That is really interesting how 

1197
01:11:32,600 --> 01:11:36,000
this works I guess. 
I just started music in my ears.

1198
01:11:36,000 --> 01:11:41,400
What the heck? 
Yeah, I think you need to define

1199
01:11:41,400 --> 01:11:43,600
the type separately, because it 
wouldn't. 

1200
01:11:44,120 --> 01:11:49,240
That's a total bummer, you know?
Like it should just auto detect 

1201
01:11:49,280 --> 01:11:51,600
the types. 
Well, usually you write like a 

1202
01:11:51,600 --> 01:11:54,520
class and then you have like all
your methods and stuff like that

1203
01:11:54,520 --> 01:11:58,520
and then TypeScript understands 
what that class is able to do. 

1204
01:11:59,080 --> 01:12:01,760
So, but it's not a class. 
You might have to investigate 

1205
01:12:01,760 --> 01:12:03,800
that a little more I guess. 
Yeah. 

1206
01:12:05,360 --> 01:12:09,920
So let me bring up. 
Also I finished the swelled. 

1207
01:12:09,920 --> 01:12:14,240
Do you have Do you have link 
TypeScript? 

1208
01:12:16,040 --> 01:12:18,960
Sorry, say that again. 
You do OK? 

1209
01:12:19,400 --> 01:12:23,280
No I I was just asking if an 
image that's felt you actually 

1210
01:12:23,280 --> 01:12:25,280
had the line equals. 
To. 

1211
01:12:25,640 --> 01:12:27,280
DS in. 
We do. 

1212
01:12:27,480 --> 01:12:45,840
The script tag you do OK. 
I know Brittany and I were 

1213
01:12:45,840 --> 01:12:49,720
talking earlier about how we 
with our Devrel jobs and maybe 

1214
01:12:49,720 --> 01:12:53,840
you run into this, we feel like 
we're blogging so much and doing

1215
01:12:53,840 --> 01:12:57,360
videos so much that we lose on 
this like coding piece. 

1216
01:12:57,360 --> 01:13:00,760
So I love doing these Fridays so
we can like, keep up with it. 

1217
01:13:01,000 --> 01:13:07,080
Hacking away. 
Yeah, yeah, it's, it's getting 

1218
01:13:07,080 --> 01:13:10,880
more and more difficult. 
Right here. 

1219
01:13:23,720 --> 01:13:26,960
I do kind of wish it would just 
come along with the component 

1220
01:13:26,960 --> 01:13:31,680
because that's really bogging 
down. 

1221
01:13:31,920 --> 01:13:36,480
That's my main complaint about 
TypeScript is it makes the code 

1222
01:13:37,720 --> 01:13:41,440
so hard to read and parse. 
That little question mark after 

1223
01:13:41,440 --> 01:13:44,800
the image is, oh, that's 
TypeScript. 

1224
01:13:44,800 --> 01:13:48,040
To make it, you need to do that 
in the model, right? 

1225
01:13:48,080 --> 01:13:52,800
Not in the in the initialization
of that variable. 

1226
01:13:53,480 --> 01:13:59,960
Yeah, I think this needs to be 
like, oops, yes, like that. 

1227
01:13:59,960 --> 01:14:01,640
And then let's see if this works
now. 

1228
01:14:05,520 --> 01:14:09,360
Well, you called your component 
image and you're calling your 

1229
01:14:09,360 --> 01:14:11,600
type image too. 
You can't have the same. 

1230
01:14:11,600 --> 01:14:13,400
Yeah, I was. 
I was hoping that this would 

1231
01:14:13,400 --> 01:14:15,320
work now that. 
I oh, I see. 

1232
01:14:15,400 --> 01:14:20,080
The error was though, so this 
says type object. 

1233
01:14:20,600 --> 01:14:26,760
Oh, it does it does see source 
and all What So type object is 

1234
01:14:26,760 --> 01:14:28,680
missing the following 
properties. 

1235
01:14:28,680 --> 01:14:30,560
Yep. 
So it it did pick it up. 

1236
01:14:30,560 --> 01:14:35,000
All right, That's that's so much
better. 

1237
01:14:35,000 --> 01:14:41,360
I was like, that can't be true. 
So let's see can I do this 

1238
01:14:41,360 --> 01:14:43,920
still? 
No, because it's going to be. 

1239
01:14:44,200 --> 01:14:51,640
Source is equal to post dots 
post dot no no. 

1240
01:14:52,160 --> 01:14:53,720
Where are we at? 
We're in card. 

1241
01:14:54,000 --> 01:15:04,000
So source is equal to image. 
Does it understand? 

1242
01:15:05,840 --> 01:15:08,320
See that's that's the intriguing
part. 

1243
01:15:08,320 --> 01:15:12,680
So it's it's considering this a 
image felt component. 

1244
01:15:13,880 --> 01:15:15,800
Yes. 
So I was wrong. 

1245
01:15:15,840 --> 01:15:18,680
We do need that. 
That's too bad. 

1246
01:15:18,680 --> 01:15:23,480
Like I wish it understood that 
image had these attributes 

1247
01:15:23,480 --> 01:15:25,920
coming in. 
It did look like it had that you

1248
01:15:25,920 --> 01:15:27,640
have to put the type in a 
separate file. 

1249
01:15:27,640 --> 01:15:30,960
Someone to say? 
Oh, that's not cool. 

1250
01:15:31,400 --> 01:15:33,600
Thank you though, I guess, I 
guess we. 

1251
01:15:34,040 --> 01:15:36,560
That solves it, but. 
I should have not deleted my 

1252
01:15:36,560 --> 01:15:39,360
generic. 
This is This is why we need like

1253
01:15:39,360 --> 01:15:41,520
get commit every like second I 
save. 

1254
01:15:41,520 --> 01:15:45,680
I think I got all excited and 
deleted our generic. 

1255
01:15:47,120 --> 01:15:50,520
OK, sorry folks, you'll have to 
watch me do this again. 

1256
01:15:51,160 --> 01:15:53,960
OK, I'm going to step away for a
second while you're doing that. 

1257
01:15:54,200 --> 01:15:55,320
No problem. 
Tomas. 

1258
01:15:55,680 --> 01:15:57,040
How you doing? 
You awake? 

1259
01:15:57,240 --> 01:15:58,720
I'm. 
Yes, I am. 

1260
01:15:59,000 --> 01:16:07,910
OK, good. 
Technically, this probably can 

1261
01:16:07,910 --> 01:16:10,750
be that, although it shouldn't 
be. 

1262
01:16:13,190 --> 01:16:22,740
Yeah. 
OK, now we're getting somewhere.

1263
01:16:34,760 --> 01:16:42,040
Yeah, it's because of this side.
Oh, right, you can't do that. 

1264
01:16:48,440 --> 01:16:52,400
Not sure what that'll end up 
like, but that should fix this 

1265
01:16:52,400 --> 01:17:02,240
and a back. 
Timeline panel What does 

1266
01:17:02,240 --> 01:17:07,280
timeline panel mean? 
I don't know. 

1267
01:17:07,360 --> 01:17:10,480
Where you're like well either B1
said timeline panel. 

1268
01:17:11,400 --> 01:17:13,760
VS Code now has the save history
too. 

1269
01:17:13,760 --> 01:17:16,880
Saves my panel. 
Where's timeline? 

1270
01:17:19,000 --> 01:17:25,840
That's that's new timeline my 
view. 

1271
01:17:28,880 --> 01:17:31,880
Oh oh Oh no way I didn't know 
that existed. 

1272
01:17:34,000 --> 01:17:37,760
Oh but that's just in this file.
Can I go to a different file? 

1273
01:17:38,520 --> 01:17:43,080
And then Jean, I don't know how 
to say your name. 

1274
01:17:43,080 --> 01:17:43,920
Sorry. 
Jean. 

1275
01:17:44,080 --> 01:17:45,520
Something. 
Yes. 

1276
01:17:45,520 --> 01:17:48,480
I would love to be able to 
export types directly from the 

1277
01:17:48,480 --> 01:17:51,560
svelte component too. 
What did you say, Tamash? 

1278
01:17:51,560 --> 01:17:53,680
Oh. 
No, I just tried to pronounce 

1279
01:17:53,680 --> 01:17:56,280
his name as well. 
Is it John? 

1280
01:17:56,560 --> 01:17:58,520
I. 
Think he's Jean Ives. 

1281
01:17:59,320 --> 01:18:04,080
Jean Ives, I wish I could speak 
in French, I'm assuming. 

1282
01:18:04,760 --> 01:18:06,280
Just hung out with some French 
people. 

1283
01:18:06,280 --> 01:18:10,320
I should be on the ball in the. 
All right, so we have our card 

1284
01:18:10,320 --> 01:18:15,080
component. 
Source is complaining source 

1285
01:18:15,080 --> 01:18:20,520
string, alt string is not 
assignable, it has to be an 

1286
01:18:20,520 --> 01:18:25,680
image. 
How do we pass a multi thing to 

1287
01:18:25,680 --> 01:18:31,640
a thing? 
So if I do image equals and then

1288
01:18:31,640 --> 01:18:35,280
can I send in a object? 
No. 

1289
01:18:35,280 --> 01:18:38,400
I mean, you can send in any kind
of JavaScript, but why are you 

1290
01:18:38,400 --> 01:18:42,200
sending in? 
This this needs to be oh object.

1291
01:18:42,480 --> 01:18:44,480
So what does the image component
look like? 

1292
01:18:44,480 --> 01:18:46,640
Again, what are your props? 
So you. 

1293
01:18:46,800 --> 01:18:48,480
Are not in your image in your 
card. 

1294
01:18:48,600 --> 01:18:52,360
Yeah, when we go into card the 
prop for image, it is going to 

1295
01:18:52,360 --> 01:18:55,920
be our image model which has. 
Which is an object of yes. 

1296
01:18:55,920 --> 01:18:58,600
So you can send it in like that.
You should be able to I. 

1297
01:18:58,840 --> 01:19:00,280
Think it's. 
Always complaining for. 

1298
01:19:00,520 --> 01:19:02,920
The world unexpected? 
Well. 

1299
01:19:02,960 --> 01:19:04,480
Because it's an object, right? 
So you need a. 

1300
01:19:05,160 --> 01:19:10,160
Oh yes, comma. 
Oh boy, it's fried. 

1301
01:19:10,160 --> 01:19:14,200
No, now source is complaining 
short hand properties. 

1302
01:19:15,120 --> 01:19:18,480
Oh, it's still an object we'll 
get. 

1303
01:19:18,480 --> 01:19:20,560
Oh my goodness. 
We'll get there. 

1304
01:19:21,320 --> 01:19:23,760
All right and now image is 
complaining width. 

1305
01:19:30,440 --> 01:19:33,160
Widths. 
Oh I think we just need the rest

1306
01:19:33,160 --> 01:19:39,000
so. 
So how do we do optional types 

1307
01:19:39,000 --> 01:19:43,920
up here? 
So can widths be undefined or 

1308
01:19:43,920 --> 01:19:47,640
undefined? 
I think you can do it there, or 

1309
01:19:47,640 --> 01:19:51,000
you can do it in the models for 
your types. 

1310
01:19:51,720 --> 01:19:53,560
You're asking me TypeScript 
questions. 

1311
01:19:53,600 --> 01:19:54,920
I don't know. 
OK. 

1312
01:19:56,240 --> 01:19:59,560
I think that's. 
I think I answered it correctly.

1313
01:19:59,880 --> 01:20:02,560
John I've. 
John I've. 

1314
01:20:03,200 --> 01:20:05,640
Is that how we say? 
John, I've John. 

1315
01:20:05,640 --> 01:20:11,840
I've John, I've sorry, John, 
we're like pronouncing your name

1316
01:20:11,840 --> 01:20:13,440
terribly wrong, but. 
And. 

1317
01:20:14,360 --> 01:20:17,280
Horrible American. 
So what we have type image 

1318
01:20:17,280 --> 01:20:21,480
source string, alt string is not
assignable to type intrinsic 

1319
01:20:21,480 --> 01:20:25,960
attributes and width or 
undefined property. 

1320
01:20:25,960 --> 01:20:33,440
Image does not exist on type. 
So are we not exporting 

1321
01:20:33,440 --> 01:20:35,280
something? 
That's that's what it feels 

1322
01:20:35,280 --> 01:20:36,160
like. 
Yep. 

1323
01:20:38,320 --> 01:20:41,800
Oh yeah, shadow and image. 
Yahtzee. 

1324
01:20:44,240 --> 01:20:48,600
OK, Nice. 
Tamash, do you have Yahtzee? 

1325
01:20:51,800 --> 01:20:55,240
Do you know what Yahtzee is? 
No. 

1326
01:20:55,640 --> 01:21:00,560
It's a it's a dice game you play
with five die dice, 5 dice, die,

1327
01:21:00,880 --> 01:21:06,920
die, five dice and you try to 
try to get like straight, so 

1328
01:21:06,920 --> 01:21:10,720
12345 or like a pair or two 
pair. 

1329
01:21:10,960 --> 01:21:11,400
It's fun. 
Yeah. 

1330
01:21:11,480 --> 01:21:13,960
It's. 
Like a card game, but a dice 

1331
01:21:14,000 --> 01:21:16,160
game. 
And Yahtzee is when you get all 

1332
01:21:16,160 --> 01:21:17,200
of them the same. 
Yahtzee I. 

1333
01:21:19,040 --> 01:21:21,240
Didn't have to shout Yahtzee. 
All right, well. 

1334
01:21:22,120 --> 01:21:27,080
OK, so this is the very generic 
version of our card which should

1335
01:21:27,080 --> 01:21:31,800
come back correctly. 
We'll refresh, make sure it's 

1336
01:21:31,800 --> 01:21:36,120
doing the Lorem ipsum so it's 
changing the image each time now

1337
01:21:36,120 --> 01:21:39,400
we should be able to change this
out. 

1338
01:21:40,200 --> 01:21:44,240
Oh you were using an APII have 
never seen that. 

1339
01:21:45,960 --> 01:21:48,720
That, that is a cool one if you 
ever write that one down. 

1340
01:21:49,160 --> 01:21:52,120
So you're already in JavaScript.
You don't want to use curly 

1341
01:21:52,120 --> 01:21:54,200
braces there. 
You want to use back ticks if 

1342
01:21:54,200 --> 01:21:56,560
you're going to do a string 
interpolation thing. 

1343
01:21:57,120 --> 01:22:02,040
So we're going to do back ticks 
and we're going to do post dot, 

1344
01:22:04,160 --> 01:22:09,800
cover, cover dot. 
Oh my gosh, stop it, dot. 

1345
01:22:11,320 --> 01:22:14,640
Mine has been so bad lately 
about auto populating things 

1346
01:22:14,640 --> 01:22:16,840
that I don't want. 
It's like stop. 

1347
01:22:16,960 --> 01:22:19,080
If you're not going to be 
helpful, just don't. 

1348
01:22:20,200 --> 01:22:22,800
So if we're if we're doing this 
nicely. 

1349
01:22:22,800 --> 01:22:26,280
Now you need a question mark. 
Yep, this the knowledge 

1350
01:22:26,360 --> 01:22:29,480
coalescing. 
Oh, good word usage. 

1351
01:22:29,520 --> 01:22:31,040
I like it. 
Nice. 

1352
01:22:31,280 --> 01:22:32,080
Yeah. 
So. 

1353
01:22:32,080 --> 01:22:35,800
Come on and do stuff. 
Yeah, let's let's go just add, I

1354
01:22:35,800 --> 01:22:38,480
think I actually have this now 
in ours. 

1355
01:22:38,480 --> 01:22:43,080
So let me just open CCD up and 
go directly to post. 

1356
01:22:44,200 --> 01:22:46,880
God, you do that so fast. 
I don't know all the key 

1357
01:22:46,880 --> 01:22:48,400
commands to do what you just 
did. 

1358
01:22:48,800 --> 01:22:51,920
I don't either. 
You just did it. 

1359
01:22:52,160 --> 01:22:54,960
How do you not know it? 
You just like in your brain, you

1360
01:22:54,960 --> 01:22:58,320
know them and it's. 
Like it's muscle memories. 

1361
01:22:58,560 --> 01:22:59,840
It's muscle. 
There you go. 

1362
01:23:01,880 --> 01:23:05,600
No, I I actually do it kind of 
the slow way, but if you just 

1363
01:23:05,600 --> 01:23:06,840
command P or. 
Whatever. 

1364
01:23:06,840 --> 01:23:10,760
You didn't have to put that in a
I'm just I'm just thinking you 

1365
01:23:10,760 --> 01:23:14,360
didn't need to put that in the 
template literature it. 

1366
01:23:14,680 --> 01:23:17,760
Just automatically. 
Yeah, you're already in. 

1367
01:23:17,800 --> 01:23:20,200
JavaScript, you're not using a a
variable. 

1368
01:23:20,640 --> 01:23:28,240
Yes. 
Yes, so we actually want to do 

1369
01:23:29,360 --> 01:23:36,480
something about the fun part is 
we should allow this in our card

1370
01:23:36,960 --> 01:23:45,000
to also say, Oh, this is this is
dirty because we almost want to 

1371
01:23:45,000 --> 01:23:47,520
say in our image will allow that
to come through as well. 

1372
01:23:47,520 --> 01:23:53,480
But it realistically just 
forsake of me not going crazy. 

1373
01:23:54,000 --> 01:24:01,120
If we check this, we could go so
I got to remember your syntax. 

1374
01:24:01,120 --> 01:24:06,240
It's pound if right and then we 
go that. 

1375
01:24:06,400 --> 01:24:14,400
So if not this, not that we're 
going to do the same card and 

1376
01:24:14,400 --> 01:24:16,920
then else happens after or 
within. 

1377
01:24:17,280 --> 01:24:22,360
Inside that and you're going to 
do no like above that, I'm 

1378
01:24:22,360 --> 01:24:24,560
sorry. 
Inside the markup there you go 

1379
01:24:24,560 --> 01:24:28,280
and then your curly braces colon
else. 

1380
01:24:28,840 --> 01:24:31,120
Oh man. 
And then space if. 

1381
01:24:32,160 --> 01:24:34,800
Oh my goodness, that. 
Are wait, are you doing? 

1382
01:24:34,880 --> 01:24:38,040
Are you doing just else? 
OK, yeah, never mind. 

1383
01:24:38,480 --> 01:24:42,320
So we'll drop that in, but if it
so actually we'll do it the 

1384
01:24:42,320 --> 01:24:45,560
right way. 
So if it does exist, we'll throw

1385
01:24:45,560 --> 01:24:47,840
it through. 
If it does not exist, we'll just

1386
01:24:47,840 --> 01:24:51,520
do a card without an image and 
then we'll update our card. 

1387
01:24:51,520 --> 01:24:54,400
Sorry, OK, I. 
Was wondering where you were 

1388
01:24:54,400 --> 01:24:57,000
going with that. 
That should be OK. 

1389
01:24:58,680 --> 01:25:01,040
It says it's not, but it should.
Allow because the width. 

1390
01:25:02,840 --> 01:25:05,440
Oh, I think. 
That is a little confusing too. 

1391
01:25:06,520 --> 01:25:08,560
No, it should be all right, 
right? 

1392
01:25:08,560 --> 01:25:11,520
All of these can be on it. 
Undefined, undefined, undefined.

1393
01:25:12,600 --> 01:25:16,680
Yeah, it should be able to have 
no image. 

1394
01:25:19,880 --> 01:25:23,480
Width widths. 
Type images missing property 

1395
01:25:23,480 --> 01:25:28,960
images missing but required in 
type width. 

1396
01:25:30,520 --> 01:25:34,960
Where's the type for width? 
No, it's in any of these in in 

1397
01:25:35,120 --> 01:25:38,000
all of that image. 
Image here. 

1398
01:25:38,440 --> 01:25:41,480
Oh OK, that's where it's looking
for it, but it says or 

1399
01:25:41,480 --> 01:25:44,280
undefined. 
That's so weird to me that like 

1400
01:25:45,680 --> 01:25:49,200
I keep thinking this should be 
that but it doesn't like it. 

1401
01:25:53,440 --> 01:25:54,200
I wonder if. 
It's. 

1402
01:25:54,200 --> 01:25:57,720
That's not your type, that's 
your variable initialization. 

1403
01:25:57,720 --> 01:26:01,160
So that's JavaScript. 
Your type is where you would do 

1404
01:26:01,280 --> 01:26:03,960
that, right? 
But the type says undefined, so 

1405
01:26:03,960 --> 01:26:13,160
it should be fine. 
Interesting image is missing but

1406
01:26:13,160 --> 01:26:15,880
required. 
It's not required though. 

1407
01:26:17,360 --> 01:26:21,480
How is this with question mark 
coming through in shadow 

1408
01:26:21,480 --> 01:26:25,280
question mark? 
Where is that at home? 

1409
01:26:25,360 --> 01:26:27,880
Right there. 
I wonder if that's defined in 

1410
01:26:27,880 --> 01:26:30,840
those like you said. 
Do you? 

1411
01:26:30,840 --> 01:26:33,720
Have a but it's. 
Not Mark, no. 

1412
01:26:35,600 --> 01:26:37,600
Where is it getting that 
question mark from? 

1413
01:26:38,760 --> 01:26:41,480
Maybe it's 'cause it's equals 
undefined? 

1414
01:26:45,120 --> 01:26:47,680
Yep, that was weird. 
So I guess you have to 

1415
01:26:47,680 --> 01:26:53,040
initialize your variables. 
Oh, with a default value? 

1416
01:26:53,280 --> 01:26:55,600
Is that what we needed? 
Yeah, I guess so. 

1417
01:26:56,000 --> 01:27:00,280
Interesting. 
So actually it's this we can 

1418
01:27:00,280 --> 01:27:08,600
throw through as well, and this 
we'll do title because this 

1419
01:27:08,600 --> 01:27:12,920
isn't going to come through 
properties. 

1420
01:27:15,640 --> 01:27:20,640
Not Oh my gosh, title sucks. 
It's like name. 

1421
01:27:22,360 --> 01:27:24,520
Oh, this is where we get into 
the Jason. 

1422
01:27:25,280 --> 01:27:28,600
I, I don't know, I'm just. 
Going to hell, just like nesting

1423
01:27:28,600 --> 01:27:30,680
look. 
Up a title for now and see how 

1424
01:27:30,680 --> 01:27:35,960
it goes. 
OK, all right, let's cross our 

1425
01:27:35,960 --> 01:27:37,920
fingers. 
Hey, woo. 

1426
01:27:40,320 --> 01:27:43,120
Cool. 
So this should be a cloud nary 

1427
01:27:43,120 --> 01:27:48,360
image. 
That worked. 

1428
01:27:49,080 --> 01:27:52,520
Nice. 
And because I was so nice to 

1429
01:27:52,520 --> 01:27:55,680
release our CD end of the world,
it works everywhere. 

1430
01:27:57,480 --> 01:28:01,080
So you can technically lock down
media dot coding CAD dot dev to 

1431
01:28:01,080 --> 01:28:04,040
only work on our site, but I 
found that a little painful. 

1432
01:28:06,200 --> 01:28:08,960
Oh, because you wouldn't be able
to use it on this site if you 

1433
01:28:08,960 --> 01:28:10,280
had done that. 
Correct. 

1434
01:28:10,560 --> 01:28:13,880
Yep. 
So we got a little further. 

1435
01:28:14,000 --> 01:28:17,520
I think that's pretty cool. 
We're trying to stick to 90 

1436
01:28:17,520 --> 01:28:21,960
minutes at a time and we're 
we're getting close to that any 

1437
01:28:21,960 --> 01:28:24,200
so. 
I tell you what I would change. 

1438
01:28:24,400 --> 01:28:30,000
Yeah, tell us. 
So you know how you pass into 

1439
01:28:30,160 --> 01:28:34,960
the entire source source URL for
your image. 

1440
01:28:35,200 --> 01:28:36,640
You mean for the image? 
Components. 

1441
01:28:37,840 --> 01:28:39,200
Pardon. 
Yeah, for the image component. 

1442
01:28:39,200 --> 01:28:43,800
OK, So what I would do is as 
opposed to pulling in the 

1443
01:28:43,800 --> 01:28:46,280
source, I would just grab the 
public ID. 

1444
01:28:47,520 --> 01:28:50,520
Yep. 
If you I'd like, I don't know if

1445
01:28:50,520 --> 01:28:54,480
you stored that separately. 
So the the interesting part on 

1446
01:28:54,480 --> 01:28:59,320
Notion we have to give it the 
full URL, but I do separate out 

1447
01:28:59,320 --> 01:29:04,680
the public ID when we're parsing
that data so we rip out like the

1448
01:29:05,400 --> 01:29:09,600
a loop down to our actual folder
name so it has it. 

1449
01:29:10,280 --> 01:29:14,800
OK, because if you pass in the 
public ID then it means then you

1450
01:29:14,800 --> 01:29:18,520
can use the. 
You can use the cloud in your 

1451
01:29:18,520 --> 01:29:24,200
URL generator to generate the 
actual cloud in your URL and 

1452
01:29:24,200 --> 01:29:28,680
then you could then put the F 
photos and Q autos and all that 

1453
01:29:28,680 --> 01:29:31,680
optimization in in your image 
component. 

1454
01:29:31,680 --> 01:29:34,800
Essentially that is a a great 
great point. 

1455
01:29:37,400 --> 01:29:41,760
Or just throwing this out here 
since I do all that for looping 

1456
01:29:41,760 --> 01:29:45,080
and nonsense up there. 
If we detect that the cloud and 

1457
01:29:45,080 --> 01:29:49,680
area in our image component, we 
could do it there too like 

1458
01:29:49,680 --> 01:29:56,360
directly in our component. 
Yeah, I don't know because that 

1459
01:29:56,360 --> 01:30:00,360
would you know that that would 
give you a lot of I mean even if

1460
01:30:00,360 --> 01:30:03,280
you just state the URL that you 
that you showed in the browser 

1461
01:30:03,280 --> 01:30:07,560
just now. 
Yep, so and you said this is 

1462
01:30:07,560 --> 01:30:08,920
coming from cloud in there, 
right. 

1463
01:30:09,800 --> 01:30:12,800
So if you. 
So this the actual URL comes 

1464
01:30:12,800 --> 01:30:15,440
from Notion. 
But yes, the the image is then 

1465
01:30:15,440 --> 01:30:18,080
delivered. 
So like if we took out all of 

1466
01:30:18,080 --> 01:30:21,880
this stuff, that's the actual 
image. 

1467
01:30:22,320 --> 01:30:29,360
And then what Tomas is saying is
if we do Q auto, F auto, we'll 

1468
01:30:29,360 --> 01:30:34,400
get our AVIF format back. 
Or yeah, whatever format cloud, 

1469
01:30:34,400 --> 01:30:36,280
you know, deems to be the the 
best one. 

1470
01:30:37,040 --> 01:30:39,920
And if you checked in network 
panel, this is where things get,

1471
01:30:40,120 --> 01:30:42,840
you know, exciting. 
So it's just I can't see the 

1472
01:30:42,840 --> 01:30:49,120
values, but if you thank you, if
you refresh and you select your 

1473
01:30:49,120 --> 01:30:54,920
image and look at the so this is
what 66.6 kilobytes? 

1474
01:30:54,920 --> 01:30:58,400
That's a funky number. 
Yes. 

1475
01:30:58,840 --> 01:31:02,560
But yeah, so it's yeah, 66 
kilobytes if you just go back 

1476
01:31:02,560 --> 01:31:06,600
and do check the request without
F auto and Q auto. 

1477
01:31:07,400 --> 01:31:11,720
Yep, that was that was going to 
say it should show us what type 

1478
01:31:11,720 --> 01:31:13,200
came through as well. 
All right. 

1479
01:31:13,280 --> 01:31:16,880
Yeah, if you go into, it's that 
content type image again enough,

1480
01:31:17,160 --> 01:31:17,680
Yeah. 
Yeah. 

1481
01:31:17,680 --> 01:31:20,760
So you see our AVIF because I 
don't know if this is fully 

1482
01:31:20,760 --> 01:31:24,080
public or not yet, but we're on 
the beta program for AVIF to 

1483
01:31:24,080 --> 01:31:26,120
come through. 
Yeah. 

1484
01:31:26,640 --> 01:31:28,800
And then and. 
Then if you just delete those, 

1485
01:31:29,880 --> 01:31:33,600
we should get a larger file. 
You see it's. 

1486
01:31:35,560 --> 01:31:38,400
Yeah, it's nearly twice. 
Actually, it's more than twice 

1487
01:31:38,400 --> 01:31:41,160
you. 
See the image slash JPEG there. 

1488
01:31:42,000 --> 01:31:44,960
Yeah, and it's 100. 
And cool part, like if you look 

1489
01:31:44,960 --> 01:31:50,840
on on our main site where the 
next JS is actually doing this 

1490
01:31:51,040 --> 01:31:55,480
for those who are interested, 
when you look at this one, it 

1491
01:31:55,480 --> 01:32:00,360
does a lot more than just that. 
So you'll see a full image come 

1492
01:32:00,360 --> 01:32:03,640
through with all the different, 
different break points. 

1493
01:32:03,640 --> 01:32:08,040
So 640 gives you this image 
back. 

1494
01:32:08,040 --> 01:32:12,400
So it's much, much smaller. 
When you're on a smaller device,

1495
01:32:12,400 --> 01:32:17,200
it'll pick this up and as you 
see in the F auto C limit, it 

1496
01:32:17,200 --> 01:32:20,640
goes down to width of 640 and 
then you still get the Q auto. 

1497
01:32:21,360 --> 01:32:25,240
So this is still going to bring 
a AVIF back, but not nearly as 

1498
01:32:25,240 --> 01:32:27,960
big. 
So the network for this one 

1499
01:32:27,960 --> 01:32:34,840
should be quite small and. 
Cloud Unit has a generator for 

1500
01:32:34,840 --> 01:32:38,080
this binary. 
Yeah, yeah. 

1501
01:32:38,160 --> 01:32:41,600
So that's that's the. 
Responsegenerator.com I think. 

1502
01:32:42,080 --> 01:32:44,920
Yeah, Would you? 
So for our sake, would you 

1503
01:32:44,920 --> 01:32:48,840
recommend like if we had to take
a full URL, would we? 

1504
01:32:48,840 --> 01:32:51,840
Would you just do that on the 
server side and do the cloud 

1505
01:32:51,840 --> 01:32:56,840
Nari URL creator type of thing? 
Yeah. 

1506
01:32:57,280 --> 01:33:00,360
And then just load that and then
statically we could display it 

1507
01:33:00,360 --> 01:33:03,800
just based on those two. 
Yeah, that's what I did in my 

1508
01:33:03,800 --> 01:33:06,560
course as well, right? 
You just use that URL generator 

1509
01:33:07,720 --> 01:33:10,920
and then you basically, you 
know, the entire cloud only 

1510
01:33:10,920 --> 01:33:15,560
feature set is available at your
disposal using that SDK about 

1511
01:33:15,720 --> 01:33:18,840
using a package. 
And so the last thing that you 

1512
01:33:18,840 --> 01:33:23,760
do is let me just say, I think 
you just call A .2 URL and it 

1513
01:33:23,760 --> 01:33:26,720
will you know, based on all your
settings and all your, you know,

1514
01:33:26,720 --> 01:33:29,440
parameters and transformations 
and optimizations that you 

1515
01:33:29,640 --> 01:33:32,600
programmatically created. 
The final thing is, you know, 

1516
01:33:33,080 --> 01:33:35,640
generate me the full URL if we 
just give you kind of. 

1517
01:33:36,400 --> 01:33:37,880
Piece everything together that 
you. 

1518
01:33:38,160 --> 01:33:42,280
Yeah, yeah, yeah, yeah. 
So we, we finally got to the the

1519
01:33:42,280 --> 01:33:44,920
part that was the really cool 
part for Cloudenary. 

1520
01:33:44,920 --> 01:33:48,080
So maybe maybe we need to have 
Tamash and maybe we can get Mr. 

1521
01:33:48,080 --> 01:33:51,800
Fayak on as well and bring in 
the whole Cloudenary gang. 

1522
01:33:51,800 --> 01:33:55,120
And maybe at the end of 90 
minutes we could actually have a

1523
01:33:55,120 --> 01:33:58,200
spelt component for Cloudenary 
images. 

1524
01:33:58,200 --> 01:33:59,800
What do you think? 
Yeah, that would be nice. 

1525
01:33:59,800 --> 01:34:02,720
Yeah, we can do that. 
I'll leave you with one more 

1526
01:34:02,720 --> 01:34:06,880
thing because I think I heard 
you mention lazy loading of, of 

1527
01:34:06,880 --> 01:34:10,120
images and this has come up 
quite recently in many 

1528
01:34:10,120 --> 01:34:11,600
discussions that I had with 
people. 

1529
01:34:15,120 --> 01:34:19,400
You know, Core Web Vitals is 
obviously a thing, and it's a 

1530
01:34:19,440 --> 01:34:22,000
big thing these days for 
multiple reasons. 

1531
01:34:22,440 --> 01:34:26,720
And one of the, the, the, the, 
the metrics that they look at is

1532
01:34:26,720 --> 01:34:28,440
the largest content for paint, 
right? 

1533
01:34:28,440 --> 01:34:30,800
And most of the time, the 
largest content for paint or the

1534
01:34:30,800 --> 01:34:33,120
largest element that you load on
your page is going to be an 

1535
01:34:33,120 --> 01:34:37,040
image. 
And So what I'm going to say now

1536
01:34:37,040 --> 01:34:40,320
is, you know it's not going to 
be true for every scenario, but 

1537
01:34:40,880 --> 01:34:46,320
if your largest element on the 
page is an image, do not lazy 

1538
01:34:46,320 --> 01:34:47,440
load that. 
Yep. 

1539
01:34:47,760 --> 01:34:51,360
Agreed, because a lot of people 
say, well, OK, I'm just going to

1540
01:34:51,360 --> 01:34:54,200
lazy load this. 
And then what happens is because

1541
01:34:54,200 --> 01:34:58,440
remember, the browser is going 
to wait for everything to load 

1542
01:34:58,440 --> 01:35:01,440
that's in the view port. 
And then it's going to measure 

1543
01:35:01,440 --> 01:35:04,800
the time, you know, your 
application to, to load whatever

1544
01:35:04,800 --> 01:35:08,640
the largest piece of element is.
And so if that's the image and 

1545
01:35:08,640 --> 01:35:12,320
now you lazy load that image, 
you're just going to shift that 

1546
01:35:12,320 --> 01:35:15,160
LCP score even further out. 
So just just make sure that you 

1547
01:35:15,160 --> 01:35:18,560
know your LCP is not an image. 
If it's an image, then you know,

1548
01:35:18,560 --> 01:35:21,360
optimize it and do all sorts of 
things to it, but do not lazy 

1549
01:35:21,400 --> 01:35:26,640
load it. 
We do what's the progressive, I 

1550
01:35:26,640 --> 01:35:29,920
think is the OR no primary, I 
don't remember. 

1551
01:35:29,920 --> 01:35:33,120
We, we set ours for the top 
image that we show. 

1552
01:35:34,160 --> 01:35:38,000
That's the that's the main focus
for the download. 

1553
01:35:38,040 --> 01:35:43,040
So because it's the LCP, it's 
always our top image almost 

1554
01:35:43,040 --> 01:35:44,560
takes the full fold type of 
thing. 

1555
01:35:44,560 --> 01:35:48,440
So yeah, we have a nice note 
here. 

1556
01:35:48,440 --> 01:35:50,320
Let's do a hackathon. 
I like it. 

1557
01:35:51,280 --> 01:35:54,240
So we kind of do a 90 minute 
hackathon every Friday. 

1558
01:35:55,000 --> 01:35:59,960
Feel free to join us, DM me, DM 
Brittany, we'll hook you up with

1559
01:35:59,960 --> 01:36:04,480
the the stream link directly to 
stream yard and everyone can 

1560
01:36:04,480 --> 01:36:06,480
join and we'll share out the VS 
Code. 

1561
01:36:06,480 --> 01:36:08,680
So. 
We'll have to do like a long 

1562
01:36:08,680 --> 01:36:13,520
day, long like, or like longer 
one sometime like a long day, 

1563
01:36:13,840 --> 01:36:17,200
read a thon. 
Especially with a set focus like

1564
01:36:17,200 --> 01:36:19,560
that where it helps the broader 
community where we're getting 

1565
01:36:19,560 --> 01:36:23,360
kind of like, hey, what's 
greatest felt component for 

1566
01:36:23,560 --> 01:36:28,680
images, just like next JS and 
Gatsby S cool, yeah. 

1567
01:36:28,720 --> 01:36:31,760
That would be nice. 
Well, any last minute thoughts? 

1568
01:36:31,760 --> 01:36:35,040
I think we we, we kind of did 
all of our fun stuff at the 

1569
01:36:35,040 --> 01:36:37,680
beginning this time. 
I think you need to remember to 

1570
01:36:37,680 --> 01:36:41,640
do a git push before we end. 
Yes, I'll do it right now. 

1571
01:36:43,760 --> 01:36:48,360
I, I think I'm I want to ending 
me ending these, even though 

1572
01:36:48,360 --> 01:36:51,640
I'm, you know, coding cat cat 
person. 

1573
01:36:52,040 --> 01:36:54,360
I love basset hounds. 
So I'm going to show off every 

1574
01:36:54,360 --> 01:36:57,720
Friday's Basset Hound. 
Oh nice. 

1575
01:36:58,400 --> 01:37:00,080
So that's that's going to be my 
ending from. 

1576
01:37:00,080 --> 01:37:05,840
Now very cute. 
I think maybe next Friday we can

1577
01:37:05,840 --> 01:37:08,560
work on getting a live site. 
So deploy. 

1578
01:37:09,760 --> 01:37:12,400
Yeah. 
To Netlify next Friday and then 

1579
01:37:12,400 --> 01:37:14,640
have a live site and we can work
on more. 

1580
01:37:15,040 --> 01:37:17,200
Cool. 
Do you want to do that offline 

1581
01:37:17,200 --> 01:37:20,800
and get the on and just show 
them how we did it or just I'm 

1582
01:37:20,800 --> 01:37:22,640
thinking about keys and things 
so. 

1583
01:37:25,520 --> 01:37:29,400
No, because we can use the 
Netlify CLI and import our 

1584
01:37:29,480 --> 01:37:31,160
environment file without showing
it. 

1585
01:37:31,800 --> 01:37:34,040
Awesome. 
Yep, I think we'll do that. 

1586
01:37:35,440 --> 01:37:37,720
Perfect. 
All right, well, let's get two 

1587
01:37:37,720 --> 01:37:40,120
things on the books. 
So next week we'll get the site 

1588
01:37:40,120 --> 01:37:42,600
live on Natlify. 
I don't know why Natlify, I 

1589
01:37:42,600 --> 01:37:46,600
don't know why after them, but 
and then. 

1590
01:37:46,600 --> 01:37:48,400
Maybe someone is a little bit 
biased. 

1591
01:37:49,000 --> 01:37:53,320
I'm a little biased. 
If we if we schedule out a 

1592
01:37:53,320 --> 01:37:56,800
little further, maybe we can get
the cloud nary crew on and we'll

1593
01:37:56,840 --> 01:38:00,160
create a scout component. 
I think I was a little biased 

1594
01:38:00,160 --> 01:38:02,920
before I worked there too though
I've used them for a while. 

1595
01:38:04,000 --> 01:38:05,680
Yeah, I I like the majority of 
them. 

1596
01:38:05,880 --> 01:38:07,840
It's a cool company. 
Cool. 

1597
01:38:08,400 --> 01:38:10,760
All right y'all, thank you so 
much for joining code with 

1598
01:38:10,760 --> 01:38:12,160
Coding Cat. 
We'll see you next time. 

1599
01:38:12,600 --> 01:38:15,480
Thanks for having me take care. 
Ciao.

