1
00:00:00,840 --> 00:00:03,040
Hello everyone. 
Happy Friday. 

2
00:00:03,120 --> 00:00:07,720
We've got the team from AWS 
Amplify with us today. 

3
00:00:08,640 --> 00:00:11,240
Do we just want to do a quick 
like round Robin, kind of do an 

4
00:00:11,240 --> 00:00:13,960
introduction? 
We'll stop start at my top 

5
00:00:13,960 --> 00:00:15,760
right? 
Scott, you want to go first? 

6
00:00:16,360 --> 00:00:18,400
Yeah, sure. 
So I'm Scott. 

7
00:00:18,400 --> 00:00:23,040
I work as a front end engineer 
for the Amplify UI team. 

8
00:00:23,760 --> 00:00:28,000
Some of the things I enjoy doing
would be sailing with my wife 

9
00:00:28,000 --> 00:00:30,920
Mariah and playing with my two 
boys. 

10
00:00:30,920 --> 00:00:32,520
Have a four year old and a 2 
year old. 

11
00:00:32,520 --> 00:00:36,200
Actually 5 year old now. 
He would be mad at me if I said 

12
00:00:36,200 --> 00:00:39,560
4. 
Nice. 

13
00:00:40,880 --> 00:00:42,760
Heather, do you want to go? 
Sure. 

14
00:00:42,920 --> 00:00:45,520
I'm also front engineer at 
Amazon. 

15
00:00:45,520 --> 00:00:48,160
My name is Heather. 
I work on Scott's team at 

16
00:00:48,160 --> 00:00:52,400
Amplify UI. 
I focus on UI accessibility. 

17
00:00:52,400 --> 00:00:55,640
When I'm not doing that, I'm 
probably walking my dog around 

18
00:00:55,640 --> 00:00:59,080
Brooklyn playing video games. 
That's me. 

19
00:00:59,880 --> 00:01:01,160
What kind of a dog I have to 
ask? 

20
00:01:01,600 --> 00:01:04,040
It's just a little Pitbull mix. 
Nice. 

21
00:01:04,440 --> 00:01:10,080
Very cool, Eric. 
Hello, hi, I, I'm also on the 

22
00:01:10,080 --> 00:01:14,120
same team as, as these two guys.
So work on in the front end. 

23
00:01:14,680 --> 00:01:18,640
I'm, I do a lot of stuff on the 
authenticator and 

24
00:01:18,640 --> 00:01:20,800
authentication, you know, on our
team. 

25
00:01:21,560 --> 00:01:24,320
And I'm just a big fan of 
learning and teaching. 

26
00:01:24,320 --> 00:01:27,680
I also have a YouTube channel 
which you can check out a 

27
00:01:27,680 --> 00:01:30,800
program with Eric. 
And yeah, it's fun, fun to be on

28
00:01:30,800 --> 00:01:34,000
here and talk about Amplify. 
I have to know is there like a 

29
00:01:34,000 --> 00:01:38,120
name behind your name plate with
the the silver YouTube up there?

30
00:01:38,320 --> 00:01:41,640
Yeah, that that's the program 
with Eric YouTube channel, so. 

31
00:01:42,160 --> 00:01:44,000
It's awesome. 
That's really cool. 

32
00:01:44,200 --> 00:01:47,560
I always forget the the colors. 
Was that 100,000? 

33
00:01:47,840 --> 00:01:51,120
Yeah, that's 100,000. 
Congratulations, it's a lot of 

34
00:01:51,120 --> 00:01:53,240
work to get to. 
Yeah, no kidding. 

35
00:01:54,280 --> 00:01:57,160
Very cool. 
Well, I think what we're going 

36
00:01:57,160 --> 00:02:00,720
to talk about today is all of 
the Amplify UI things that are 

37
00:02:00,720 --> 00:02:03,960
happening right now. 
There was a big release that 

38
00:02:03,960 --> 00:02:05,800
came up. 
Scott, you're, you're going to 

39
00:02:05,800 --> 00:02:07,240
talk a little bit about that 
today. 

40
00:02:08,199 --> 00:02:10,680
Yeah. 
So we recently released the 

41
00:02:10,720 --> 00:02:16,840
Amplify UI component library, 
which is a bunch of different 

42
00:02:17,400 --> 00:02:23,560
React primitives as well as we 
also have connected components. 

43
00:02:23,560 --> 00:02:27,720
But the the big release was 
making generally available all 

44
00:02:27,720 --> 00:02:32,400
of the primitive components. 
Nice, is was that considered a 

45
00:02:32,400 --> 00:02:34,280
one O release or is that more 
than that? 

46
00:02:35,840 --> 00:02:40,320
I think well we had previous. 
The package also contains the 

47
00:02:40,320 --> 00:02:43,440
authenticators, so I think we're
currently at 3.0. 

48
00:02:43,880 --> 00:02:47,800
There was the previous version 
of the authenticator which our 

49
00:02:47,800 --> 00:02:51,760
primitives are exported out of, 
but it was a major release. 

50
00:02:52,320 --> 00:02:53,400
Nice. 
Very cool. 

51
00:02:54,440 --> 00:02:57,160
Do you want to dive in and kind 
of show us more of that? 

52
00:02:57,840 --> 00:03:01,240
Yeah, absolutely. 
So just to kind of give you a 

53
00:03:01,240 --> 00:03:04,400
little bit of background and 
just in case people don't know 

54
00:03:04,400 --> 00:03:08,440
what Amplify is, I just want to 
briefly talk about what Amplify 

55
00:03:08,440 --> 00:03:11,360
is and then we'll dig into kind 
of the UI side of things. 

56
00:03:11,360 --> 00:03:13,040
That's probably a good, great 
place to start. 

57
00:03:13,880 --> 00:03:17,840
Yeah, yeah. 
So Amplify is a set of front end

58
00:03:17,840 --> 00:03:23,680
tools for or a set of tools that
allows front end web and mobile 

59
00:03:23,680 --> 00:03:28,640
developers to quickly spin up 
and build full stack 

60
00:03:28,640 --> 00:03:32,960
applications on AWS. 
So some of these tools people 

61
00:03:32,960 --> 00:03:36,720
may be familiar with. 
There's Amplify Studio, which 

62
00:03:36,720 --> 00:03:39,640
allows you to visually build a 
full stack app. 

63
00:03:39,960 --> 00:03:44,160
Amplify CLI allows you to spin 
up back end environments from 

64
00:03:44,160 --> 00:03:47,000
your terminal. 
There's an Amplify hosting 

65
00:03:47,000 --> 00:03:51,920
service that you can host static
websites, and then there's a 

66
00:03:51,920 --> 00:03:55,880
number of other like libraries 
that allow you to connect to 

67
00:03:56,160 --> 00:04:00,520
different AWS services. 
So where we fit in that, like 

68
00:04:00,520 --> 00:04:06,000
what is Amplify UI? 
So again, it's AUI component 

69
00:04:06,000 --> 00:04:12,840
library that brings that 
simplicity of AWS Amplify to UI 

70
00:04:12,840 --> 00:04:16,839
development. 
So some of the reasons you might

71
00:04:16,839 --> 00:04:22,240
want to use Amplify UI, we offer
a bunch of different connected 

72
00:04:22,240 --> 00:04:25,600
components. 
So the authenticator, which 

73
00:04:25,600 --> 00:04:30,840
we'll be looking at a little bit
later with Eric is an example of

74
00:04:30,840 --> 00:04:33,400
that. 
But the point of our cloud 

75
00:04:33,400 --> 00:04:38,520
connected components is to 
simplify really complex 

76
00:04:38,520 --> 00:04:43,840
workflows like authentication, 
connecting to like data stores, 

77
00:04:44,080 --> 00:04:46,400
things like sync, things of that
nature. 

78
00:04:47,520 --> 00:04:51,920
Another reason that you probably
want to check out the Amplify UI

79
00:04:52,000 --> 00:04:56,560
components is because we built 
them to be very customizable and

80
00:04:56,560 --> 00:05:00,200
themeable. 
We kind of see this library is 

81
00:05:00,200 --> 00:05:05,080
sitting in the middle of like 
the spectrum of UI libraries 

82
00:05:05,080 --> 00:05:07,920
that are available. 
So on one hand, you have kind of

83
00:05:07,920 --> 00:05:12,800
headless UI frameworks like 
Radix and Headless UI, which 

84
00:05:12,800 --> 00:05:15,640
really provide like 
functionality, but they don't 

85
00:05:15,640 --> 00:05:18,160
provide any styling. 
Like you're supposed to bring 

86
00:05:18,160 --> 00:05:20,920
your own styling. 
On the other side of the 

87
00:05:20,920 --> 00:05:25,040
spectrum is something like MUI, 
which is sort of batteries 

88
00:05:25,040 --> 00:05:28,600
included. 
The styling's already there. 

89
00:05:28,840 --> 00:05:32,880
Like there's some customization,
but it's like sometimes 

90
00:05:32,880 --> 00:05:36,320
difficult to like really get it 
customized maybe the way you 

91
00:05:36,320 --> 00:05:39,920
want. 
So we're kind of in the middle 

92
00:05:39,920 --> 00:05:47,760
because we allow you to like the
CSS is imported separately and 

93
00:05:47,760 --> 00:05:50,800
it's just CSS we're not using 
like a motion or something. 

94
00:05:50,800 --> 00:05:54,920
So you can just leave the CSS 
out if you wanted to. 

95
00:05:54,920 --> 00:05:59,520
And you could completely restyle
the authenticator or any of our 

96
00:05:59,520 --> 00:06:02,880
components yourself while 
keeping all of that 

97
00:06:02,880 --> 00:06:07,200
functionality that's available 
with the components. 

98
00:06:08,800 --> 00:06:11,040
Or you can use our default 
theme. 

99
00:06:11,040 --> 00:06:13,760
So we have a default theme, so 
they're already styled 

100
00:06:13,760 --> 00:06:17,840
out-of-the-box. 
And then you can go and use one 

101
00:06:17,840 --> 00:06:24,280
of our theming APIs or just CSS 
to change the theme to to what 

102
00:06:24,280 --> 00:06:27,360
you want it to look like. 
So that's kind of why we see it 

103
00:06:27,360 --> 00:06:32,760
sitting in the middle and kind 
of covering quite a broad range 

104
00:06:32,760 --> 00:06:37,240
of use cases. 
I think in in the past there was

105
00:06:37,240 --> 00:06:40,080
there was always like Amplify UI
components that covered like 

106
00:06:40,080 --> 00:06:43,520
Angular and view and React 
Native and all of those is is 

107
00:06:43,520 --> 00:06:46,960
this like a subset of that or is
this kind of the next version 

108
00:06:46,960 --> 00:06:49,200
that you guys are going with? 
Yeah. 

109
00:06:49,200 --> 00:06:53,520
So in the past, I think we had 
an authenticator and we had a 

110
00:06:53,520 --> 00:06:56,120
number of different like 
connected components. 

111
00:06:56,360 --> 00:06:59,120
There are a few legacy 
components that we still have 

112
00:06:59,120 --> 00:07:03,520
that like connect to S3 and and 
images that we're working on 

113
00:07:03,520 --> 00:07:08,000
actually rebuilding 'cause there
are some limitations with them. 

114
00:07:09,360 --> 00:07:14,280
The authenticator I believe was 
available for view and Angular 

115
00:07:14,280 --> 00:07:16,160
in the past. 
Isn't that correct, Eric? 

116
00:07:17,520 --> 00:07:18,880
Yep. 
Yes, it was. 

117
00:07:18,880 --> 00:07:20,480
Yeah, we supported those in 
that. 

118
00:07:21,520 --> 00:07:24,000
Yeah. 
So this is a the the 

119
00:07:24,000 --> 00:07:28,560
authenticator was a rebuild 
cause of some of the styling 

120
00:07:28,560 --> 00:07:32,320
problems that customers had with
the previous version where it 

121
00:07:32,320 --> 00:07:35,240
was hard to customize the 
styling. 

122
00:07:35,480 --> 00:07:40,120
We were using stencil and there 
was the shadow Dom was like 

123
00:07:40,120 --> 00:07:44,440
making it hard to like customize
the styling of the buttons and 

124
00:07:44,440 --> 00:07:47,760
things. 
And so we rebuilt it to be very 

125
00:07:47,760 --> 00:07:52,760
customizable and very themeable.
So that was kind of the major 

126
00:07:52,760 --> 00:07:56,280
change with the authenticator. 
But then while we were building 

127
00:07:56,280 --> 00:07:58,720
the authenticator, we thought, 
well, we should build these 

128
00:07:58,720 --> 00:08:01,960
primitive components or like 
these smaller pieces. 

129
00:08:02,600 --> 00:08:06,000
And so we built out a bunch of 
those. 

130
00:08:07,800 --> 00:08:11,360
But like as you're saying, like 
one of the goals actually when 

131
00:08:11,360 --> 00:08:14,800
we were building these 
components is just to make them 

132
00:08:14,800 --> 00:08:17,680
be multi framework, multi 
platform. 

133
00:08:17,680 --> 00:08:22,240
So the authenticator, the new 
version of the authenticator is 

134
00:08:22,240 --> 00:08:24,880
available in React View and 
Angular. 

135
00:08:25,120 --> 00:08:28,440
We also have a Flutter 
authenticator and we have plans 

136
00:08:28,440 --> 00:08:32,600
to have more authenticator 
connected components in other 

137
00:08:32,600 --> 00:08:36,120
platforms. 
The UI primitives, which are 

138
00:08:36,600 --> 00:08:41,559
kind of the smaller pieces, are 
available in React currently, 

139
00:08:41,559 --> 00:08:45,200
but we're also planning on 
adding more frameworks and 

140
00:08:45,200 --> 00:08:47,200
platforms in the future. 
Nice. 

141
00:08:48,040 --> 00:08:51,040
Very cool. 
Did you want to show off a 

142
00:08:51,040 --> 00:08:53,240
little bit of kind of cool? 
Yeah. 

143
00:08:53,440 --> 00:08:56,920
Share your screen. 
Yeah. 

144
00:08:56,920 --> 00:08:59,240
So this way or this way is 
better, I never know. 

145
00:09:01,240 --> 00:09:04,600
Yeah, No, I think it, I think 
it's good to show off the UI doc

146
00:09:04,600 --> 00:09:07,640
site. 
We worked really hard on it to 

147
00:09:07,640 --> 00:09:11,640
make it show off. 
It's obviously built entirely 

148
00:09:11,640 --> 00:09:17,040
with Amplify UI components and 
so we're pretty proud of it. 

149
00:09:17,640 --> 00:09:20,760
But you know, these are a couple
of the points that I that I 

150
00:09:20,760 --> 00:09:26,480
talked about like the styling 
is, is very flexible. 

151
00:09:27,240 --> 00:09:31,040
We're not like locking you into 
a particular CSS and JS library.

152
00:09:31,040 --> 00:09:34,880
If you want to bring your own 
CSS and JS library, that's fine,

153
00:09:34,880 --> 00:09:37,840
but we don't like make you use a
particular one. 

154
00:09:38,080 --> 00:09:41,080
We have the cloud connected 
components and then we also have

155
00:09:41,840 --> 00:09:44,920
like pretty good integration 
with Amplify Studio. 

156
00:09:45,560 --> 00:09:49,120
But I did want to talk a little 
bit about more about like what 

157
00:09:49,120 --> 00:09:52,960
the primitive components are. 
So like that would be something 

158
00:09:52,960 --> 00:09:57,400
like a card, an image. 
I'll actually come down here 

159
00:09:57,400 --> 00:09:59,600
where there's like once you can 
click on. 

160
00:10:00,240 --> 00:10:02,480
So here you got like a, a 
switch. 

161
00:10:02,480 --> 00:10:10,160
We've got pagination, you know, 
buttons, search all, all 40 

162
00:10:10,160 --> 00:10:14,800
different components like that. 
But kind of as I was talking 

163
00:10:14,800 --> 00:10:17,760
about a little bit like this, 
the the approach that we took to

164
00:10:17,760 --> 00:10:25,480
the first styling for the web 
frameworks was to use plain CSS 

165
00:10:25,480 --> 00:10:30,160
and also make them themeable via
CSS variables. 

166
00:10:30,160 --> 00:10:35,480
So the entire default theme 
comes with CSS variables that 

167
00:10:35,480 --> 00:10:38,280
you can just target directly in 
your CSS. 

168
00:10:39,640 --> 00:10:42,400
But some people don't want to do
it that way and and sometimes 

169
00:10:42,400 --> 00:10:48,480
it's a little easier to target, 
you know, the having like a more

170
00:10:48,480 --> 00:10:51,920
styling API that's in your 
React. 

171
00:10:52,480 --> 00:10:55,360
So for that we offer the style 
props. 

172
00:10:56,320 --> 00:10:59,760
So you can see here we've got 
like a style prop for direction,

173
00:11:00,480 --> 00:11:05,480
you know, font size large, large
being one of our size design 

174
00:11:05,480 --> 00:11:07,720
tokens that you can also 
customize. 

175
00:11:08,360 --> 00:11:13,560
But then you get kind of that 
Intellisense in your in your 

176
00:11:13,560 --> 00:11:16,880
editor. 
So that's a little bit about the

177
00:11:16,920 --> 00:11:20,400
the primitives and kind of some 
of the styling APIs that are 

178
00:11:20,400 --> 00:11:22,840
available. 
I'll be demoing that a little 

179
00:11:22,840 --> 00:11:28,520
bit more in a in a minute, but 
let's talk a little bit more 

180
00:11:28,520 --> 00:11:32,000
about the connected components 
before we kind of dig into some 

181
00:11:32,000 --> 00:11:35,080
code. 
So this is the authenticator. 

182
00:11:36,560 --> 00:11:39,720
The authenticator, as we kind of
talked about, is this connect 

183
00:11:39,720 --> 00:11:44,640
cloud connected component. 
And the real big benefit to it 

184
00:11:44,640 --> 00:11:48,720
is you can just drop it into 
your application and get all 

185
00:11:48,720 --> 00:11:53,120
these complicated authentication
workflows that, you know, as 

186
00:11:53,120 --> 00:11:56,480
developers, we may have 
implemented these many times in 

187
00:11:56,480 --> 00:11:58,560
the past and they're like a pain
in the neck. 

188
00:11:58,560 --> 00:12:03,080
And there's always like some 
edge case that you miss or you 

189
00:12:03,080 --> 00:12:07,120
really just have to spend a ton 
of time like going through all 

190
00:12:07,120 --> 00:12:09,320
of them. 
So you can drop this in. 

191
00:12:09,320 --> 00:12:14,360
You now have, you know, with 
minimal configuration, you can 

192
00:12:14,360 --> 00:12:18,320
have a sign in workflow, create 
account workflow, you know, 

193
00:12:18,320 --> 00:12:22,320
forgot your password, all the 
things that you would expect. 

194
00:12:23,280 --> 00:12:26,080
And then you can also dig into 
more advanced features like 

195
00:12:26,080 --> 00:12:30,440
multi factor auth or sign in 
with Facebook or sign in with 

196
00:12:30,440 --> 00:12:32,960
Google. 
All the like Federated sign in 

197
00:12:33,120 --> 00:12:38,520
stuff is also supported. 
So this gives you a way to get 

198
00:12:38,520 --> 00:12:41,720
something going quickly, but 
then you have that full 

199
00:12:41,720 --> 00:12:47,360
customization when you're ready 
to like make it more complicated

200
00:12:47,360 --> 00:12:49,160
from a functionality 
perspective. 

201
00:12:49,520 --> 00:12:52,720
But also the other thing that 
I'm sure all of us developers 

202
00:12:52,720 --> 00:12:58,480
have run into is like, if OK, 
this is great, but this doesn't 

203
00:12:58,480 --> 00:13:02,000
match my brand, right? 
Like that's a common problem as 

204
00:13:02,000 --> 00:13:04,080
a developer. 
I've run into that many times in

205
00:13:04,080 --> 00:13:07,160
the past. 
This is fully themeable. 

206
00:13:07,200 --> 00:13:11,280
Like like I said before, like 
don't include the CSS and then 

207
00:13:11,800 --> 00:13:15,280
you could completely restyle it 
if you're if you want to go that

208
00:13:15,280 --> 00:13:18,120
extreme. 
Or you can use the default theme

209
00:13:18,120 --> 00:13:22,360
and like change the brand 
colors, change the sizes, the 

210
00:13:22,360 --> 00:13:26,800
spacing, all of those things are
customizable to get the look and

211
00:13:26,800 --> 00:13:29,480
feel that you want for the 
authenticator. 

212
00:13:29,800 --> 00:13:33,520
As as far as the authentication 
goes, typically you're on like 

213
00:13:33,520 --> 00:13:37,840
the Amplify CLI and and creating
that kind of package for lack of

214
00:13:37,840 --> 00:13:39,720
a better term. 
And cloud formation does its 

215
00:13:39,720 --> 00:13:41,360
thing and sets up 
authentication. 

216
00:13:41,680 --> 00:13:45,600
Is that the typical flow that a 
person running Amplify will 

217
00:13:45,600 --> 00:13:49,040
usually do that and then kind of
take these UI components and 

218
00:13:49,040 --> 00:13:51,440
start adding them on, especially
authenticator? 

219
00:13:52,520 --> 00:13:55,040
Yeah, especially for the 
authenticator. 

220
00:13:55,240 --> 00:13:58,600
The primitive components can be 
used all by themselves. 

221
00:13:58,600 --> 00:14:01,440
You wouldn't even have to like 
touch the CLI. 

222
00:14:01,440 --> 00:14:04,000
They're they're agnostic 
basically. 

223
00:14:05,320 --> 00:14:08,640
But yeah, for the authenticator,
you would run the CLI command. 

224
00:14:08,840 --> 00:14:10,960
You could also do it from 
Amplify Studio. 

225
00:14:10,960 --> 00:14:13,320
If you don't want to use the 
CLI, you could configure it 

226
00:14:13,320 --> 00:14:18,240
there. 
But yeah, it's it you would use 

227
00:14:18,240 --> 00:14:25,400
the Amplify to actually set up 
the like off back end using it'd

228
00:14:25,400 --> 00:14:29,240
be using Amazon Cognito. 
And and we have heard of some 

229
00:14:29,240 --> 00:14:33,600
people using CDK, so you could 
even use the CDK to scaffold the

230
00:14:33,600 --> 00:14:37,040
back end and then use that with 
the amplify. 

231
00:14:38,000 --> 00:14:41,040
Yeah, I was doing a lot with 
Palumi for a little while, kind 

232
00:14:41,040 --> 00:14:43,720
of tapping into it and then 
adding CDK on top of it. 

233
00:14:43,720 --> 00:14:46,600
So it was, it was really nice 
flow to like get into and it'd 

234
00:14:46,600 --> 00:14:50,440
be cool to, I know I was using 
like the legacy, if you call it 

235
00:14:50,440 --> 00:14:53,960
that UI component for 
authentication and it worked 

236
00:14:53,960 --> 00:14:56,720
really well. 
So I'm excited to to check this 

237
00:14:56,720 --> 00:15:01,000
new one out. 
Awesome, nice, cool. 

238
00:15:02,080 --> 00:15:04,840
Sorry I interrupted you. 
You're going into like the 

239
00:15:04,840 --> 00:15:07,240
theming side, right? 
Yeah, yeah. 

240
00:15:07,240 --> 00:15:10,720
So I thought, so we kind of 
talked about the connected 

241
00:15:10,720 --> 00:15:13,640
component, particularly the 
authenticator. 

242
00:15:14,160 --> 00:15:19,080
I thought I'd just walk through 
like briefly just kind of show 

243
00:15:19,160 --> 00:15:21,360
some of the components that are 
available. 

244
00:15:22,760 --> 00:15:27,160
So you have like someones you 
would expect like a heading text

245
00:15:27,880 --> 00:15:29,800
divider. 
Like the reason that you would 

246
00:15:29,800 --> 00:15:33,840
have a text primitive is because
we Add all those styling APIs 

247
00:15:33,840 --> 00:15:35,920
that you can use right on the 
component. 

248
00:15:37,320 --> 00:15:40,560
Same with heading, just kind of 
makes it a little bit simpler. 

249
00:15:41,240 --> 00:15:44,680
We have feedback components like
a loader, you know, alert 

250
00:15:46,400 --> 00:15:53,680
navigation, so links and tabs, a
full set of input components for

251
00:15:54,080 --> 00:15:56,520
having a building forms and 
such. 

252
00:15:57,520 --> 00:15:59,440
And then there's layout 
components. 

253
00:15:59,440 --> 00:16:04,320
So we have one that uses a a 
flex component that you can use 

254
00:16:04,320 --> 00:16:08,720
to lay out using flexbox and 
grid and collections, which is 

255
00:16:08,720 --> 00:16:12,080
actually kind of like a list. 
It just, and we'll see that one 

256
00:16:12,080 --> 00:16:14,640
a little bit later with 
Heather's demo. 

257
00:16:16,200 --> 00:16:19,920
And then there's, you know, data
display and and kind of utility 

258
00:16:19,920 --> 00:16:23,240
components. 
So that's enough just talking 

259
00:16:23,240 --> 00:16:26,120
about what you can see on the 
dock site. 

260
00:16:26,120 --> 00:16:30,440
How about we dig into some 
actual code so that everyone 

261
00:16:30,440 --> 00:16:35,680
doesn't fall asleep on me 'cause
everyone likes to see code. 

262
00:16:36,000 --> 00:16:40,280
You should be able to. 
OK, yeah, so so let's I'll just 

263
00:16:40,440 --> 00:16:43,960
copy over my starting app. 
Here real quick. 

264
00:16:45,600 --> 00:16:51,640
So I've kind of gone ahead and 
set up like a basic create React

265
00:16:51,640 --> 00:16:54,960
app. 
It's using TypeScript because I 

266
00:16:54,960 --> 00:16:58,320
want to show off a a few 
features that you get if you 

267
00:16:58,320 --> 00:17:04,280
have the types on the theme. 
But you know, everyone's 

268
00:17:04,280 --> 00:17:06,800
familiar with setting up create 
React app. 

269
00:17:06,800 --> 00:17:11,640
And if you're not, then we have 
a create react app guide on the 

270
00:17:11,640 --> 00:17:13,880
website that kind of walks you 
through that. 

271
00:17:15,200 --> 00:17:21,800
So we have this create React app
it's and I, I think one of the 

272
00:17:21,800 --> 00:17:25,079
common scenarios that developers
have and we kind of mentioned 

273
00:17:25,079 --> 00:17:29,960
this before, is I have some 
brand colors that I want to use.

274
00:17:30,720 --> 00:17:35,040
And so we're going to build a 
little newsletter component for 

275
00:17:35,040 --> 00:17:40,520
the perfect dev podcast here. 
So we need to like pull some of 

276
00:17:40,520 --> 00:17:43,040
those brand colors in. 
I'm not gonna use the exact 

277
00:17:43,040 --> 00:17:45,840
ones, but I've seen pink used 
quite a bit. 

278
00:17:46,280 --> 00:17:49,440
So we're gonna use that for some
of the buttons and some of the 

279
00:17:49,440 --> 00:17:51,680
text. 
It's funny 'cause I can always 

280
00:17:51,680 --> 00:17:55,480
say 5 E 1286 is our purple, but 
I can never remember our pink 

281
00:17:55,480 --> 00:17:59,840
so. 
OK, well, I was gonna quiz you 

282
00:17:59,880 --> 00:18:03,360
on that, but since you don't 
have that one memorized, we'll 

283
00:18:03,360 --> 00:18:05,320
have to use the design tokens 
for people. 

284
00:18:07,880 --> 00:18:09,560
Great. 
So the first thing that you 

285
00:18:09,560 --> 00:18:12,520
would do, I already have it 
installed, but let's just run it

286
00:18:12,520 --> 00:18:15,440
anyway. 
So you can kind of see the first

287
00:18:15,640 --> 00:18:20,720
thing that you would do would be
add AWS Amplify UI React and the

288
00:18:21,480 --> 00:18:24,760
AWS Amplify peer dependency. 
That's for like the JavaScript 

289
00:18:24,760 --> 00:18:27,680
libraries that we use under the 
covers. 

290
00:18:28,160 --> 00:18:31,840
So let's just run that. 
That's going to add those two 

291
00:18:31,840 --> 00:18:34,520
dependencies there. 
So if we were pop open the 

292
00:18:34,520 --> 00:18:40,240
package, Jason, you'll see we 
now have UI React version 3.4. 

293
00:18:40,480 --> 00:18:43,680
And then we've also got AWS 
amplified down here. 

294
00:18:45,400 --> 00:18:48,160
Great. 
So now I can uncomment these two

295
00:18:48,160 --> 00:18:51,320
lines because I had them 
commented out because they throw

296
00:18:51,320 --> 00:18:54,440
errors. 
A couple of things we're doing 

297
00:18:54,440 --> 00:18:57,080
here. 
The main one here is we're 

298
00:18:57,080 --> 00:19:00,520
importing the styles. 
This is giving us all the 

299
00:19:00,520 --> 00:19:05,080
styling the for the default 
theme, and that will give us all

300
00:19:05,080 --> 00:19:09,760
the CSS variables as well, and 
we'll look at how to use those a

301
00:19:10,360 --> 00:19:13,600
little bit later. 
So you can see nothing's really 

302
00:19:13,600 --> 00:19:15,920
changed yet. 
We're not using any components 

303
00:19:15,920 --> 00:19:18,560
yet, but we do have the styling 
available to us. 

304
00:19:18,800 --> 00:19:21,680
So the first thing I'm going to 
do is just add a view. 

305
00:19:23,200 --> 00:19:26,880
A view is really just a 
division, but it adds some of 

306
00:19:26,880 --> 00:19:32,480
those theming APIs on top of it.
So if I save that, not really 

307
00:19:32,480 --> 00:19:36,320
much is going to change, but 
we've now got a division around 

308
00:19:36,320 --> 00:19:38,640
that. 
The next thing I'm going to do, 

309
00:19:38,640 --> 00:19:42,000
since we're building a 
newsletter component, is I'm 

310
00:19:42,000 --> 00:19:45,520
going to just add a heading so 
that people know, hey, this is 

311
00:19:45,520 --> 00:19:47,320
for signing up for the 
newsletter. 

312
00:19:48,440 --> 00:19:51,560
I'll save that. 
And I guess if I don't run my 

313
00:19:51,640 --> 00:19:56,760
dev server, let's see, run 
start. 

314
00:19:59,840 --> 00:20:04,160
OK, there we go. 
All right, so now we've got a 

315
00:20:04,160 --> 00:20:09,280
newsletter heading here. 
The default I believe is is a 

316
00:20:09,280 --> 00:20:11,440
level 6. 
So it's an H6 right now. 

317
00:20:11,720 --> 00:20:15,920
I happen to know that this is 
going to be a four on the app 

318
00:20:15,920 --> 00:20:19,160
that I'm using. 
If I were, you know, I would 

319
00:20:19,160 --> 00:20:21,640
probably re factor this out so 
that I could pass the level in. 

320
00:20:21,640 --> 00:20:24,560
But for now, we're just going to
use level 4 so you can see it 

321
00:20:24,560 --> 00:20:27,440
got a little bit bigger. 
So let's look at some of those 

322
00:20:27,440 --> 00:20:30,320
styling props that I was talking
about before. 

323
00:20:30,640 --> 00:20:35,160
So I want to match the the brand
colors here. 

324
00:20:35,720 --> 00:20:40,600
So I'm going to use the color 
style prop and then I'm going to

325
00:20:40,600 --> 00:20:43,480
just start typing pink and 
you'll see you're already 

326
00:20:43,480 --> 00:20:46,480
getting autocomplete. 
That's because our style props 

327
00:20:46,480 --> 00:20:53,480
are aware of all of our design 
tokens that are in the default 

328
00:20:53,480 --> 00:20:56,000
theme. 
So we have a set of colors. 

329
00:20:56,000 --> 00:20:58,640
I think Heather's gonna talk 
about them a little bit more, 

330
00:20:59,200 --> 00:21:01,200
but we've got a different number
of different pinks. 

331
00:21:01,200 --> 00:21:03,160
I'm just gonna pick pink 80 
here. 

332
00:21:03,760 --> 00:21:05,440
So we saved that and now we've 
got some color. 

333
00:21:05,680 --> 00:21:07,720
So we're starting to make some 
progress here. 

334
00:21:08,880 --> 00:21:12,400
The next thing I'm gonna do is 
add like a text, a text 

335
00:21:12,400 --> 00:21:19,160
component, and then just gonna 
copy and subscribe for all the 

336
00:21:19,160 --> 00:21:22,680
latest updates. 
And this is basically just AP 

337
00:21:22,680 --> 00:21:26,120
tag, as I mentioned before, but 
it does have all those styling 

338
00:21:26,120 --> 00:21:32,280
props available to it. 
So we have Intellisense here. 

339
00:21:32,280 --> 00:21:34,840
It's going to give us a lot of 
the HTML things first. 

340
00:21:34,840 --> 00:21:38,840
So I'm just going to change, I'm
going to change the font style 

341
00:21:38,840 --> 00:21:42,680
here and I'm going to make that 
italic. 

342
00:21:44,240 --> 00:21:47,560
All right, So we're making a 
little progress here, but 

343
00:21:47,560 --> 00:21:51,320
obviously a form's not all that 
interesting if you don't have. 

344
00:21:53,480 --> 00:21:56,160
Well, actually I'll, I'll back, 
I'll back up just a minute. 

345
00:21:56,360 --> 00:21:59,320
So it's bothering me that it's 
like way over to the left. 

346
00:21:59,320 --> 00:22:01,880
So I'm just gonna wrap the whole
thing in a view. 

347
00:22:06,520 --> 00:22:09,240
Put that down here. 
Thank you, Prettier. 

348
00:22:10,000 --> 00:22:14,760
And now we have centered 
newsletter component that's just

349
00:22:14,960 --> 00:22:18,000
'cause it was bothering me, but 
it's also so we can talk about a

350
00:22:18,000 --> 00:22:22,200
few things on the view. 
So we've got a margin top of 

351
00:22:22,200 --> 00:22:24,720
large. 
Large is again one of our design

352
00:22:24,720 --> 00:22:28,160
tokens that you can use. 
It's also customizable at the 

353
00:22:28,160 --> 00:22:30,200
theme level. 
So if you wanted large to be 

354
00:22:30,200 --> 00:22:34,280
enormous, it could be or you can
adjust all those things. 

355
00:22:35,000 --> 00:22:37,920
We've got a margin in line. 
Oh, sorry, were you gonna say? 

356
00:22:37,920 --> 00:22:40,920
Something I was just gonna ask 
if large is dependent on like 

357
00:22:40,920 --> 00:22:42,800
device size or like window 
width. 

358
00:22:42,800 --> 00:22:45,160
So it goes from like whatever 8 
R.E.M. 

359
00:22:45,320 --> 00:22:48,560
M to like two once you're on 
mobile or something like that. 

360
00:22:49,680 --> 00:22:54,000
It's not, but that does kind of 
give me a chance to talk about 

361
00:22:54,000 --> 00:22:57,160
the responsive style props 
because you could also do that. 

362
00:22:57,160 --> 00:23:03,160
So what we could do is say we 
want it to be large when it's at

363
00:23:03,160 --> 00:23:07,640
the base, like gotcha. 
At like at the base break point,

364
00:23:07,640 --> 00:23:09,760
which is kind of the small, the 
smaller break point. 

365
00:23:09,960 --> 00:23:16,280
And then say maybe when you hit 
medium, you want it to be extra 

366
00:23:16,280 --> 00:23:17,960
large. 
I think it's just XL. 

367
00:23:17,960 --> 00:23:20,720
Is that right, Heather? 
Yeah, that's right. 

368
00:23:22,080 --> 00:23:23,840
So it should get a little bit 
bigger. 

369
00:23:23,840 --> 00:23:28,120
You can see it bumps down once 
it hits that medium break point.

370
00:23:30,760 --> 00:23:35,880
So, and I think you actually you
could change the spacing using 

371
00:23:35,880 --> 00:23:40,160
our in the theme provider in in 
the theme object using 

372
00:23:40,160 --> 00:23:42,920
overrides. 
You could use a media query in 

373
00:23:42,920 --> 00:23:45,360
there and then actually change 
those design tokens. 

374
00:23:45,520 --> 00:23:49,440
So actually that is possible. 
They're not that way by default.

375
00:23:53,880 --> 00:23:59,200
OK, so let's go ahead and add 
some a text field and a button 

376
00:23:59,200 --> 00:24:03,640
in here. 
So I'm going to start by adding 

377
00:24:03,640 --> 00:24:09,240
a flex here and then I'm going 
to change the direction to 

378
00:24:09,240 --> 00:24:14,560
column so that it's stacked and 
then I'm going to add in the 

379
00:24:14,560 --> 00:24:20,320
text field. 
So the way that we built the the

380
00:24:20,320 --> 00:24:24,000
form components is we tried to 
take an approach where they're 

381
00:24:24,000 --> 00:24:30,240
accessible by default. 
So rather than having to attach 

382
00:24:30,240 --> 00:24:34,880
a label to a input and like do 
it that always remember that you

383
00:24:34,880 --> 00:24:38,520
have to put four on the label 
and you put the ID on the input.

384
00:24:38,520 --> 00:24:41,360
And sometimes you get them 
confused and it doesn't quite 

385
00:24:41,360 --> 00:24:43,720
work right. 
We thought, hey, why don't we 

386
00:24:43,720 --> 00:24:45,560
just make that a little bit 
easier? 

387
00:24:46,600 --> 00:24:48,960
Why is it saying that? 
I think I didn't import this. 

388
00:24:49,440 --> 00:24:51,760
Oh yeah, OK, actually that's 
another thing. 

389
00:24:51,760 --> 00:24:56,240
So, so I actually put the ID of 
of e-mail on here, but it's it's

390
00:24:56,240 --> 00:24:59,640
a little bit mad at me and we'll
just look at why it's saying 

391
00:24:59,640 --> 00:25:01,440
that the property label is 
missing. 

392
00:25:01,440 --> 00:25:06,120
So label is a required field. 
And the reason for that is 

393
00:25:06,120 --> 00:25:09,200
because if you don't have label 
text, then we can't really put 

394
00:25:09,200 --> 00:25:12,160
anything in the label. 
So let's add a label here of 

395
00:25:12,160 --> 00:25:15,240
e-mail and let's go ahead and 
save that. 

396
00:25:15,600 --> 00:25:20,360
So now you can see we've got 
text field showing on the page. 

397
00:25:20,360 --> 00:25:23,320
If I click on the e-mail, you 
can see it's actually connected 

398
00:25:23,320 --> 00:25:26,000
to the input field. 
So it's already been wired up. 

399
00:25:26,360 --> 00:25:31,120
If you don't put an ID on here, 
we still will wire it up. 

400
00:25:31,120 --> 00:25:34,600
We'll just generate the ID for 
you that way. 

401
00:25:34,920 --> 00:25:38,400
If if for some reason you don't 
have it on there, then then it's

402
00:25:38,400 --> 00:25:45,240
still going to be accessible. 
So next let's put a button on 

403
00:25:45,240 --> 00:25:47,880
here because we need people to 
actually be able to sign up. 

404
00:25:48,320 --> 00:25:50,320
So I'm going to say sign up on 
there. 

405
00:25:50,600 --> 00:25:54,440
And then I'm going to make this 
a have a variation of primary 

406
00:25:54,440 --> 00:25:56,160
since this is the primary 
action. 

407
00:25:57,080 --> 00:26:00,840
So I'll go ahead and save that. 
So there's still one thing 

408
00:26:00,840 --> 00:26:04,280
missing here, which is the 
color's still wrong. 

409
00:26:05,320 --> 00:26:09,320
So the Button's a little bit 
different in terms of styling it

410
00:26:09,320 --> 00:26:13,680
because it's, you know, it's got
a hover effect, it's got an 

411
00:26:13,680 --> 00:26:17,520
active, you know, there's active
hover focus. 

412
00:26:18,160 --> 00:26:22,000
So we're actually going to style
that via the theme provider. 

413
00:26:22,560 --> 00:26:25,040
So I'm going to import the theme
provider and that'll give me a 

414
00:26:25,040 --> 00:26:28,400
chance to show you about it, a 
few things about it. 

415
00:26:29,720 --> 00:26:32,520
So put it up here. 
We'll wrap the whole app in it. 

416
00:26:35,480 --> 00:26:38,440
So I'll pull that up and save 
that. 

417
00:26:38,760 --> 00:26:41,800
You'll notice nothing's changed.
And that's because we didn't 

418
00:26:41,800 --> 00:26:43,960
override the theme. 
So if you don't override the 

419
00:26:43,960 --> 00:26:45,720
theme, it's not going to do 
anything. 

420
00:26:47,240 --> 00:26:49,440
So let's go ahead and pull a 
theme in. 

421
00:26:53,280 --> 00:26:57,080
Sorry. 
So I'm gonna create a theme 

422
00:26:57,080 --> 00:27:03,240
object here, and I'm actually 
gonna give it a type of theme. 

423
00:27:03,240 --> 00:27:07,120
So I'll pull in theme TypeScript
type, and that'll give us some 

424
00:27:07,120 --> 00:27:12,000
nice intellisense on this. 
So the first thing that happens 

425
00:27:12,000 --> 00:27:14,360
is I believe it's gonna start. 
Yeah, it's gonna start being mad

426
00:27:14,360 --> 00:27:19,560
at us 'cause we missed the name.
So let's add Perfect Dev, 

427
00:27:19,960 --> 00:27:21,880
Perfect, let's call it Perfect 
theme. 

428
00:27:22,840 --> 00:27:26,840
And then we can start adding 
some design tokens here. 

429
00:27:26,840 --> 00:27:31,000
So we'll add the tokens. 
We want to customize the 

430
00:27:31,000 --> 00:27:36,920
components. 
We want to change the button, we

431
00:27:36,920 --> 00:27:40,640
want to change the primary 
button. 

432
00:27:41,080 --> 00:27:46,640
And then we're going to change 
the background color to the have

433
00:27:46,640 --> 00:27:49,960
a value of. 
And here I'm going to use one of

434
00:27:49,960 --> 00:27:53,280
our design tokens. 
So this will refer to those base

435
00:27:53,280 --> 00:27:57,000
design token color schemes. 
So I'm going to say colors dot 

436
00:27:57,000 --> 00:28:01,440
pink .60. 
And then while we're here, I'm 

437
00:28:01,440 --> 00:28:09,320
also going to change the hover. 
Oh, and I always forget this 

438
00:28:09,320 --> 00:28:13,320
comma. 
Let's put the comma there and 

439
00:28:13,320 --> 00:28:19,720
I'll change the background color
for the hover colors dot pink 

440
00:28:19,720 --> 00:28:22,280
.6. 
Actually I think this one's 80. 

441
00:28:22,640 --> 00:28:26,880
That way it's a little darker 
and I need. 

442
00:28:27,400 --> 00:28:30,600
A quote. 
Nope, I missed something. 

443
00:28:30,600 --> 00:28:32,160
Oh, I don't. 
I think there's one on the 

444
00:28:32,160 --> 00:28:34,600
inside past the 80 there. 
Thank you. 

445
00:28:34,960 --> 00:28:38,600
No worries. 
Yeah, I do like the new VS Code 

446
00:28:38,600 --> 00:28:41,760
like colored curly braces 
though. 

447
00:28:41,760 --> 00:28:47,160
That's been so helpful. 
OK, so nothing changed because I

448
00:28:47,160 --> 00:28:50,520
didn't pass it to the provider. 
Let's pass it to the provider 

449
00:28:53,000 --> 00:28:57,000
and then let's go over here. 
And now we have a hover effect 

450
00:28:57,120 --> 00:29:01,760
and a coloured the right branded
colour button. 

451
00:29:03,640 --> 00:29:06,600
So yeah, Annie. 
Oh, actually I did have one more

452
00:29:06,600 --> 00:29:09,720
thing that I wanted to show you,
which is the e-mail you'll 

453
00:29:09,720 --> 00:29:11,720
notice actually already has the 
right colour. 

454
00:29:11,720 --> 00:29:15,760
And that's because ha ha, ha, I 
already added some CSS that I 

455
00:29:15,760 --> 00:29:20,080
didn't tell you about. 
This is just, I just wanted to 

456
00:29:20,080 --> 00:29:24,480
show this off because it just 
shows how flexible our theming 

457
00:29:25,880 --> 00:29:30,280
options are. 
Like sometimes you don't have to

458
00:29:30,280 --> 00:29:33,680
just use the theming props. 
You don't have to just use the 

459
00:29:33,680 --> 00:29:36,480
theme provider. 
If you want to just write CSS, 

460
00:29:36,480 --> 00:29:38,520
there's nothing stopping you 
from doing that. 

461
00:29:38,760 --> 00:29:43,680
So this this is targeting the 
Amplify text field class, which 

462
00:29:43,680 --> 00:29:47,080
is going to surround this whole 
thing, including both the label 

463
00:29:47,080 --> 00:29:50,240
and the input. 
And then we're targeting a 

464
00:29:50,240 --> 00:29:55,640
specific CSS variable on the 
Amplify components field label 

465
00:29:55,640 --> 00:29:57,520
color. 
And then we're actually 

466
00:29:57,520 --> 00:30:01,800
assigning it to another one of 
our design tokens or CSS 

467
00:30:01,800 --> 00:30:04,360
variables called Amplify colors 
pink. 

468
00:30:05,120 --> 00:30:10,480
So that kind of gives you a idea
of the full spectrum of the 

469
00:30:10,480 --> 00:30:12,240
theming options that are 
available. 

470
00:30:12,880 --> 00:30:15,320
Nice. 
We we had a question come in, I 

471
00:30:15,320 --> 00:30:19,360
think it was for the previous 
screen there if colours dot pink

472
00:30:19,360 --> 00:30:22,480
would work too. 
I'm not. 

473
00:30:22,520 --> 00:30:25,760
Sure, if it's the class then 
instead of the object like 

474
00:30:26,120 --> 00:30:29,920
broken out like that so. 
Heather's probably better at 

475
00:30:29,920 --> 00:30:32,760
answering this question. 
Right. 

476
00:30:32,760 --> 00:30:35,840
Colors that pink won't work 
because we need to drill down to

477
00:30:35,840 --> 00:30:39,320
our scale. 
So in our design tokens that 

478
00:30:39,320 --> 00:30:42,520
we're generating, they kind of 
work on this level where you 

479
00:30:42,520 --> 00:30:45,000
have like a namespace. 
So that would be colors. 

480
00:30:45,360 --> 00:30:48,800
And then we further section 
those out by the hue, which 

481
00:30:48,800 --> 00:30:53,000
would be pink in this case. 
And then we use a range of 

482
00:30:53,000 --> 00:30:55,720
colors. 
So I think there's 10 for each 

483
00:30:56,080 --> 00:31:00,000
going from like 10 to 100. 
And then there's some like steps

484
00:31:00,000 --> 00:31:03,040
in between. 
So 10 refers to like the 

485
00:31:03,040 --> 00:31:06,480
lightest color and then 100 
would be like the darkest color.

486
00:31:07,080 --> 00:31:10,560
And we have a section on our UI 
doc site which I can also show 

487
00:31:10,560 --> 00:31:16,120
later, but that kind of shows 
like every default theme color 

488
00:31:16,120 --> 00:31:17,920
we have to start with. 
Cool. 

489
00:31:19,640 --> 00:31:20,160
Awesome. 
Thanks. 

490
00:31:23,120 --> 00:31:26,600
Awesome, I think I can. 
That's all that I have for the 

491
00:31:26,600 --> 00:31:31,120
demo with if you have any 
questions or Heather can take it

492
00:31:31,120 --> 00:31:34,280
on with the main demo. 
My only question that I have 

493
00:31:34,280 --> 00:31:37,640
right now is like thinking about
the amplified side of this in my

494
00:31:37,640 --> 00:31:40,520
head. 
Do these components like make it

495
00:31:40,520 --> 00:31:43,680
easier when you're taking in 
inputs to like update Dynamo 

496
00:31:43,680 --> 00:31:46,080
through whatever on the Amplify 
side? 

497
00:31:46,080 --> 00:31:49,600
Or is it just kind of the normal
way of taking in an input at 

498
00:31:49,600 --> 00:31:51,480
that point? 
Yeah. 

499
00:31:51,480 --> 00:31:54,160
So at the moment, that would 
just be the norm. 

500
00:31:54,160 --> 00:31:57,040
It would be the normal way. 
You'd just have to connect 

501
00:31:58,280 --> 00:32:02,080
directly. 
But that being said, these are 

502
00:32:02,080 --> 00:32:08,080
the same components that the 
Figma and Studio use to generate

503
00:32:08,080 --> 00:32:09,720
code. 
So I don't know if you've looked

504
00:32:09,720 --> 00:32:14,640
at that at all, but the there's 
a capability in Amplify Studio 

505
00:32:14,640 --> 00:32:18,200
where you can actually design 
these components. 

506
00:32:18,200 --> 00:32:22,960
I think we have a little bit of 
let me pull up the UI doc site 

507
00:32:22,960 --> 00:32:29,120
again, but there's the the Figma
integration that we have 

508
00:32:29,520 --> 00:32:32,400
basically allows you to in this 
video. 

509
00:32:32,720 --> 00:32:35,560
We're sorry, I'll just mute that
real quick. 

510
00:32:36,440 --> 00:32:42,040
You can take, you can be in 
Figma and then generate like a 

511
00:32:43,440 --> 00:32:47,360
component. 
So yeah, that's showing. 

512
00:32:48,680 --> 00:32:50,600
Thought I could find one where. 
Oh yeah, here it is. 

513
00:32:50,840 --> 00:32:55,880
So like you're inside of Figma, 
you generate like a design and 

514
00:32:55,880 --> 00:33:00,040
Figma using our UI components. 
Like you can add a button, you 

515
00:33:00,040 --> 00:33:03,320
can add a card, you can add an 
image, and then you pull that 

516
00:33:03,320 --> 00:33:08,680
down into Amplify Studio and you
can actually attach that to data

517
00:33:09,760 --> 00:33:14,800
and then export that down into 
your application as a component.

518
00:33:14,800 --> 00:33:19,160
And it'll generate like readable
real React code. 

519
00:33:19,400 --> 00:33:26,560
Like you would write it using 
hooks to datastore and then and,

520
00:33:26,640 --> 00:33:29,280
and then you could use that with
the theme provider. 

521
00:33:29,280 --> 00:33:33,280
And if you had parts of your app
that are completely custom, you 

522
00:33:33,280 --> 00:33:36,320
could just keep using the UI 
primitives for the rest of those

523
00:33:36,320 --> 00:33:40,120
parts, or go through Figma. 
Yeah, that's really cool. 

524
00:33:41,960 --> 00:33:45,080
Nice. 
So Heather, you're going to kind

525
00:33:45,080 --> 00:33:48,040
of take this next step and dive 
in a little further at this 

526
00:33:48,040 --> 00:33:51,040
point. 
Yeah, I can show us how we can 

527
00:33:51,160 --> 00:33:53,640
look at some more of the 
components and some more like 

528
00:33:53,640 --> 00:34:01,000
theming options so we can share 
my screen and then kind of show 

529
00:34:01,000 --> 00:34:02,720
what we're going to start 
building. 

530
00:34:02,720 --> 00:34:06,720
So we have this little mock up 
of like a properties listing 

531
00:34:06,720 --> 00:34:09,880
app, kind of maybe like Airbnb 
type of clone kind of thing. 

532
00:34:10,840 --> 00:34:14,320
So we have some cards to 
represent each property. 

533
00:34:14,719 --> 00:34:18,639
And then we can see we have a 
header with our logo, we have a 

534
00:34:18,639 --> 00:34:20,960
sign in button. 
So maybe we'll want to do 

535
00:34:20,960 --> 00:34:24,360
something with routing and 
authentication, which Eric will 

536
00:34:24,360 --> 00:34:28,760
show us a little bit later. 
And we also have some a color 

537
00:34:28,760 --> 00:34:31,440
scheme on the side that our 
designer made, which happens to 

538
00:34:31,440 --> 00:34:34,360
be being in this case. 
And you can see we have a little

539
00:34:34,360 --> 00:34:38,320
bit more like muted colors 
compared to the default UI. 

540
00:34:38,639 --> 00:34:41,320
Our default UI uses a little bit
like brighter, more saturated 

541
00:34:41,320 --> 00:34:43,800
colors. 
So we know we're going to, we're

542
00:34:48,639 --> 00:34:51,400
going to want to build out some 
components to make these little 

543
00:34:51,400 --> 00:34:55,679
card components. 
So if I hop over to where I'm 

544
00:34:55,679 --> 00:34:59,120
going to start with, I just also
scaffolded out a create React 

545
00:34:59,120 --> 00:35:01,800
app. 
And there's a guide on our dock 

546
00:35:01,800 --> 00:35:05,040
site like Scott mentioned that 
shows everything we do there, 

547
00:35:05,040 --> 00:35:06,680
but pretty simple to get up and 
running. 

548
00:35:08,600 --> 00:35:15,000
And for me to start with, I set 
up some basic routes for us to 

549
00:35:15,000 --> 00:35:17,760
work with. 
So our home page will be our 

550
00:35:17,760 --> 00:35:21,920
properties listing and then I 
stubbed out like a login and 

551
00:35:21,920 --> 00:35:23,240
admin page too. 
Very. 

552
00:35:25,280 --> 00:35:28,240
Cool. 
And then just to see what else I

553
00:35:28,240 --> 00:35:30,920
added, so I added a react router
so we can do a little bit of 

554
00:35:30,920 --> 00:35:35,640
routing for the authentication. 
Also added in icons package, 

555
00:35:36,400 --> 00:35:39,400
React icons has kind of like a, 
a conglomerate of a bunch of 

556
00:35:39,400 --> 00:35:41,480
different icon libraries that I 
like to use. 

557
00:35:43,720 --> 00:35:47,360
And then since we're mostly 
going to focus on oh, hello, 

558
00:35:47,360 --> 00:35:51,760
connections, we're going to 
mostly focus on building out UI 

559
00:35:51,760 --> 00:35:55,560
components. 
So I just made some placeholder 

560
00:35:55,560 --> 00:35:59,280
data like a JavaScript object. 
We were going to go the full 

561
00:35:59,280 --> 00:36:01,760
like Amplify route. 
This is where you might go over 

562
00:36:01,760 --> 00:36:06,400
to Amplify Studio and design out
your data there. 

563
00:36:06,440 --> 00:36:09,920
Samplify Studios, kind of like 
our visual back end designer, 

564
00:36:10,240 --> 00:36:13,120
where you can set up your 
schemas and all of your graph QL

565
00:36:13,120 --> 00:36:16,520
queries and things right from 
the an admin type of UI. 

566
00:36:17,880 --> 00:36:20,680
But first we're just going to 
use some hard coded data to 

567
00:36:20,680 --> 00:36:22,880
start with. 
Cool. 

568
00:36:23,240 --> 00:36:26,280
So let's see, I think I'm going 
to start with building out just 

569
00:36:26,280 --> 00:36:28,840
one of these cards, so like one 
property. 

570
00:36:29,480 --> 00:36:35,800
So I'll hop over to code and I 
also let me show I have the, the

571
00:36:35,800 --> 00:36:40,080
app running with just like some 
starter HTML elements just to 

572
00:36:40,080 --> 00:36:43,120
save a little bit of time. 
So you can see I'm just like 

573
00:36:43,120 --> 00:36:45,080
iterating through each property 
list. 

574
00:36:45,760 --> 00:36:48,200
There's going to be some things 
we want to fix like these images

575
00:36:48,200 --> 00:36:51,120
are a little bit stretched out. 
So we'll we'll go over that. 

576
00:36:51,120 --> 00:36:54,240
Also also set up my header a 
little bit. 

577
00:36:54,240 --> 00:36:58,240
So right now it's just unstyled,
not using any of our components.

578
00:37:00,600 --> 00:37:03,200
So let's start with the property
card. 

579
00:37:03,200 --> 00:37:07,560
So I'll go down to my JSX here, 
and I know I probably want to 

580
00:37:07,560 --> 00:37:12,920
have a link wrapping each card. 
Let me make some space. 

581
00:37:14,960 --> 00:37:18,960
So I'm going to use our Amplify 
Link component. 

582
00:37:19,320 --> 00:37:23,200
And for now, we'll just have it 
keep linking back to the root, 

583
00:37:23,480 --> 00:37:25,960
but probably you'd want to link 
it to like a detail page or 

584
00:37:25,960 --> 00:37:30,320
something like that. 
And then let's fix our image 

585
00:37:30,320 --> 00:37:32,040
components. 
So we're going to use the imply 

586
00:37:32,040 --> 00:37:35,120
image component. 
All of these are just regular 

587
00:37:35,400 --> 00:37:39,920
HTML or attributes that you'd 
have on a normal image element. 

588
00:37:40,680 --> 00:37:44,320
But I want to fix this like 
stretch behavior that's going 

589
00:37:44,320 --> 00:37:47,000
on. 
So that's where I'll use a style

590
00:37:47,000 --> 00:37:51,440
prop like Scott was mentioning. 
And we're going to set this to 

591
00:37:51,440 --> 00:37:55,480
object fit and we'll do see. 
I think we want cover. 

592
00:37:55,840 --> 00:38:03,640
I always mix it up with contain 
and we should see make sure it's

593
00:38:03,640 --> 00:38:04,600
still running. 
OK. 

594
00:38:07,080 --> 00:38:09,160
So you kind of see it like 
cropped images a little bit. 

595
00:38:09,160 --> 00:38:10,720
Now they're not as stretched 
out. 

596
00:38:11,320 --> 00:38:16,200
You could also do. 
You want to do contain, then it 

597
00:38:16,200 --> 00:38:20,160
would keep the aspect ratio, but
we want it to fill all the space

598
00:38:21,760 --> 00:38:25,400
AT. 
And then if we go back to our 

599
00:38:25,400 --> 00:38:28,600
mock ups, we know that we have 
our heading. 

600
00:38:28,680 --> 00:38:32,400
We kind of want it to sit next 
to this star rating component. 

601
00:38:32,760 --> 00:38:36,600
So that's where I'll use that 
flexbox component that Scott 

602
00:38:36,600 --> 00:38:41,880
showed. 
So we'll do flex and I drop 

603
00:38:41,880 --> 00:38:48,760
these into there, reposition 
this so we can see. 

604
00:38:48,760 --> 00:38:50,560
So the alignment's really weird 
right now. 

605
00:38:50,840 --> 00:38:54,800
We'll fix that too by using some
just layout rules that we can 

606
00:38:54,800 --> 00:39:01,840
also pass as style props, Do a 
line item center and that fixes 

607
00:39:01,840 --> 00:39:07,840
that layout. 
And then let's start restyling 

608
00:39:07,840 --> 00:39:10,120
the heading. 
So I'll use heading component 

609
00:39:10,640 --> 00:39:17,480
and I want mine to be in H2, so 
I'll do heading level 2 and the 

610
00:39:17,880 --> 00:39:19,200
font size a little big right 
now. 

611
00:39:19,200 --> 00:39:21,640
We're actually going to fix that
in our theme object instead just

612
00:39:21,640 --> 00:39:24,360
so we can show that off. 
So we'll we'll circle back to 

613
00:39:24,360 --> 00:39:30,000
that and then we'll replace this
rating value or it says 4 right 

614
00:39:30,000 --> 00:39:31,720
here. 
We want that to be the star 

615
00:39:31,920 --> 00:39:36,280
rating component. 
So we'll add that in and we'll 

616
00:39:36,280 --> 00:39:43,560
make the value for that rating. 
On the image component, does 

617
00:39:43,560 --> 00:39:46,600
that do any anything else like 
lazy load the images or 

618
00:39:46,720 --> 00:39:49,040
anything? 
It, it does not. 

619
00:39:49,040 --> 00:39:50,880
I don't think we have any of 
that. 

620
00:39:51,840 --> 00:39:53,480
Yeah. 
It's more just styling kind of 

621
00:39:53,480 --> 00:39:58,560
like taking the basic image 
element and adding some 

622
00:39:58,560 --> 00:40:00,720
properties to it for like 
utility. 

623
00:40:03,320 --> 00:40:04,960
Let's see. 
So our rating component's really

624
00:40:04,960 --> 00:40:07,120
big right now. 
We want that to be small, so 

625
00:40:07,120 --> 00:40:11,440
we'll just use a small variation
And since this is actually a 

626
00:40:11,440 --> 00:40:14,520
flex component like under the 
hood. 

627
00:40:14,720 --> 00:40:17,600
So if I. 
Look at rating. 

628
00:40:17,600 --> 00:40:20,320
You can see it's picking up the 
Amplify Flex class. 

629
00:40:20,320 --> 00:40:23,960
So we can apply flex layout 
rules to this component and it 

630
00:40:23,960 --> 00:40:30,560
will also pick them up. 
So I can set a gap of let's do 

631
00:40:31,240 --> 00:40:38,440
something kind of small. 
Well, and then I also want to 

632
00:40:38,440 --> 00:40:41,280
align it to the right so it's 
always on the right no matter 

633
00:40:41,280 --> 00:40:47,760
how short the title is. 
So let's do margin inline start.

634
00:40:49,400 --> 00:40:53,360
I'll make that auto. 
But one thing cool about using 

635
00:40:53,360 --> 00:40:57,080
like margin inline instead of 
margin left or margin right is 

636
00:40:57,080 --> 00:40:59,440
if you're going to localize this
and you wanted it to work for 

637
00:40:59,440 --> 00:41:02,440
right to left languages, the 
browser would automatically know

638
00:41:02,440 --> 00:41:05,120
how to switch those to be right 
versus left. 

639
00:41:06,120 --> 00:41:08,880
So that's kind of a a cool thing
I've learned recently. 

640
00:41:10,640 --> 00:41:13,280
Let's see. 
And then we have some kind of 

641
00:41:13,280 --> 00:41:16,920
like longer titles that are 
spilling over to two lines, like

642
00:41:16,920 --> 00:41:21,840
this one's really long, so let's
make this actually truncated. 

643
00:41:23,280 --> 00:41:28,120
It's just a prop we have for 
headings and we'll get true. 

644
00:41:30,560 --> 00:41:34,280
So one line that's looking 
better, we'll come back and fix 

645
00:41:34,280 --> 00:41:36,760
the color for our star rating 
object also. 

646
00:41:37,160 --> 00:41:40,000
But for now, let's move on to 
the beds. 

647
00:41:40,600 --> 00:41:43,640
So at our mock up, oops, let's 
see what we have. 

648
00:41:45,040 --> 00:41:48,000
We've got a little icon and then
a little bit lighter Gray text. 

649
00:41:48,000 --> 00:41:51,520
So that's where like Scott was 
showing off how to use the color

650
00:41:51,520 --> 00:41:53,600
style prompts. 
We can do that for there too. 

651
00:41:53,960 --> 00:41:59,080
So I'm just gonna put this in 
another flex object just so I 

652
00:41:59,080 --> 00:42:03,280
can align the icon with the text
a little bit easier. 

653
00:42:04,320 --> 00:42:07,200
And I'm gonna pull in icon 
component. 

654
00:42:07,960 --> 00:42:10,880
And this is pretty neat because,
oops, let me spell that right. 

655
00:42:11,280 --> 00:42:16,320
You can usually with like any 
SVG icon library. 

656
00:42:16,320 --> 00:42:21,200
So we're using, I have box icons
from that React icons package. 

657
00:42:21,720 --> 00:42:26,320
So I'm going to use that and 
just do as icon. 

658
00:42:28,440 --> 00:42:32,000
Now we have a little tiny bed 
icon showing up, which is what 

659
00:42:32,000 --> 00:42:35,320
we want. 
And then again, I'm going to use

660
00:42:35,320 --> 00:42:42,160
some flex layout rules to center
that vertically so we can see 

661
00:42:42,160 --> 00:42:47,800
this a little better. 
And we also want to change the 

662
00:42:47,800 --> 00:42:49,800
color to something a little bit 
lighter. 

663
00:42:49,800 --> 00:42:52,880
So we'll do color and then I'm 
going to do neutral, which is 

664
00:42:52,880 --> 00:42:58,200
like our our Gray color scheme 
and we'll do neutral 80 should 

665
00:42:58,360 --> 00:43:03,920
be pretty good. 
And then again, we can adjust 

666
00:43:03,920 --> 00:43:06,720
those like gap properties. 
So it's a little bit closer. 

667
00:43:06,720 --> 00:43:08,520
The text is a little closer to 
the icon. 

668
00:43:11,400 --> 00:43:14,760
Great. 
And then the last thing for this

669
00:43:14,760 --> 00:43:18,160
is we just want to make this 
text color a little bit 

670
00:43:18,160 --> 00:43:26,040
different so we can replace this
with our text component is 

671
00:43:26,040 --> 00:43:31,920
those. 
And we want the rating itself to

672
00:43:31,920 --> 00:43:35,400
be bold. 
So again, these are all tokens 

673
00:43:35,400 --> 00:43:38,520
that we've defined in our our 
default theme. 

674
00:43:38,520 --> 00:43:43,440
So you could also do like thin 
or light or other font weights. 

675
00:43:45,320 --> 00:43:48,200
Nice, are you able to set like 
font families on that too? 

676
00:43:49,320 --> 00:43:52,760
Yes, you could theoretically go 
in and add a font family. 

677
00:43:52,760 --> 00:43:57,440
So we have let me just show 
really quick on the doc site. 

678
00:43:58,280 --> 00:44:02,120
If you go to default theme, you 
can go to topography and this 

679
00:44:02,120 --> 00:44:05,080
shows some of the tokens. 
We still need to add a couple of

680
00:44:05,080 --> 00:44:09,200
the default tokens, but there's 
font weights, font sizes, 

681
00:44:09,200 --> 00:44:12,080
there's line heights and then 
font families. 

682
00:44:12,080 --> 00:44:15,920
So we have a default one loaded,
but you could add both a 

683
00:44:15,920 --> 00:44:18,320
variable font and a a static 
font for that. 

684
00:44:22,160 --> 00:44:24,000
Cool. 
So let's see where we are. 

685
00:44:24,720 --> 00:44:27,080
These are on 2 lines. 
You want them to be on one. 

686
00:44:27,080 --> 00:44:29,440
So we're gonna make those a span
by default. 

687
00:44:29,440 --> 00:44:34,440
It's a paragraph tag. 
Change that. 

688
00:44:36,080 --> 00:44:39,160
And then I think I want that 
that lighter color again. 

689
00:44:39,360 --> 00:44:52,080
We'll copy this, add it there. 
Oh, so this is all using style 

690
00:44:52,080 --> 00:44:56,080
props so far. 
And like Scott mentioned, 

691
00:44:56,080 --> 00:44:58,600
there's a bunch of different 
ways that you can style amplify 

692
00:44:58,600 --> 00:45:01,320
UI components. 
So I'm going to hop over and 

693
00:45:01,320 --> 00:45:05,000
show like how we would do this, 
do some of the styling using the

694
00:45:05,000 --> 00:45:09,120
theme object. 
So if I go back here and I just 

695
00:45:09,120 --> 00:45:13,200
have a file stubbed out to 
create my theme. 

696
00:45:14,360 --> 00:45:16,880
And again, I'm just importing 
the theme interface. 

697
00:45:16,880 --> 00:45:19,560
So we get some nice TypeScript 
support, some nice auto 

698
00:45:19,560 --> 00:45:22,560
complete. 
And here I'm going to just 

699
00:45:22,600 --> 00:45:31,720
export a theme object and we'll 
do yelling at me because we're 

700
00:45:31,720 --> 00:45:33,920
missing a name. 
So we'll do name. 

701
00:45:34,840 --> 00:45:42,440
We'll let's do cabin theme. 
And I first I want to fix this 

702
00:45:42,440 --> 00:45:44,080
heading size, which is kind of 
weird. 

703
00:45:44,080 --> 00:45:46,560
So we know we're going to update
tokens. 

704
00:45:46,560 --> 00:45:51,360
We'll drill into that and then 
go into components, then 

705
00:45:51,360 --> 00:45:54,520
heading. 
And then I want to change 

706
00:45:54,520 --> 00:46:00,000
heading level 2. 
Then we can do font size and 

707
00:46:00,000 --> 00:46:03,880
then pass that of value. 
So here you could do something 

708
00:46:03,880 --> 00:46:08,680
like 20 pixels, you could do 
like whatever you might use for 

709
00:46:08,680 --> 00:46:12,720
like ACSS property rule. 
But we want to reference a 

710
00:46:12,720 --> 00:46:16,440
design token 'cause we have like
pretty extensive design token 

711
00:46:16,440 --> 00:46:21,240
set up to start with. 
So we'll do font sizes. 

712
00:46:22,640 --> 00:46:27,360
Let's show, let's do large. 
We're not going to see it yet 

713
00:46:27,360 --> 00:46:32,240
'cause I haven't added it yet. 
So let's go over to our entry 

714
00:46:32,240 --> 00:46:36,760
point. 
And here is where I can import 

715
00:46:36,760 --> 00:46:43,600
that theme right there. 
And I'm already importing the 

716
00:46:43,600 --> 00:46:47,480
theme providers. 
I'm just gonna wrap that around 

717
00:46:47,600 --> 00:46:57,040
here, get you back in there, and
then we can set our theme. 

718
00:46:59,480 --> 00:47:01,040
Looks like I'm missing 
something. 

719
00:47:01,040 --> 00:47:03,440
Type string is not assignable. 
Curly braces. 

720
00:47:04,240 --> 00:47:10,400
There we go cool. 
So now we can see our font sizes

721
00:47:10,400 --> 00:47:15,400
updated and our well, that's all
we've changed so far as the font

722
00:47:15,400 --> 00:47:18,840
size. 
So let's go back over to theme 

723
00:47:19,120 --> 00:47:21,760
'cause we also wanted a 
different color for the star 

724
00:47:21,760 --> 00:47:25,000
rating component. 
If we look at our mock up, got 

725
00:47:25,000 --> 00:47:27,680
some kind of green colored stars
there. 

726
00:47:28,600 --> 00:47:34,480
So let's add that here too. 
We can go into rating and well, 

727
00:47:34,480 --> 00:47:37,080
one thing I'm going to do is I'm
going to cheat a little bit. 

728
00:47:37,400 --> 00:47:42,720
I'm going to grab all of these 
colors that match our color 

729
00:47:42,720 --> 00:47:46,000
scheme. 
So we were modifying the tokens 

730
00:47:46,000 --> 00:47:49,840
at a component level. 
We can also modify at that like 

731
00:47:49,840 --> 00:47:54,760
base level, which is what you'd 
see like these are examples of 

732
00:47:54,760 --> 00:48:07,160
like our very like base tokens. 
So let's add colors and we'll 

733
00:48:07,160 --> 00:48:11,240
Add all of our color schemes in 
there and nothing's going to 

734
00:48:11,240 --> 00:48:13,360
change too much because we're 
using a lot of like black and 

735
00:48:13,360 --> 00:48:14,840
white and neutral colors right 
now. 

736
00:48:15,280 --> 00:48:20,520
But if we go down to rating, we 
can do let's see, I want build 

737
00:48:24,520 --> 00:48:27,120
and then I think we want color. 
Yeah. 

738
00:48:28,320 --> 00:48:32,240
Then we'll pass it a value. 
So we could do something like 

739
00:48:32,240 --> 00:48:35,040
red and then all our stars will 
show up red. 

740
00:48:35,040 --> 00:48:41,760
But we're gonna use an actual 
color design token and let's do 

741
00:48:41,760 --> 00:48:43,920
like 60. 
Looks pretty good. 

742
00:48:43,960 --> 00:48:46,440
Yeah, that works for me. 
Cool, nice. 

743
00:48:50,040 --> 00:48:52,320
Let's see. 
So we we changed our property 

744
00:48:52,320 --> 00:48:54,200
card. 
I want to like deal with like 

745
00:48:54,200 --> 00:48:58,120
the responsive layout now. 
So right now it's all just 

746
00:48:59,720 --> 00:49:02,280
stacked into one row or one 
column. 

747
00:49:03,040 --> 00:49:06,920
So if we go into our routes 
where I have my properties, so I

748
00:49:06,920 --> 00:49:09,560
already have a collection 
component set up. 

749
00:49:09,960 --> 00:49:13,040
So Scott kind of mentioned this 
collection lets you pass it a 

750
00:49:13,400 --> 00:49:16,760
list of items and kind of 
iterate through those with a 

751
00:49:16,760 --> 00:49:20,280
component of your choosing. 
So for mine, I'm using that 

752
00:49:20,280 --> 00:49:24,280
property card that we just made 
and that's how it's putting it 

753
00:49:24,280 --> 00:49:31,760
into our our UI. 
And I want to adjust the column.

754
00:49:31,760 --> 00:49:35,240
So you could also do type equals
list, which makes it more of 

755
00:49:35,240 --> 00:49:37,680
like a flexbox list. 
But I'm going to do type equals 

756
00:49:37,680 --> 00:49:41,200
grid and then I can use some 
more like grid layout rules. 

757
00:49:41,240 --> 00:49:44,160
So we have template columns 
already set up. 

758
00:49:45,800 --> 00:49:48,200
I want to make this a little 
more responsive. 

759
00:49:48,200 --> 00:49:53,080
So I'll pass it a responsive 
object and we can do, let's see,

760
00:49:54,560 --> 00:50:01,120
string actually Max 0 and we'll 
do up to 500 pixels so it can 

761
00:50:01,360 --> 00:50:04,520
stretch down as small as it 
needs and then go up to 500 

762
00:50:04,520 --> 00:50:07,640
pixels. 
And then we can set a medium 

763
00:50:07,640 --> 00:50:13,520
break point. 
And for that we want to repeat 2

764
00:50:13,520 --> 00:50:17,640
columns. 
And we'll do min, Max zero and 

765
00:50:17,640 --> 00:50:20,120
let it fill as much space as 
fits. 

766
00:50:22,240 --> 00:50:25,800
And then similar for like the 
large size, we'll do large 

767
00:50:26,560 --> 00:50:32,480
repeat 3 columns. 
And then the same thing here, 

768
00:50:38,640 --> 00:50:43,240
back here, make sure that 
everything's working. 

769
00:50:46,120 --> 00:50:52,360
So we're missing something. 
I think it I think it does your 

770
00:50:52,360 --> 00:50:55,360
two and then three if you go a 
little slower. 

771
00:50:55,960 --> 00:50:57,600
Yeah, it looks like it's doing 
OK. 

772
00:50:57,600 --> 00:51:02,040
Yeah, looks like we don't. 
Oh, I know what I missed. 

773
00:51:02,040 --> 00:51:03,840
So let's go back to property 
card. 

774
00:51:04,840 --> 00:51:08,840
I want to actually wrap these in
a card element that will give us

775
00:51:08,840 --> 00:51:11,240
some of that like padding around
them. 

776
00:51:12,400 --> 00:51:17,360
Yeah. 
Let's see, like card. 

777
00:51:19,760 --> 00:51:24,840
Oh, that's better. 
And then one more small thing is

778
00:51:24,840 --> 00:51:26,920
we wanted to border radius on 
our image. 

779
00:51:27,680 --> 00:51:34,400
Add that back in and we'll do 
medium there. 

780
00:51:34,440 --> 00:51:36,000
There we go. 
Cool. 

781
00:51:36,720 --> 00:51:38,840
And now we have our layout 
rules. 

782
00:51:38,840 --> 00:51:42,360
And feel free to interrupt me if
there's any other questions. 

783
00:51:44,200 --> 00:51:46,080
Otherwise, we'll keep trucking 
through this. 

784
00:51:47,680 --> 00:51:50,440
Let's see. 
I want to like limit the width 

785
00:51:50,440 --> 00:51:53,080
also. 
So right now it's stretching as 

786
00:51:53,080 --> 00:51:56,760
much as it can. 
So we'll add a Max width, we'll 

787
00:51:56,760 --> 00:52:03,960
do 1100 pixels and we'll do 
margin inline, gold auto so it 

788
00:52:03,960 --> 00:52:07,680
centers it that way. 
We can restrict that a little 

789
00:52:07,680 --> 00:52:10,080
bit. 
Nice. 

790
00:52:12,720 --> 00:52:15,320
A couple more things that we'll 
we'll just clean up. 

791
00:52:15,320 --> 00:52:18,160
So we had our header, which kind
of looks pretty plain. 

792
00:52:18,160 --> 00:52:19,760
It's just a normal link right 
now. 

793
00:52:20,080 --> 00:52:26,320
So we're going to wrap this in a
view and then I'll use a card 

794
00:52:26,320 --> 00:52:29,640
again just to give a little bit 
of spacing around it. 

795
00:52:33,680 --> 00:52:38,480
And we'll just change these to 
our Amplify components. 

796
00:52:46,240 --> 00:52:55,960
And I'm going to make this small
variation O and then we can use 

797
00:52:55,960 --> 00:52:59,840
some more layout rules. 
So we use, I use the flex 

798
00:52:59,840 --> 00:53:04,520
component quite a bit. 
It's really handy for anything 

799
00:53:04,520 --> 00:53:08,480
layout wise. 
We want to align these 

800
00:53:09,240 --> 00:53:14,320
vertically. 
And then again, we'll do margin 

801
00:53:14,320 --> 00:53:19,040
in line start holds auto so that
our button will be all the way 

802
00:53:19,040 --> 00:53:24,920
to the right. 
And then there were some other 

803
00:53:24,920 --> 00:53:26,480
component styles I'm going to 
grab. 

804
00:53:26,480 --> 00:53:30,360
So right now our buttons still 
still styled like the default 

805
00:53:30,480 --> 00:53:33,720
Amplify UI colors. 
So I'm just going to grab the 

806
00:53:33,720 --> 00:53:37,560
rest of these that I had. 
So there's some styles in here 

807
00:53:37,560 --> 00:53:41,080
for text inputs, and we'll just 
briefly look at those and then 

808
00:53:41,080 --> 00:53:44,360
some styles for some of the 
other components that we're 

809
00:53:44,360 --> 00:53:47,520
going to use too. 
So I'm going to take these and 

810
00:53:47,520 --> 00:53:53,200
then I'm just going to pop these
into my theme, my rating. 

811
00:53:53,200 --> 00:53:55,840
There we go. 
I think I might have already 

812
00:53:55,840 --> 00:53:57,880
forgotten. 
Are you wrapping the whole thing

813
00:53:57,880 --> 00:54:00,440
in a theme provider as well? 
Right. 

814
00:54:00,440 --> 00:54:03,800
So in the base of our app, 
because we want our entire app 

815
00:54:03,800 --> 00:54:06,080
to pick to pick up our, our new 
theme. 

816
00:54:07,000 --> 00:54:09,880
So we'll wrap the app at like 
the root level in the theme 

817
00:54:09,880 --> 00:54:13,440
provider, and then that passes 
it down like all the context for

818
00:54:13,440 --> 00:54:15,400
it down to the rest of our 
components. 

819
00:54:15,880 --> 00:54:21,600
Cool. 
And like another thing, if once 

820
00:54:21,600 --> 00:54:24,720
you add the theme provider, you 
can kind of see like how it adds

821
00:54:24,720 --> 00:54:28,440
the custom properties. 
So it provides this new division

822
00:54:28,440 --> 00:54:30,720
with a data attribute matching 
our theme. 

823
00:54:31,080 --> 00:54:34,360
And then that's actually how it 
picks up the the new CSS custom 

824
00:54:34,360 --> 00:54:37,080
properties that we're building 
with all of our our new theme 

825
00:54:37,080 --> 00:54:44,920
overrides. 
Let's see, we had couple more 

826
00:54:44,920 --> 00:54:47,240
things. 
So I'll go back to header want 

827
00:54:47,240 --> 00:54:51,520
our cabin logo. 
So again, we could use icon 

828
00:54:51,520 --> 00:54:55,480
component for that. 
And I'm going to load in my oops

829
00:54:57,080 --> 00:55:02,680
really braces my custom icon. 
And this is just an SVD that I 

830
00:55:02,680 --> 00:55:05,040
have exported as a React 
component. 

831
00:55:06,080 --> 00:55:08,320
And we'll use that as our our 
logo. 

832
00:55:08,840 --> 00:55:13,040
And I want this amplified cabins
text to still be available for 

833
00:55:13,040 --> 00:55:15,160
screen readers. 
So I'm going to wrap this in a 

834
00:55:16,040 --> 00:55:20,200
visually hidden component. 
So this will still be in the 

835
00:55:20,200 --> 00:55:23,640
Dom, still be available to 
assisted assisted technologies, 

836
00:55:23,640 --> 00:55:26,240
but it won't be visually shown 
in the UI. 

837
00:55:28,800 --> 00:55:31,280
Let's see. 
And then the last part I think 

838
00:55:31,280 --> 00:55:34,840
we're going to show is just 
setting up some of the like 

839
00:55:34,840 --> 00:55:38,360
scrolling functionality. 
So in my mock up, kind of have 

840
00:55:38,360 --> 00:55:41,560
like a header and then we want 
this properties part to be 

841
00:55:41,560 --> 00:55:44,840
scrollable. 
So we can just do that using CSS

842
00:55:44,840 --> 00:55:47,640
Grid and a little bit of CSS 
overrides. 

843
00:55:48,400 --> 00:55:51,000
So I'm going to go in here, I'm 
going to change this to our grid

844
00:55:51,000 --> 00:55:56,320
element. 
I'm going to set the height to 

845
00:55:56,320 --> 00:56:05,000
100% and we want to use template
rows and let's say we want the 

846
00:56:05,040 --> 00:56:08,360
header to take up as much space 
as it needs, so we'll do auto 

847
00:56:08,720 --> 00:56:13,520
and then we want the rest of the
child or children components to 

848
00:56:13,880 --> 00:56:20,240
fill the rest of the space. 
We'll do one Fr and we have a 

849
00:56:20,320 --> 00:56:24,600
scroll view component where if 
the content inside of it is 

850
00:56:24,600 --> 00:56:28,680
longer than its available space,
it will let it overflow scroll. 

851
00:56:29,120 --> 00:56:30,840
So we'll put everything inside 
that. 

852
00:56:33,320 --> 00:56:36,240
And here's where I'll show where
we can add some little bit of 

853
00:56:36,240 --> 00:56:40,280
extra utility CSS. 
So we don't often apply any CSS 

854
00:56:40,280 --> 00:56:43,440
rules to the like body or root 
elements. 

855
00:56:43,760 --> 00:56:48,440
So I just have some extra height
100 height 100% and overflow 

856
00:56:48,440 --> 00:56:51,560
hidden. 
And if we go here now I can see 

857
00:56:51,560 --> 00:56:55,440
that just our our properties 
area is scrollable. 

858
00:56:57,320 --> 00:56:57,640
Nice. 
Cool. 

859
00:56:57,960 --> 00:57:00,880
I think that takes care of most 
everything. 

860
00:57:01,520 --> 00:57:05,080
Let's see, we have a sign in 
route and right now that's blank

861
00:57:05,080 --> 00:57:07,680
because Eric's going to show us 
about the authenticator. 

862
00:57:08,640 --> 00:57:14,160
And then we also had a admin UI 
page kind of just with some text

863
00:57:14,160 --> 00:57:17,640
inputs. 
And you saw where I added some 

864
00:57:17,640 --> 00:57:25,120
of those other theme overrides. 
So we have some for buttons for 

865
00:57:25,120 --> 00:57:28,000
the field controls which effects
our text inputs. 

866
00:57:29,520 --> 00:57:32,560
So those are reflected in all 
these components that we added 

867
00:57:32,560 --> 00:57:35,840
here. 
That's cool. 

868
00:57:36,240 --> 00:57:38,400
Yeah, I think that's all I had 
for my demo. 

869
00:57:38,840 --> 00:57:42,080
There's no questions. 
I can hand it over to Eric now. 

870
00:57:42,840 --> 00:57:45,480
So I, I think we're, we're 
probably going to talk about 

871
00:57:45,480 --> 00:57:48,960
this during Eric's, but I kind 
of want to throw this out there 

872
00:57:48,960 --> 00:57:52,080
and you don't have to answer it 
right away, but why would 

873
00:57:52,080 --> 00:57:57,200
someone like start to use the 
amplify UI components first, 

874
00:57:57,200 --> 00:58:00,520
like a material UI or something 
else? 

875
00:58:00,520 --> 00:58:03,560
Is it, is it further integrated?
I know like there's a slogan out

876
00:58:03,560 --> 00:58:06,480
there that says ready to connect
to the cloud and it's like, oh, 

877
00:58:06,560 --> 00:58:09,920
how's, how's that magic happen? 
Is that kind of the 

878
00:58:09,920 --> 00:58:13,280
authenticator part and other 
additionals that that are coming

879
00:58:13,280 --> 00:58:15,120
out? 
Yeah. 

880
00:58:15,120 --> 00:58:17,720
For me, I think it'd be if you 
want to use some things like the

881
00:58:17,760 --> 00:58:21,520
authenticator and some of the 
other cloud connected components

882
00:58:21,520 --> 00:58:26,800
that we have, because then you 
have kind of a design system to 

883
00:58:26,800 --> 00:58:30,560
back up some of this other like 
more complicated functionality. 

884
00:58:32,120 --> 00:58:36,560
For me also I like the fact that
I do have more flexibility for 

885
00:58:37,440 --> 00:58:39,360
overriding the styling of 
components. 

886
00:58:39,680 --> 00:58:43,560
So if I do want to use something
like the authenticator, I have 

887
00:58:43,560 --> 00:58:47,920
an easy way to make my 
components match my branding or 

888
00:58:47,920 --> 00:58:51,200
color scheme or to build up my 
own components myself. 

889
00:58:52,240 --> 00:58:55,280
So for me personally, like we 
were using a lot of style props 

890
00:58:55,280 --> 00:58:59,120
for our like custom components 
that we made here, but I'd 

891
00:58:59,120 --> 00:59:03,280
probably go through and let's 
see where's our property card. 

892
00:59:04,160 --> 00:59:07,200
You could even like take these 
out and refactor these into like

893
00:59:07,200 --> 00:59:13,480
your own class names to build up
your own more complex, I guess 

894
00:59:13,480 --> 00:59:16,720
primitive components. 
So like our card component 

895
00:59:16,720 --> 00:59:20,480
itself right now it's pretty 
basic, but then you could use 

896
00:59:20,480 --> 00:59:24,040
this to build up your own so 
it's a little more tailored to 

897
00:59:24,040 --> 00:59:26,960
your own needs and. 
Solutions so you can make like 

898
00:59:26,960 --> 00:59:30,200
an Alex card that would have all
the styles that you just added 

899
00:59:30,200 --> 00:59:31,160
to. 
Yeah. 

900
00:59:31,480 --> 00:59:33,360
Cool. 
Oh, totally makes sense. 

901
00:59:33,640 --> 00:59:36,320
Thank you. 
Yeah, I would just add to that 

902
00:59:36,320 --> 00:59:40,000
too, like the the connected 
components and theming the 

903
00:59:40,000 --> 00:59:43,040
connected components is 
definitely a huge part of that. 

904
00:59:43,040 --> 00:59:46,640
Like Heather's saying where you 
style the authenticator, now you

905
00:59:46,640 --> 00:59:50,760
can also style the rest of your 
app in the same way and have all

906
00:59:50,760 --> 00:59:54,960
of the styling in one place. 
But then there's that Figma 

907
00:59:54,960 --> 00:59:58,760
integration that I was talking 
about earlier as well, where if 

908
00:59:58,760 --> 01:00:01,680
there's like data connected 
components that you want to 

909
01:00:01,680 --> 01:00:06,000
connect to data, and then you 
want the rest of your app to 

910
01:00:06,000 --> 01:00:09,000
have the same components and use
the same theme. 

911
01:00:09,360 --> 01:00:13,320
That Figma integration is using 
that same theme object. 

912
01:00:13,880 --> 01:00:18,720
So you can actually in Figma 
change all your color schemes, 

913
01:00:18,720 --> 01:00:22,320
all your spacing and and set all
of those things in Figma So you 

914
01:00:22,320 --> 01:00:26,680
can work with your designer on 
like what the styling is at that

915
01:00:26,680 --> 01:00:28,520
layer. 
And then when you import that 

916
01:00:28,520 --> 01:00:32,600
into your app, now the rest of 
your components now have that 

917
01:00:32,600 --> 01:00:34,080
branded. 
Look and feel. 

918
01:00:34,400 --> 01:00:35,400
Gotcha. 
Yeah, that's really cool. 

919
01:00:36,920 --> 01:00:39,640
Awesome. 
Eric, do you want to finish up 

920
01:00:39,640 --> 01:00:42,200
the authenticators? 
Sure, Sir. 

921
01:00:42,200 --> 01:00:44,480
Are we good on time? 
Yeah, we're great. 

922
01:00:44,720 --> 01:00:46,960
We have another 30 minutes, so 
take your time. 

923
01:00:47,680 --> 01:00:51,400
All right, well, thanks. 
So yeah, I'm, I'm going to show 

924
01:00:51,400 --> 01:00:56,960
it today how we can take 
Heather's design here, her app 

925
01:00:57,000 --> 01:01:01,000
and add authentication into it. 
So we left off with the sign in 

926
01:01:01,000 --> 01:01:03,720
button here. 
There's just authenticator goes 

927
01:01:03,720 --> 01:01:06,880
here, there's nothing there. 
And so we want to add in a way 

928
01:01:06,880 --> 01:01:11,240
for someone to log in and maybe 
have like some, we'll have some 

929
01:01:11,240 --> 01:01:15,200
routes that are protected that 
can only be accessed by users 

930
01:01:15,200 --> 01:01:19,640
that are authorized. 
So before we start, if you're 

931
01:01:19,720 --> 01:01:24,960
following along at home, you can
add in, you can add in the 

932
01:01:25,000 --> 01:01:27,400
authenticator in our documents 
here. 

933
01:01:27,400 --> 01:01:31,560
If you go to Connected 
Components Authenticator, it 

934
01:01:31,560 --> 01:01:35,320
shows you a quick start guide, 
but it's essentially you have 

935
01:01:35,320 --> 01:01:40,920
to, you can install Amplify CLI 
and then you run this Amplify 

936
01:01:40,920 --> 01:01:44,320
NIT command and Amplify add offs
in the systems. 

937
01:01:44,920 --> 01:01:47,560
You can, you have an AWS account
already. 

938
01:01:47,560 --> 01:01:51,040
If you don't, it's they have a 
generous free plan that you can 

939
01:01:51,040 --> 01:01:55,680
check out and you can get into 
the AWS ecosystem. 

940
01:01:56,080 --> 01:01:57,640
But you can do this on the 
command line. 

941
01:01:58,600 --> 01:02:01,200
Scott and Heather already 
mentioned Studio, which is a, a 

942
01:02:01,200 --> 01:02:05,120
product that has more of a what 
you see what you get interface. 

943
01:02:05,120 --> 01:02:08,880
You can just click on things and
generate your back end really 

944
01:02:08,880 --> 01:02:11,440
easily, including adding 
authentication through our 

945
01:02:11,440 --> 01:02:13,800
Cognito service. 
You can do it that way. 

946
01:02:13,800 --> 01:02:16,680
And we even mentioned there's 
there's other ways of, of 

947
01:02:16,800 --> 01:02:19,680
generating your back end. 
And when you do this, it creates

948
01:02:19,680 --> 01:02:23,960
the cloud formation script, 
cloud formation scripts that 

949
01:02:24,160 --> 01:02:28,200
generate your back end. 
Then you would install this AW 

950
01:02:28,480 --> 01:02:32,000
amplify UI React and AW 
amplifies or NPM install or 

951
01:02:32,000 --> 01:02:34,280
yarn, and then you'll be all 
set. 

952
01:02:34,880 --> 01:02:38,640
So for the sake of time, I 
already did that here in this in

953
01:02:38,640 --> 01:02:45,000
this app here. 
And if we go and look at the 

954
01:02:45,000 --> 01:02:47,320
side, you see there's an AWS 
exports file. 

955
01:02:47,320 --> 01:02:52,040
So that has all the information 
we need for our application. 

956
01:02:52,040 --> 01:02:56,440
It has where to connect to for 
our user pool through that's 

957
01:02:56,440 --> 01:02:58,880
used with our Cognito service 
for authentication. 

958
01:02:59,400 --> 01:03:03,400
You would typically also see an 
Amplify folder here, but since 

959
01:03:03,560 --> 01:03:05,280
I'm this is just a quick demo, I
don't have it. 

960
01:03:05,280 --> 01:03:08,360
That would be also generated 
inside that folder would have 

961
01:03:08,360 --> 01:03:13,320
all your cloud formation scripts
and everything you need in that 

962
01:03:13,320 --> 01:03:16,320
place to redeploy your back end 
and things like that. 

963
01:03:18,280 --> 01:03:21,200
So let's see, let's let's just 
jump into the code here and see 

964
01:03:21,200 --> 01:03:24,800
if we can get and authenticator 
working on this sign in Page. 

965
01:03:25,600 --> 01:03:28,240
So first we need to do a little 
housekeeping. 

966
01:03:28,240 --> 01:03:30,960
We need to we have this Amplify 
here. 

967
01:03:30,960 --> 01:03:35,360
We need to import in that that 
AWS exports file, so we can 

968
01:03:36,520 --> 01:03:40,680
print in from AWS exports. 
And then we need to do an 

969
01:03:40,680 --> 01:03:45,240
amplify dot configure, which 
will then pass in the exports 

970
01:03:45,240 --> 01:03:48,520
file. 
And then finally, because we're 

971
01:03:48,840 --> 01:03:52,680
dealing with routes, there is a 
headless option. 

972
01:03:52,680 --> 01:03:54,960
So we want to really make the 
authenticator. 

973
01:03:54,960 --> 01:03:58,840
We, we made the authenticator 
when we, when we did this last 

974
01:03:58,840 --> 01:04:04,200
year, we made it very flexible 
and we made it to the point 

975
01:04:04,200 --> 01:04:06,960
where you can really customize 
it. 

976
01:04:06,960 --> 01:04:10,680
And so we had this headless 
usage option which allows us to 

977
01:04:10,680 --> 01:04:13,480
get into the internals. 
We use something called X state 

978
01:04:13,480 --> 01:04:16,440
to do our state management. 
So you can get into kind of the 

979
01:04:16,440 --> 01:04:20,560
internals and get what route 
things are on and you can use it

980
01:04:20,960 --> 01:04:23,760
to really customize the 
experience when you're logging 

981
01:04:23,760 --> 01:04:27,200
in. 
So we're going to to do that, 

982
01:04:27,200 --> 01:04:30,000
you have to add this 
authenticator provider and you 

983
01:04:30,000 --> 01:04:31,880
have to surround your app, all 
whole app by it. 

984
01:04:31,880 --> 01:04:40,040
So we'll go ahead and do that 
provider and then we'll just put

985
01:04:40,080 --> 01:04:42,960
this in here. 
Now the whole app is surrounded 

986
01:04:42,960 --> 01:04:45,760
by authenticator provider. 
So now one last step. 

987
01:04:45,920 --> 01:04:50,160
This was already added in here, 
but I added in this AW Amplify 

988
01:04:50,160 --> 01:04:52,000
UI Rack styles. 
So this is going to add the 

989
01:04:52,000 --> 01:04:55,560
styles for our authenticator, 
some default styles. 

990
01:04:55,560 --> 01:04:58,400
Otherwise it won't be completely
unstyled, but we want to make 

991
01:04:58,400 --> 01:05:03,560
sure that's in there too. 
OK, so let's go into the login 

992
01:05:05,920 --> 01:05:07,760
and once again, we go back to 
our app. 

993
01:05:07,760 --> 01:05:10,320
Here it says authenticator goes 
here. 

994
01:05:10,320 --> 01:05:14,640
So that's not too helpful. 
So let's add in the 

995
01:05:14,640 --> 01:05:17,600
authenticator. 
Sophie, you save it. 

996
01:05:19,200 --> 01:05:21,280
So this is interesting, and 
nothing's showing up here. 

997
01:05:21,280 --> 01:05:25,520
And I think I know why. 
It's because I need to clear my 

998
01:05:25,520 --> 01:05:29,320
cache 'cause I'm already logged 
in. 

999
01:05:30,200 --> 01:05:32,240
Let's see here. 
Let's go to the application. 

1000
01:05:34,080 --> 01:05:36,560
Yeah, so I need to. 
I was doing a demo earlier and I

1001
01:05:36,560 --> 01:05:39,200
was logged in, so we'll just 
clear that. 

1002
01:05:40,280 --> 01:05:44,640
There we go. 
OK, so here it is and that's 

1003
01:05:44,640 --> 01:05:46,840
just because I was already 
logged in the browser thought I 

1004
01:05:46,840 --> 01:05:49,880
was logged in and I didn't have 
anything. 

1005
01:05:49,880 --> 01:05:52,240
Well, I'll show you guys here in
a second what I mean. 

1006
01:05:52,480 --> 01:05:55,080
So here is the app. 
You can also notice that this 

1007
01:05:55,080 --> 01:05:58,720
looks a little different than 
the default app. 

1008
01:05:58,720 --> 01:06:02,760
If we go to the authenticator 
here, like this kind of has the 

1009
01:06:02,800 --> 01:06:07,560
this this light blue blue, 
greenish colors and this has 

1010
01:06:07,600 --> 01:06:11,960
like a darker green. 
That's because the styles that 

1011
01:06:12,200 --> 01:06:16,960
Heather already created are 
already being applied to the 

1012
01:06:16,960 --> 01:06:18,560
authenticator. 
And that's one of the reasons 

1013
01:06:19,160 --> 01:06:23,960
you may want to use our theme 
system and our components, 

1014
01:06:23,960 --> 01:06:28,040
because as you use our 
authenticator and our other 

1015
01:06:28,040 --> 01:06:30,520
connected components, it it's 
all ties into the same 

1016
01:06:30,520 --> 01:06:32,520
ecosystem. 
So it just kind of all fits 

1017
01:06:32,520 --> 01:06:35,600
together really nicely. 
And you can see here, we, we, 

1018
01:06:35,760 --> 01:06:37,280
we, these are the colors already
put in. 

1019
01:06:37,280 --> 01:06:41,000
You can even go even further. 
I added this in before the call 

1020
01:06:41,040 --> 01:06:44,320
or Heather added this in and 
added in like some border width 

1021
01:06:44,320 --> 01:06:47,120
for the router so you can use 
the theme object which I won't 

1022
01:06:47,120 --> 01:06:49,920
get into further. 
To even more customize this. 

1023
01:06:49,920 --> 01:06:52,720
You can even get rid of these 
tabs and make sure make it so 

1024
01:06:52,720 --> 01:06:58,680
only someone can log in and not 
log out or they can sign in but 

1025
01:06:58,680 --> 01:07:00,600
they can't create account. 
That is you can't always log 

1026
01:07:00,600 --> 01:07:04,480
out. 
And what I want to do here is I 

1027
01:07:04,480 --> 01:07:08,680
want so when it log, when you 
log in or sign in, anything 

1028
01:07:08,680 --> 01:07:11,520
between the opening and closing 
brackets of the authenticator 

1029
01:07:11,520 --> 01:07:14,240
will be displayed. 
So sometimes you'll see in 

1030
01:07:14,240 --> 01:07:18,240
simpler apps, you'll surround 
your whole application with the 

1031
01:07:18,240 --> 01:07:19,560
authenticator. 
So if you're creating like a 

1032
01:07:19,560 --> 01:07:22,520
dashboard and you only want 
authenticated or authorized 

1033
01:07:22,520 --> 01:07:25,160
people to to be in there, then 
you would surround your whole 

1034
01:07:25,160 --> 01:07:27,560
app by the authenticator. 
But since we have multiple 

1035
01:07:27,560 --> 01:07:30,760
routes here, we can just want to
show it on this one login page. 

1036
01:07:32,320 --> 01:07:36,680
Now once you login, I want to 
show a sign out button. 

1037
01:07:38,720 --> 01:07:43,240
So I'll do sign out here and 
I'll go ahead and use since we 

1038
01:07:43,240 --> 01:07:49,040
do have one, we'll use a button 
just from the UI, our UI React 

1039
01:07:49,040 --> 01:07:55,440
library. 
And then we also want it to sign

1040
01:07:55,440 --> 01:07:57,720
out. 
So we'll we'll just do sign out 

1041
01:07:59,080 --> 01:08:04,680
and then we'll do an onclick and
we'll pass sign out there. 

1042
01:08:06,280 --> 01:08:07,960
Cool. 
So now we have this this sign 

1043
01:08:07,960 --> 01:08:11,400
out button that will only show 
after you log in. 

1044
01:08:11,400 --> 01:08:13,560
So let's create an account and 
let me give you like a quick 

1045
01:08:13,560 --> 01:08:15,800
tour. 
Scott mentioned a few of these 

1046
01:08:15,800 --> 01:08:17,439
things, but we can see it in 
action here. 

1047
01:08:18,160 --> 01:08:22,200
So by the way, when you use that
Amplify CLI and you generate 

1048
01:08:22,200 --> 01:08:24,399
your authenticated back end, 
it's going to ask you some 

1049
01:08:24,399 --> 01:08:29,120
questions if you want to use 
sign in by e-mail or username or

1050
01:08:29,120 --> 01:08:32,160
by phone. 
And I just chose the defaults, 

1051
01:08:32,160 --> 01:08:35,399
which was username, but you can 
certainly customize that if you 

1052
01:08:35,399 --> 01:08:37,359
want to use e-mail, which is 
pretty common. 

1053
01:08:37,359 --> 01:08:40,880
So if you create a new account 
here you can go. 

1054
01:08:40,880 --> 01:08:44,160
I can put some information, I'm 
just using old e-mail address I 

1055
01:08:44,160 --> 01:08:48,240
have here and some put some 
test. 

1056
01:08:48,840 --> 01:08:51,920
And you can also notice as I was
typing, it gives you a little 

1057
01:08:51,920 --> 01:08:55,800
bit of information like if 
you're doing it wrong because 

1058
01:08:55,800 --> 01:09:00,760
there is there is a certain 
restrictions and how you put the

1059
01:09:00,760 --> 01:09:04,040
passwords in, which is 
configurable in Cognito. 

1060
01:09:05,279 --> 01:09:07,120
And then yeah, here I'll put the
e-mail address in. 

1061
01:09:07,120 --> 01:09:12,520
Now it's an old e-mail I have. 
And then I'll just put this in 

1062
01:09:12,520 --> 01:09:14,120
here. 
It's the username. 

1063
01:09:14,880 --> 01:09:16,560
So I'll click create create 
account here. 

1064
01:09:16,560 --> 01:09:20,439
And now it's it's emailing me, 
which I'll grab this code from 

1065
01:09:20,479 --> 01:09:27,160
another, another tab. 
You can't see right now because 

1066
01:09:27,160 --> 01:09:29,359
I'm logged into my e-mail and 
I'll put it in here. 

1067
01:09:29,359 --> 01:09:31,720
And also if you forgot your 
password, you can click resend 

1068
01:09:31,960 --> 01:09:33,560
code. 
I'll click confirm. 

1069
01:09:34,120 --> 01:09:36,640
So it'll go ahead and log in. 
And now I just see a sign out 

1070
01:09:36,640 --> 01:09:38,880
button. 
But if you look underneath the 

1071
01:09:38,880 --> 01:09:44,520
covers and you go into your 
application tab, you can see 

1072
01:09:45,520 --> 01:09:48,840
that there is all these keys in 
here. 

1073
01:09:48,840 --> 01:09:52,479
So essentially, now you're 
completely logged in, you can 

1074
01:09:52,479 --> 01:09:57,080
use our JavaScript library to 
get your Jason web tokens, which

1075
01:09:57,080 --> 01:10:00,800
are kind of ways to talk to our 
back end services. 

1076
01:10:00,800 --> 01:10:04,000
Now you're kind of in the AP in 
the AWS ecosystem. 

1077
01:10:04,000 --> 01:10:07,080
So you can use this with the API
Gateway and restrict access to 

1078
01:10:07,080 --> 01:10:12,200
certain routes or to certain 
Lambdas or your EC2 instances. 

1079
01:10:12,200 --> 01:10:13,480
So you're kind of in the 
ecosystem. 

1080
01:10:13,480 --> 01:10:17,680
You're authenticated and logged 
in at this point. 

1081
01:10:18,000 --> 01:10:20,680
And if you click log out, we're 
signed out. 

1082
01:10:21,480 --> 01:10:24,040
And then you can always forget 
your password. 

1083
01:10:24,040 --> 01:10:26,400
It well, if you forget your 
password, you can click here. 

1084
01:10:26,400 --> 01:10:30,640
This is all built in and as we 
mentioned before you can do 

1085
01:10:30,640 --> 01:10:32,920
Federated sign in. 
Someone asked me the other day 

1086
01:10:32,920 --> 01:10:40,760
could I hook my existing out my 
existing Microsoft SAML based 

1087
01:10:40,840 --> 01:10:44,320
login system into Cognito and 
it's like, yes you can do 

1088
01:10:44,320 --> 01:10:47,760
Federated logins. 
You can set up your existing 

1089
01:10:49,120 --> 01:10:53,040
authorization systems with 
Cognito and it works with the 

1090
01:10:53,800 --> 01:10:57,640
with the authenticator here or 
our JavaScript library. 

1091
01:10:59,160 --> 01:11:01,600
So now we kind of have a good 
idea of how this works. 

1092
01:11:01,600 --> 01:11:03,680
And of course you can do multi 
factor authentication. 

1093
01:11:03,680 --> 01:11:07,200
I've seen companies too where 
they don't let users sign up, so

1094
01:11:07,200 --> 01:11:09,520
they create the accounts and the
first time they log in it asks 

1095
01:11:09,520 --> 01:11:11,520
for the new password. 
We can do that. 

1096
01:11:12,680 --> 01:11:15,720
We can even set it up if you 
wanted to skip verification, you

1097
01:11:15,720 --> 01:11:18,680
didn't want someone to enter a 
code in when they sign up. 

1098
01:11:18,840 --> 01:11:24,440
You can do that too. 
Let's take a look at this. 

1099
01:11:24,440 --> 01:11:27,360
So we have the sign in Page, but
you notice it didn't really do 

1100
01:11:27,360 --> 01:11:29,720
too much. 
It just kind of went to it 

1101
01:11:29,720 --> 01:11:36,600
showed that sign out button, but
I wanted to go to a protected 

1102
01:11:36,600 --> 01:11:38,440
page. 
So first, I just want to see if 

1103
01:11:38,440 --> 01:11:41,120
I can get it to go to that admin
page. 

1104
01:11:43,320 --> 01:11:45,160
Does that, Alex, does that sound
good? 

1105
01:11:45,400 --> 01:11:49,640
Yeah, that sounds great. 
One thing that people I think 

1106
01:11:49,640 --> 01:11:52,400
that watch the show are used to 
doing like Firebase and things 

1107
01:11:52,400 --> 01:11:55,480
like that, would you mind 
jumping back into that config 

1108
01:11:55,480 --> 01:11:59,160
and just showing like the actual
API key and like how that 

1109
01:11:59,160 --> 01:12:01,840
configuration is happening? 
Sure. 

1110
01:12:01,840 --> 01:12:11,280
So in the, so in the what's it 
index TSX file right here, you 

1111
01:12:12,080 --> 01:12:16,880
you essentially once you 
configure through the Amplify 

1112
01:12:17,600 --> 01:12:21,960
init command that you install 
the CLI or you could do it 

1113
01:12:21,960 --> 01:12:25,920
through studio and then you rent
Amplify add off, it generates 

1114
01:12:25,920 --> 01:12:31,040
this AWS exports file here. 
So just for folks listening, 

1115
01:12:31,120 --> 01:12:34,720
what that actually is doing like
in AWS at that point, it's 

1116
01:12:34,720 --> 01:12:38,520
setting up that whole Cognito 
part and then this, this AWS 

1117
01:12:38,720 --> 01:12:42,720
exports piece, it's just a 
definition of those API keys 

1118
01:12:42,720 --> 01:12:45,240
coming back. 
Exactly. 

1119
01:12:45,360 --> 01:12:48,680
Yep, that's the definition of 
where where all those keys are. 

1120
01:12:48,720 --> 01:12:52,880
And it creates the cloud 
formation scripts, which are, 

1121
01:12:53,480 --> 01:12:56,600
you know, infrastructure as 
code, so it knows how to 

1122
01:12:56,600 --> 01:12:59,240
generate the back end. 
You can easily delete the back 

1123
01:12:59,240 --> 01:13:03,640
end just from the command line, 
so it kind of does all that for 

1124
01:13:03,640 --> 01:13:05,720
you, which is great for front 
end developers. 

1125
01:13:05,720 --> 01:13:08,000
Or or you're just trying to 
create a project and you don't 

1126
01:13:08,000 --> 01:13:13,240
want to have to write 
complicated cloud formation 

1127
01:13:13,240 --> 01:13:17,000
terraform, CDK scripts yourself.
You can use tools like this that

1128
01:13:17,000 --> 01:13:20,120
just auto generate it all. 
And the really cool part too, is

1129
01:13:20,120 --> 01:13:24,040
that all three of you can be in 
the same project and you can 

1130
01:13:24,040 --> 01:13:27,920
pull down what's already up 
there in the Amplify side of 

1131
01:13:27,920 --> 01:13:30,280
things to your local and run it 
as well. 

1132
01:13:31,320 --> 01:13:34,680
Excuse me? 
Yes, yeah, multiple 

1133
01:13:34,680 --> 01:13:35,840
environments. 
Yep. 

1134
01:13:37,080 --> 01:13:39,000
Yeah, totally. 
Let's let's check out one of 

1135
01:13:39,000 --> 01:13:40,880
those protected routes that 
we're going to show. 

1136
01:13:41,880 --> 01:13:45,040
OK, cool. 
All right, let's jump back into 

1137
01:13:45,240 --> 01:13:52,480
the login. 
All right, so in this login 

1138
01:13:52,480 --> 01:13:56,280
route, we're going to use this 
use Authenticator, which is 

1139
01:13:56,560 --> 01:14:00,720
gives us availability some some 
hooks that we can use to kind of

1140
01:14:00,720 --> 01:14:03,320
dig into the eternals of our 
app. 

1141
01:14:05,440 --> 01:14:10,400
So let's let's let's do that. 
I'm gonna grab this route and 

1142
01:14:10,680 --> 01:14:13,880
I'll make this a little bigger. 
I think that'll be easier to 

1143
01:14:13,880 --> 01:14:18,000
see. 
And this route will equal use 

1144
01:14:18,000 --> 01:14:22,320
authenticator. 
And then we have it's a little 

1145
01:14:22,320 --> 01:14:25,480
bit different syntax, but this 
is all inside the documentation.

1146
01:14:26,280 --> 01:14:30,200
We have this context and we'll 
do this context dot route. 

1147
01:14:30,200 --> 01:14:33,040
And this just says we're going 
to use this this route object, 

1148
01:14:33,040 --> 01:14:36,360
which changes when someone is 
authenticated or they're signed 

1149
01:14:36,360 --> 01:14:38,880
out or in their sign up or or 
sign in pages or wherever 

1150
01:14:38,880 --> 01:14:41,320
they're at. 
And then we're going to use this

1151
01:14:41,320 --> 01:14:46,600
navigate, which is through the 
React router. 

1152
01:14:46,800 --> 01:14:50,320
And this is, by the way, this 
use authenticator was just 

1153
01:14:50,320 --> 01:14:54,680
imported in from UI React. 
So now we can do this use fact 

1154
01:14:57,640 --> 01:14:59,960
and we'll just do it. 
Just the easy if statement. 

1155
01:14:59,960 --> 01:15:06,240
If route equal equals 
authenticated, then we're going 

1156
01:15:06,240 --> 01:15:14,320
to navigate to the admin and 
replace equal race true. 

1157
01:15:16,920 --> 01:15:20,280
What this should do is once 
someone gets authenticated, it 

1158
01:15:20,280 --> 01:15:26,840
should go to the admin route. 
So let's see if that worked and 

1159
01:15:26,840 --> 01:15:32,640
we'll come back here. 
Let me hand chat for logging in.

1160
01:15:33,720 --> 01:15:40,880
And it just takes a second more 
than a second. 

1161
01:15:43,960 --> 01:15:47,080
There we go. 
So we're logged in and now we 

1162
01:15:47,520 --> 01:15:49,560
went to the admin, right? 
You can see the admin changed to

1163
01:15:49,560 --> 01:15:51,520
here and we have we have 
information here. 

1164
01:15:52,240 --> 01:15:53,960
So cool. 
But you know, it's right away. 

1165
01:15:53,960 --> 01:15:56,320
Like it still says sign in here.
That's kind of weird. 

1166
01:15:56,680 --> 01:15:58,640
Maybe we should fix that to say 
sign out. 

1167
01:15:59,920 --> 01:16:02,960
So let's let's do that in our 
header file. 

1168
01:16:06,360 --> 01:16:08,600
So someone can, you know, sign 
out after they do this? 

1169
01:16:10,400 --> 01:16:12,720
So. 
We're going to add in right 

1170
01:16:12,720 --> 01:16:16,680
here, and I already did. 
This is a lot of stuff that 

1171
01:16:16,680 --> 01:16:19,320
Heather already did. 
It's just a header at the top. 

1172
01:16:20,160 --> 01:16:22,680
So I'm going to once again grab 
some stuff out. 

1173
01:16:23,120 --> 01:16:28,360
We're going to add that route 
and sign out is used, use 

1174
01:16:28,360 --> 01:16:30,560
authenticator again, which I 
already have imported in. 

1175
01:16:32,280 --> 01:16:38,280
And then we'll have this context
context object which will return

1176
01:16:38,360 --> 01:16:41,880
a context dot route and a 
context dot sign out. 

1177
01:16:42,800 --> 01:16:45,800
And that's just kind of the 
syntax we use for these kind of 

1178
01:16:45,800 --> 01:16:48,040
headless hooks that we're, we're
going to use. 

1179
01:16:48,960 --> 01:16:51,320
And then we'll add right here a 
sign out. 

1180
01:16:53,520 --> 01:16:58,280
And right now all we have is 
this view here with this button 

1181
01:16:58,280 --> 01:17:01,800
that says sign in. 
So right under here, I'm going 

1182
01:17:01,800 --> 01:17:08,320
to add in a right route equal 
equals authenticated. 

1183
01:17:09,640 --> 01:17:13,080
Then we want to do something 
else. 

1184
01:17:13,080 --> 01:17:17,560
We want to do something else. 
So if they're authenticated, we 

1185
01:17:17,560 --> 01:17:21,040
want to show a button that says 
sign out. 

1186
01:17:21,040 --> 01:17:25,840
So we're going to call this sign
out, but we want to come in 

1187
01:17:25,840 --> 01:17:32,640
here, add an onclick handler or 
log out that function we created

1188
01:17:36,640 --> 01:17:40,080
and then for here, and it's 
giving me an error because I 

1189
01:17:40,080 --> 01:17:46,280
need to move this up and I'll 
move this in here. 

1190
01:17:47,840 --> 01:17:50,960
OK, All right, so you see it's 
changed to sign out now. 

1191
01:17:50,960 --> 01:17:54,120
So I think it's already working.
So notice that I'm authenticated

1192
01:17:54,640 --> 01:17:59,200
and now it's letting me fix it. 
So if I click sign out, it's 

1193
01:17:59,200 --> 01:18:00,960
sign out. 
And you can see here I need to 

1194
01:18:00,960 --> 01:18:04,000
do one other thing, go back to 
the login. 

1195
01:18:05,480 --> 01:18:08,840
And we don't need this any 
longer because we're doing the 

1196
01:18:08,840 --> 01:18:11,360
rats every way. 
So let's try it again. 

1197
01:18:12,720 --> 01:18:20,960
That login we just created and 
signing in is just taking 

1198
01:18:21,280 --> 01:18:24,600
unusually long time. 
Maybe my system's a little slow 

1199
01:18:24,600 --> 01:18:26,960
today. 
OK, cool. 

1200
01:18:26,960 --> 01:18:30,560
We see the sign out here at the 
top and we click sign out. 

1201
01:18:30,600 --> 01:18:35,200
So what we did here is we're 
redirecting to the to this 

1202
01:18:35,200 --> 01:18:37,120
route. 
But you can notice if if I just 

1203
01:18:37,120 --> 01:18:41,080
type in admin here, we have now 
secretly gotten to the admin 

1204
01:18:41,080 --> 01:18:44,040
route even though we're not 
logged in, which is not what we 

1205
01:18:44,040 --> 01:18:46,160
want to do. 
So let's see real quick how we 

1206
01:18:46,160 --> 01:18:49,200
can create an like a protected 
route. 

1207
01:18:49,840 --> 01:18:52,920
And just to be clear, this is 
just protecting it on the client

1208
01:18:52,920 --> 01:18:54,800
side. 
If you were doing this in 

1209
01:18:54,800 --> 01:18:57,720
production, you really need to 
protect it on the server side. 

1210
01:18:57,760 --> 01:19:03,000
So any kind of back end end 
points you need to probably put 

1211
01:19:03,000 --> 01:19:06,600
behind like an API gateway or 
have some authentication 

1212
01:19:06,600 --> 01:19:11,400
authorization rules in place. 
Otherwise people could just 

1213
01:19:11,800 --> 01:19:14,760
probably get into it because you
never trust the client. 

1214
01:19:16,120 --> 01:19:18,240
It's a great reminder. 
People forget that all the time.

1215
01:19:18,240 --> 01:19:22,840
All. 
Right, so to to protect this 

1216
01:19:22,840 --> 01:19:31,040
route, I'm going to go to our 
app TSX file and right here, 

1217
01:19:31,040 --> 01:19:32,800
this is the admin route. 
You see, there's nothing really 

1218
01:19:32,800 --> 01:19:34,680
special here. 
So I'm kind of acting like a, a 

1219
01:19:34,800 --> 01:19:39,600
route card, but this is really, 
I'm using AI already did this 

1220
01:19:39,600 --> 01:19:44,600
beforehand just to save time. 
This is really looking at our 

1221
01:19:44,600 --> 01:19:48,640
use authenticator using that 
route and then navigating to 

1222
01:19:48,640 --> 01:19:51,120
this. 
So this is just a real simple 

1223
01:19:51,560 --> 01:19:55,040
way to change the navigation 
depending on if users 

1224
01:19:55,040 --> 01:20:00,280
authenticated or not. 
And so I I wrote this earlier 

1225
01:20:01,800 --> 01:20:05,200
and so that should be we can 
just use this require auth 

1226
01:20:05,200 --> 01:20:08,440
component and surround it. 
And this is also very similar if

1227
01:20:08,440 --> 01:20:11,880
you look at the rack router 
documentation on how to create 

1228
01:20:11,880 --> 01:20:14,640
protected routes. 
So I stole some inspiration from

1229
01:20:14,640 --> 01:20:19,840
there. 
So we just do require us here. 

1230
01:20:20,600 --> 01:20:25,880
We'll put the edit property in 
the middle and that should be 

1231
01:20:25,880 --> 01:20:28,000
it. 
So let's see if it works. 

1232
01:20:28,000 --> 01:20:34,280
So if we go up here and we do 
admin, so it redirected to 

1233
01:20:34,280 --> 01:20:36,880
login. 
So it didn't show the route as 

1234
01:20:37,920 --> 01:20:39,280
which is the right thing it 
should do. 

1235
01:20:39,280 --> 01:20:43,320
So it's redirects to login. 
Now if we login, we just make 

1236
01:20:43,320 --> 01:20:46,960
sure this didn't break and that 
you can get to the admin route. 

1237
01:20:51,160 --> 01:20:55,640
And is it thinking is it signs 
in cool? 

1238
01:20:55,640 --> 01:20:57,520
So it's still logging into the 
admin route. 

1239
01:20:58,080 --> 01:21:01,920
And then at this point we would,
we could fill out all this 

1240
01:21:01,920 --> 01:21:05,880
information, we click save 
property, hit our external 

1241
01:21:06,000 --> 01:21:11,960
endpoints in our AWS ecosystem 
and be protected and and we 

1242
01:21:11,960 --> 01:21:15,520
would be all set from there. 
So that's all I have to show on 

1243
01:21:15,520 --> 01:21:17,760
this. 
Nice. 

1244
01:21:18,880 --> 01:21:23,400
Any questions? 
That was a really good overview.

1245
01:21:23,400 --> 01:21:29,080
I love how the UI components are
all tied in just as far as like 

1246
01:21:29,080 --> 01:21:34,720
if no one's done AWS Amplify 
before, do you guys, can you 

1247
01:21:34,720 --> 01:21:37,760
talk a little bit about like the
features that are there for like

1248
01:21:37,760 --> 01:21:40,800
real time and things like that? 
Would you mind? 

1249
01:21:44,880 --> 01:21:45,960
You want to talk about that, 
Eric? 

1250
01:21:45,960 --> 01:21:49,760
Or I could, yeah. 
So the question is what sort of 

1251
01:21:49,760 --> 01:21:53,680
real time features we have? 
Just in general like what what 

1252
01:21:53,680 --> 01:21:58,440
people use AWS Amplify for? 
Yeah, I mean, they use it for 

1253
01:21:58,440 --> 01:22:03,520
all sorts of things. 
Like a lot of the, the use case 

1254
01:22:03,520 --> 01:22:07,120
I just showed for the 
authenticator is pretty common. 

1255
01:22:07,480 --> 01:22:10,840
A lot of people use this 
authenticator and it's for to 

1256
01:22:10,840 --> 01:22:14,480
remind everyone again, it's for 
not just React, but for you view

1257
01:22:14,480 --> 01:22:19,000
and Angular and and we have 
Flutter and and we're supporting

1258
01:22:19,000 --> 01:22:22,960
more and more of these 
frameworks and libraries all the

1259
01:22:22,960 --> 01:22:26,560
time. 
But it's also really used a lot 

1260
01:22:26,600 --> 01:22:30,400
with our AWS JavaScript amplify 
library. 

1261
01:22:30,840 --> 01:22:35,760
And that library allows you to 
connect to Datastore app sync is

1262
01:22:35,760 --> 01:22:38,680
is really important. 
So it's almost like our manage 

1263
01:22:38,680 --> 01:22:43,600
graph QL interface. 
And we have tools like Datastore

1264
01:22:43,600 --> 01:22:48,000
that are similar to like 
Firestore where you can quickly 

1265
01:22:48,000 --> 01:22:53,160
like update data in real time. 
There's subscriptions that you 

1266
01:22:53,160 --> 01:22:54,800
can do with our App Sync 
service. 

1267
01:22:54,800 --> 01:22:57,720
So you don't have to set up web 
sockets or anything. 

1268
01:22:57,720 --> 01:23:01,280
Data will just automatically get
updated all the time. 

1269
01:23:01,760 --> 01:23:06,160
We have S3 tools that connect to
our, not really real time, but 

1270
01:23:06,360 --> 01:23:09,240
it would you can connect to S3 
buckets. 

1271
01:23:10,200 --> 01:23:14,040
So yeah, there's quite a quite a
few people things people use it 

1272
01:23:14,040 --> 01:23:17,400
from large, from small start-ups
and just need to get up and 

1273
01:23:17,400 --> 01:23:22,080
running really quickly or with 
AW ecosystem to, to even larger 

1274
01:23:22,080 --> 01:23:24,920
companies. 
And then we give hooks and ways 

1275
01:23:24,920 --> 01:23:30,360
in the background where you can,
would you say Scott eject from 

1276
01:23:30,360 --> 01:23:33,720
our amplified ecosystem at some 
point if you need to and and 

1277
01:23:33,720 --> 01:23:36,560
kind of and keep going with with
what you want. 

1278
01:23:37,240 --> 01:23:38,480
Yeah. 
I mean, we have like 

1279
01:23:38,480 --> 01:23:41,080
capabilities where you can add 
CDK. 

1280
01:23:41,080 --> 01:23:44,240
So if there's like something 
that's not available in Amplify,

1281
01:23:44,560 --> 01:23:48,560
then you can add a CDK. 
You can use CDK to kind of 

1282
01:23:48,840 --> 01:23:51,680
attach that when you deploy and 
then it'll deploy those 

1283
01:23:51,680 --> 01:23:55,680
resources as well. 
So there's a lot of flexibility 

1284
01:23:55,680 --> 01:23:58,360
there. 
And it kind of extends out all 

1285
01:23:58,360 --> 01:24:01,240
the way through the AWS like 
ecosystem after that, right? 

1286
01:24:01,240 --> 01:24:04,000
Like you can write your own 
Lambdas and kind of put those 

1287
01:24:04,040 --> 01:24:07,240
through all that sort of stuff. 
Yeah, exactly. 

1288
01:24:07,280 --> 01:24:09,240
Yeah, it's just connected right 
in. 

1289
01:24:10,640 --> 01:24:13,360
Nice. 
We may have lost Scott. 

1290
01:24:13,360 --> 01:24:16,240
I don't know. 
Or not Scott. 

1291
01:24:16,240 --> 01:24:19,200
Sorry, Eric. 
What happened there? 

1292
01:24:20,520 --> 01:24:21,800
Yeah. 
So, yeah. 

1293
01:24:21,800 --> 01:24:26,520
So I would also just say like, 
we're in open source library and

1294
01:24:26,520 --> 01:24:29,360
we treat feature requests really
seriously. 

1295
01:24:29,360 --> 01:24:33,000
So I'd encourage everyone to 
just check it out, play around 

1296
01:24:33,000 --> 01:24:35,800
with it, play with the 
authenticator, the UI 

1297
01:24:35,800 --> 01:24:38,800
components, some of the other 
Amplify features. 

1298
01:24:39,080 --> 01:24:43,160
And just let us know, you know, 
if, if there's a component that 

1299
01:24:43,160 --> 01:24:47,200
we're missing that you're really
interested in, tell us that 

1300
01:24:47,200 --> 01:24:51,720
because we're, we're currently 
working on more connected 

1301
01:24:51,720 --> 01:24:56,360
components and we just want to 
make this just make it easier 

1302
01:24:56,360 --> 01:24:59,840
for developers to build UIS that
connect to the cloud. 

1303
01:24:59,840 --> 01:25:02,040
So. 
Here's my my pipe dream 

1304
01:25:02,040 --> 01:25:05,160
component. 
I want to be able to create like

1305
01:25:05,160 --> 01:25:09,320
my Dynamo, set up my cloud like 
cloud formation does all of its 

1306
01:25:09,320 --> 01:25:12,360
bit, and then I get a table 
that's editable right 

1307
01:25:12,360 --> 01:25:15,520
out-of-the-box like that has all
the columns and I can update 

1308
01:25:15,520 --> 01:25:17,920
data in my app. 
What do you think? 

1309
01:25:18,520 --> 01:25:20,760
Absolutely. 
Let's start on it tomorrow. 

1310
01:25:21,600 --> 01:25:22,880
I'm sure it'll be a piece of 
cake. 

1311
01:25:23,040 --> 01:25:25,440
No problem, yeah. 
Oh yes, that doesn't sound 

1312
01:25:25,440 --> 01:25:28,040
complicated. 
If it's your dream component, 

1313
01:25:28,040 --> 01:25:29,880
then it's definitely going to be
complicated. 

1314
01:25:29,960 --> 01:25:32,320
Because yeah, we really love 
complex tables. 

1315
01:25:32,800 --> 01:25:34,640
That's my favorite component to 
design. 

1316
01:25:34,960 --> 01:25:39,120
I think you guys should like get
with the Kendo UI folks and just

1317
01:25:39,120 --> 01:25:42,360
like talk about table design and
like go to town on it. 

1318
01:25:42,360 --> 01:25:45,160
It would be great. 
Sounds good. 

1319
01:25:46,320 --> 01:25:48,360
Awesome. 
Well, thank you guys so much for

1320
01:25:48,360 --> 01:25:52,360
like giving me a full tour of 
all the new AWS Amplify UI 

1321
01:25:52,360 --> 01:25:55,160
components. 
It it sounds like even though 

1322
01:25:55,160 --> 01:25:57,880
like you're far along, there's 
probably a lot more that's going

1323
01:25:57,880 --> 01:26:00,000
to continue since you have this 
base now. 

1324
01:26:00,680 --> 01:26:01,960
Yeah, absolutely. 
Yeah. 

1325
01:26:01,960 --> 01:26:05,840
We have a lot of plans, 
especially with the primitives. 

1326
01:26:05,840 --> 01:26:09,720
We want to go across multi 
platform and multi frameworks. 

1327
01:26:10,040 --> 01:26:12,520
So we want to add more 
frameworks there for people 

1328
01:26:12,520 --> 01:26:17,040
using view and Angular and and 
then with components like, you 

1329
01:26:17,040 --> 01:26:19,360
know, like your idea is a great 
1:00. 

1330
01:26:19,360 --> 01:26:23,600
We we want to to add more 
components that just make things

1331
01:26:23,600 --> 01:26:27,880
easier for, for developers and 
take, take away some of those 

1332
01:26:27,880 --> 01:26:31,960
really complex workflows, but 
then also try to make them as 

1333
01:26:31,960 --> 01:26:36,320
flexible and customizable and 
themeable as possible. 

1334
01:26:36,360 --> 01:26:40,400
That's kind of our goal. 
And and also just make things 

1335
01:26:40,400 --> 01:26:44,440
smaller, faster, better. 
I think that's just taking what 

1336
01:26:44,440 --> 01:26:48,000
we have already and just making 
it that much easier for 

1337
01:26:48,000 --> 01:26:52,560
developers to use. 
And that's exactly we've been 

1338
01:26:52,560 --> 01:26:55,440
looking at that as well. 
You had mentioned before you 

1339
01:26:55,440 --> 01:26:58,880
used to use Stencil to kind of 
create the different frameworks 

1340
01:26:58,880 --> 01:27:01,040
or or use it in the different 
frameworks. 

1341
01:27:01,040 --> 01:27:05,400
Is there something you use today
to to be able to create those 

1342
01:27:05,400 --> 01:27:08,120
across like Angular, React, 
Flutter? 

1343
01:27:09,160 --> 01:27:13,240
So, so we ran into a lot of 
problems with Stencil, in 

1344
01:27:13,240 --> 01:27:17,920
particular around customization,
where like for example, the 

1345
01:27:17,920 --> 01:27:22,280
authenticator, you actually 
couldn't when it, when it was in

1346
01:27:22,280 --> 01:27:25,480
Stencil, you couldn't access it 
via password managers. 

1347
01:27:25,480 --> 01:27:28,960
So password managers couldn't 
see the fields because they were

1348
01:27:28,960 --> 01:27:32,840
in the shadow Dom. 
So there's, you know, a lot of 

1349
01:27:32,840 --> 01:27:36,640
limitations I think with web 
components in that regard in 

1350
01:27:36,640 --> 01:27:42,520
terms of like tooling to 
generate components. 

1351
01:27:42,640 --> 01:27:47,320
The the the philosophy that we 
took there is we really want to 

1352
01:27:47,320 --> 01:27:51,600
respect each framework for what 
it does and what it does well. 

1353
01:27:51,760 --> 01:27:57,440
So rather than auto generating 
components and maybe ending up 

1354
01:27:57,440 --> 01:28:00,760
with AP is that don't make quite
as much sense. 

1355
01:28:01,160 --> 01:28:04,760
The approach that we want to 
take is to build a React 

1356
01:28:04,760 --> 01:28:08,600
component that feels like a 
React component to build, you 

1357
01:28:08,600 --> 01:28:11,720
know, a view component that 
feels like a view component. 

1358
01:28:12,760 --> 01:28:17,520
And so as much as possible, we 
want to make AP is consistent 

1359
01:28:17,520 --> 01:28:22,640
across frameworks, but at the 
same time, we don't want to do 

1360
01:28:22,640 --> 01:28:26,360
things that are like unnatural 
for that particular framework. 

1361
01:28:26,680 --> 01:28:30,400
So, and for that reason, we 
really feel like it makes more 

1362
01:28:30,400 --> 01:28:36,640
sense for our goals with the UI 
framework to to write them as 

1363
01:28:36,640 --> 01:28:41,680
that, as that in that framework 
using kind of the paradigms and 

1364
01:28:41,920 --> 01:28:43,800
naming standards and all of 
that. 

1365
01:28:44,560 --> 01:28:48,040
Gotcha, Very cool. 
Probably my last question for 

1366
01:28:48,040 --> 01:28:52,360
you all, is this open source and
how can people get involved to 

1367
01:28:52,360 --> 01:28:55,600
help? 
Absolutely, yeah, it's a open 

1368
01:28:55,600 --> 01:28:58,560
source, I believe it's Apache 
two licensed. 

1369
01:28:59,040 --> 01:29:03,040
We have GitHub if you just 
search for Amplify UII think 

1370
01:29:03,040 --> 01:29:08,480
it's like the 2nd result and 
we'd love to hear, you know, 

1371
01:29:08,480 --> 01:29:12,360
feedback, feature requests, 
bugs, contributions. 

1372
01:29:12,360 --> 01:29:15,960
There's a lot of contributors 
the that help us, especially 

1373
01:29:15,960 --> 01:29:19,880
around docs issues, but we're 
also working with a few 

1374
01:29:20,240 --> 01:29:24,920
contributors on some some other 
features as well, like on our 

1375
01:29:24,920 --> 01:29:27,800
map component. 
Sweet, that sounds awesome. 

1376
01:29:28,480 --> 01:29:31,720
Well, again, thank you all so 
much for for joining me on this 

1377
01:29:31,720 --> 01:29:34,280
awesome Friday and kind of walk 
through some code. 

1378
01:29:34,280 --> 01:29:37,120
I really appreciate it and maybe
we can have you on once you get 

1379
01:29:37,120 --> 01:29:39,360
some more components going. 
Thank you. 

1380
01:29:39,440 --> 01:29:41,400
Yeah, it was great to be here. 
Thanks so much. 

1381
01:29:42,280 --> 01:29:43,680
Thanks y'all, take care. 
Yeah. 

1382
01:29:43,760 --> 01:29:44,360
Thanks everyone.
