So I alsohave a liveserverinstalled, so I'm gonnagoaheadandhitthatGoliveandhereyousee, wehave a bluewebsiteSoanimportantnotehereisthatweshouldnevermodifytheCSSfileonLeemodifythe S CSSfileeverytimethecompilerrunsisgoingtooverwritetheCSSfile.
Sonowif I savethisandwelookatourmainCSS, ithascompiledourresetsintoourmainCSSfromthepartialandalsonoticedthatthevendorpriestfixesareautomaticallyaddedbythecompiler.
Sowhatwecouldalsodoiswecouldcreateanotherfilehere, andwecouldnameitunderscorevariables, that s C.
Sotocreate a function, we'llputithereatthetop, and I'm gonnasayatfunctiontodefinethatthisis a function, andthenwewillnameitsothisAh, thismapgetinthefontwaistdownhere.
Mixinsareprettycool, so I'm gonnashowyouonemoremixinThisonehastodowithMediaQuery.
Sowe'regonnacreate a mixin, andwe'regonnacallitmobile, andthenwe'regoingtouse a mediaquerysojust a normalCSSmediaquerywe'regonnasayMaxWittoflet's justsay 800 pixelsandtheninherewewanttoincludecontent, sothiscontentwillbepassedwhenthemixingiscalled.
Now, whatwealsocoulddoinsteadofdefiningthis, um, thiswithhere, wecouldactuallyuse a variable.
Anditwouldbebettertouse a variable, becauseifweeverwanttochange, itwouldbeeasytochange.
Sowe'regonnacreate a variableherecalledMobile.
Andwewilljustsetthatto 800 pixelsandthenbackhereinourSASfileinsteadofputtingthevalue, their 800 pixelswilljustincludethemobilevariable.
Allright, sonowlet's see.
Whatdid I misshere?
Content.
Therewegonowtoincludethis.
Let's sayifthewithgetsbelow 800 pixels, we'regonnawantthattochangeto a column.
A portfoliowebsitehasthiscoolanimatedmenuandseveralpagesandthemenualongwiththeentirewebsiteisresponsive.
We'regoingtotake a mobilefirstapproachwhenwebuildthis.
Sohere I'vegot V s Codeopenand I'vecreated a projectfolderonmycomputer.
Andthen I openeditandGScodeandallthat I'vedonesofaris I created a destfolderalongwithanimagefolder, and I justbroughtintheimagesthatwillbeusinginthisproject.
I willhave a linkinthedescriptionbelowsothatyoucandownloadtheprojectfilesaswell.
Sointhedistfolder, let's startout.
Bycreatinganindexthathtmlfile.
I'm gonnaclosethesidebarbypressingControl B.
Andnowlet's startwithourHTMLmarkup.
SoweuseemitexclamationenterThatgivesus a boilerplate.
Soadd a linkandwe'llsetthattoCSSmaindotCSSinthebodyhere, we'regonnastartoutwith a headerAndthenwewillcreate a divwiththeclassofmenubuttonandthenwithinherewillcreate a spanwiththeclassofmenubuttonburger.
SothemenubuttonisgoingtobepureCSS.
We'renotgoingtouseanyimagesorfontsforthat.
Withintheheader, let's create a knavewillhave a classonthatofNeve.
Thenwe'llcreateourmenuitemssowe'llhave a ULwiththeclassofmenyounev.
Andthenourallieswillhave a classofmen.
Youknaveitem.
Rightnowwe'llhave a linkwiththeclassofmen, youknavelink.
Andthelastoneisourcontact, and I willsayContactme.
Allright.
I thinkthat's itfortheheader.
Let's gotoourmainsectionnow.
Allright, we'regonnastartwith a maintag, andthenwe'llhave a sectionandwehave a classofhome, andthenwe'llcreatean H twooninherewillsay I Oh, mynameisthaneachonewiththeclassofhomename.
Thenherewillputthenameso, Mike, andthenwe'regonnahave a span.
Sowe'regoingtoadd a linearGradyint, andthenwe'regoingtosaywewanttheGradyintogototheright, andthenweputinourcolors.
Sowe'regonnauseour G b a andthenthattakesthefirstpartofittakesyourcolor.
Sowe'regonnasetprimarycolor, usethatvariable, andthenwewillsetthis 2.9 opacity, andthenwe'lldoanother R g B A forthesecondingredientvalueagain, primarycolor.