I have a visualstudioprojectthatlinksthefontthatwe'regoingtobeusingfromGooglefundsaswellasthestylesheetthatwe'regoingtobeputtingallofourstylesinsideoftogetstarted.
WeneedtocreatealltheHTMLforthislog.
Informthatyouseeontherightherethere's gonnabe a bitmore 18 morethanusualforthisseries.
Sostickwithme.
Thefirstthingwewanttodoiscreate a divthatarefullscreenimageisgoingtositinsideof.
Wecouldjustgivethis a classoffullscreencontainerandtheninsideofherewe'regoingtowanttoputtheactualcontainerfor a loginform.
Wecouldgiveit a classoforgantitleandthenitstartedherewejustputourwelcometextandthenoutsideofthis, we'regoingtocreateourformandinsideofourformhere, we'regoingtowanttoputouremailfieldwith a labelourpasswordfeelwith a labelandourSinanbutton.
Thenextthingwewanttodoisyouwanttoset a fewdisplaypropertiesforourcontainer, sothatwayourloginformherewillbeinthecenterofourpage.
Todothat, we'lljustusefucksparkssowe'llset a displayofflex, willjustifythecontentscenterandaligntheitemsinthecentersothatourlonginformfulluphereintheverycenterofourpage.
Andnowwe'vealreadygot a greatstartonmakingourwagonpagelookexactlylikethis.
Nowlet's moveontostylingthecontainerfor a loginform.
And I havedecidedtouse H S O formybackgroundcolorbecauseallthecolorsonthepage, but I havearejust a differentshadeofthesameblue.
Soit's either a darkerorlighterversionofthesameblueandhshelpmakesitveryeasytochangethatwithjustoneofthenumbers.
So I'llpasteinhere.
Thecolorthat I havechosenandyoucouldseeto a oneisthehueofbluethatwe'regoingtobeusingontheentirepageandthislightnessvalueoverhere, we'regoingtobechangingforallthedifferentelementstogeteither a brighteror a darkerbluecolorNowifwesaythatandlookatourform, youseethatwenowhave a bluebackgroundaroundtheoutside, justlikewewantwith 60% hope a city.
Andnowwejustneedtoadd a littlebitofpaddingtoourformsothatit'lltakeup a littlebitofextraspaceandlook a littlecleaner.
We'regoingtoremoveallthemarginsfromthisbecauseweusedit H threeelementinsideofourindexhere, and H threeelementsbydefaulthave a margin, andwedon't wantanymarginonourwelcomeelementonthetop.
Sotoremoveallofourmargins, weputmarchingzeroandthen, sincewedowant a marginonthebottomWell, Adam, marginbottomhere, 40 pixels.
Justso.
Wehave a littlebitofspacebetweenourinputelementsandourtitleoftop.
Wait a bitsothatit's a littlebitlaterandwe'lljustchangeitsnormalfontlate.
Andifyousaythatyounowseethatourloginformisstartingtolook a lotlikeourlongandformoverhere, thenextthingweneedtodoistackletheactualgroupingofourinputs, whichwesurroundedbothofourinfantswiththisinputgroupclass.
Sowe'llselectthatincludegroup, andwhatwewanttodoisreallyusedisplayflexinordertocreate a columnbasicallyoutforemailaswell.
Asyoucanseeitjustlikethis, andthenextthingwewanttodoisadd a littlebitof a margin, sothere's spacebetweenthemWe'lljustuse a marginbottomandwe'llput 20 facesandthenwegonext.
We'regonnabemovingontotheactuallabelsfor a differentinputelements.
Sothefirstthingwewanttodoisuse a backgroundcolorforourdifferentelementssowecouldcomeintohere.
Wecanchangeourbackhometobebackgroundcolor, andthenwecanusethis a chessset, elColor, whichisjust a muchlighterversionofthathueofto a onethatweusedearlierwithin a pastyof 30%.
Andnowifyousaythatwehavethisnice, partiallyopaque, slightlybluebutmostlywhitebackgroundcolorwhichcomplementstheotherbluecolorsinourdesign, thenextthingthatwewanttodoisincreasethefontsizeandaddsomepaddingtourinputelementtomake a look a littlebitcleaner.
Sowe'lladdfunsizeheretobe 1.5 a.
M.
We'realsogoingtoadd a paddingof 0.1 e m onthetopandbottomand 0.25 p.
M ontheleftandright.
Andifyousaythatyounastythatwehave a muchlargerandcleanerlookingandputelementtoworkwith.
Andifyousaythatwetypeinhereunited, seethatwehave a verycleanlookinginputelementthatmatchesourinputelementfromthispageexceptforallweneedtodoismakeusthathighlightsandbluewhenwefocusonit.
Sotodothat, wejustneed a selectourmomentbygoingdownhereInputgroupselectedinputelementandusethefocusafteryoutosayonlysofindthesestyleswhenwe'refocusingontheelementandwewanttojustchangethebordersowe'llmakeitonepixel.
We'regonnause a solidcolor.
We'regonnausethatsameexactbluehue.
Butinsteadofhaving a lightnessof 6% we'regonnause 50% whichmeansyouwantedtobeasblueaspossible, withnoextrawhitehorribleaddedtoit.