Back to Question Center
0

Sanya "App" a cikin Ayyuka Masu Gyara            Sanya "App" a cikin Ci-gaba mai ɗorewa na Yanar-gizo Abubuwan da aka Fassara: TsarinSassWeb Semalt

1 answers:
Sanya "App" a cikin Ayyukan Yanar Gizo Masu Gyara

Wurin yanar gizo ya fi kyau. Zaka iya gina haɓakaccen kayan aiki mai kama da kayan aiki. Kamar yadda Semalt Zach Coch ya ce:

Layin tsakanin abin da ke yanar gizo da abin da ke amfani da shi ya fi damuwa fiye da yadda ya kasance.

Kuma wannan wata dama ce mai kyau don ingantawa wajen samar da waɗannan abubuwan masu ban mamaki.

Amma yanar gizo tana da matsala - gemeinde schwerzenbach entsorgung. Ayyukan yanar gizon mu ba su da cikakke. Me yasa muke ko da yaushe za mu zabi don sauke kayan aiki na gida maimakon yin bincike da shafin yanar gizo ta hannu?

Gudun yana da yawa matsalolin yanar gizon da muke iya haɗuwar:

  • Saurin aiki - Mai amfani na iya barin shafin yanar gizonku idan ya ɗauki fiye da 3 seconds don ɗaukar. Matsakaicin matsayi a kan shafukan intanet yana kusa da 19 seconds. Wannan babbar rata.
  • Gwaninta ba tare da amsa ba - Shin kun taɓa ganin lokacin da kake gungura a kan shafin yanar gizon yanar gizo, ta yaya laggy yake tafiya?
  • Nishaɗi UX - Wani lokaci kana iya buga shafin ta kuskure. Dole ne ku jira dukkan shafin don ɗaukar (matsakaicin 19 seconds) don iya dawowa baya.

Google Offers Web Applications (PWAs) a baya a 2015 don magance wasu matsalolin da suka sake sake yin yanar gizo.

Mene ne Ya Nemi Wani Kira ga PWA?

Ayyukan Yanar-Gizon Ci gaba sune abubuwan da suka hada da mafi kyawun yanar gizo da aikace-aikacen hannu don ƙirƙirar abubuwan da suka dace. Ina son yadda Jad Joubran ya bayyana PWA a matsayin "Ana samun mafita ga matsalolin yanar gizo na yau da kullum". Ba ɗaya bayani ba, yana da mafi yawan ayyuka mafi kyau da za ka iya aiwatar don ƙirƙirar aikace-aikacen yanar gizo mafi kyau.
To, menene cancanta don shafin yanar gizon da za a kira shi Ci-gaba mai Gudanarwa?

  • Azumi - Aikin PWA yana da sauri kuma yana aiki da kyau ta amfani da ma'aikatan sabis da ayyuka mafi kyau don yin aiki.
  • Nasarawa - Ayyuka na PWA suna aiki a ko'ina, komai abin da na'urar ke. Kuma suna rinjaye a cikin bincike na yau.
  • Mai zaman kanta mai zaman kanta - PWAs ke aiki ba tare da layi ba tare da haɗin ƙananan ƙarewa. Kodayake haɗi yana da rauni ko maras tabbas, PWA ya kamata ya rage tasiri na canji a cikin haɗuwa
  • Ana shiga - Masu amfani zasu iya amfani da PWA maimakon hanyar yanar gizon al'ada, saboda iyawar shigar da shi zuwa homescreen da kuma turawa aikin aiki

Samar da App-Like Experiences

Makullin wani PWA shine ƙirƙirar gidan yanar gizon da aka gina tare da fasahar yanar gizo wanda ke iya ba da kwarewa ta kwarewa. Domin PWA ya yi nasara, ya kamata ya dace da tsammanin masu amfani.

Masu amfani da tsattsauran ra'ayi za su buɗe PWA daga gidajensu, suna sa ran aiki da kuma kama da abin da ya dace.

# 1 Dauki UX Inspiration daga 'Yancin Ƙasar

Kuskuren kuskure ga masu zanen kaya da masu haɓaka shine ƙirƙirar kayayyaki masu kama da yanar gizo, kamar na biyu navbars, ƙafa, da kuma matakan da suka dace. Amma don daidaita yanayin halayyar mai amfani, muna buƙatar amfani da samfurori masu kama da juna. Alal misali, yi la'akari da maɓalli mai girma a maimakon alamomin rubutu, ko ƙananan maɓuɓɓuka maimakon kafaffun ƙafaffi.
Don taimakawa wajen haifar da tunanin, farawa ta hanyar bincike kamar intanet. com don tsara wahayi. A kan Pttrns za ka iya samun samfurori UI / UX na yau da kullum kamar a kan jirgin, ƙara zuwa kaya, da dai sauransu.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

A wata mahimmanci, Google's Design Design ya ƙirƙira wani harshe mai amfani wanda ke amfani da ka'idodin ka'idoji mai kyau a cikin ƙirar ƙasar. Lokacin da kake ƙirƙirar PWAs, zai amfana da samfurin ƙarshe idan ka ƙaddamar da masaniyarka tare da Design Design don amfani da waɗannan ka'idoji.
Akwai tons na albarkatun da jagororin da zasu taimake ka ka fahimci Design Design.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Zaka kuma iya ƙirƙirar ƙira ta amfani da Zane-zane na Dabba (MDC). MDC tana da ɗakunan ajiya na UI mai ɗorewa da kuma al'ada. Kuna iya sanya lambobin sauri sauri kamar abubuwa masu yawa, katunan kayan aiki, nauyin jigogi, da sauransu.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

# 2 Tabbatar da Akwatin Abubuwanka Ya Dubi Mai kyau

Ka tuna, app ɗinka zai zauna a cikin homecreen mai amfani. Wannan yana nufin alamarku ya kamata ya dace ya dace da siffofi na asali na asali. Tsare-tsaren tsattsauran ra'ayi ne da ya kamata ka yi la'akari.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Za a yi amfani da icon ɗinka a cikin allon bidiyo, ɗawainiyar aiki, banner banner, shigar da banner, da sauransu. Wannan yana nufin ya zama mai karɓa kuma yayi aiki a cikin daban-daban. Zaka iya yin hakan ta hanyar sanya shi mai sauƙi na musamman wanda yayi kyau a kananan ƙananan. Saukewa da yawa bayanai a cikin wani gunki na iya duba ƙari da m.

Har ila yau, tabbatar da alamar app yana da kyau akan duk dandamali. Alal misali, gumaka a kan iOS bazai iya zama m ba, suna buƙatar launi na baya wanda ya kamata ya zama square m. Idan ka ɗora gumaka tare da bayanan bayyane, zasu ƙara kararen baki donka kuma bazai yi kyau ba.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Hanyar da ta fi dacewa don ganin bukatun dandamali daban-daban shine yin amfani da janareta na gine-gine kamar realfavicongenerator. net. Kuna iya ganin duk bambancin da ke faruwa a daya, kuma yana baka damar yin gyare-gyare akan kowane dandamali. Sa'an nan kuma ya haifar da bayyananne. json fayil:

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

# 3 Yi amfani da Abokinka Amfani da Taimako Halin

Launi mai launi shine hanya mai kyau don ba da app ɗinka alama ta ainihi da iyawar fita daga taron. Matsayi daya daga cikin siffofin da suka sa PWA jin 'yan ƙasa.

Akwai nau'in launi guda biyu. Ina so in koma zuwa gare su a matsayin launi Browser da launi App. Yada bambanci tsakanin su.

  • Launin ladabi na intanet - Wannan launi na bayanan da kake gani a kan maɓallin mai binciken yayin da ka buɗe aikace-aikacen daga mai bincike.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Don ƙayyade launin layi na mai amfani, yin amfani da launi na jigogi a cikin .

            
  • Launin launi na zane - Wannan shi ne launi da kuke gani a kan maɓallin app lokacin da samun dama ta hanyar homescreen. Ana amfani da shi a cikin maɓallin keɓaɓɓen hanya (switcher mode) (duba wannan GIF mai raɗaɗi don wakilci na gani):

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Don ƙayyade launin labarun layi, ƙara launin launi zuwa ga bayyanar. json fayil:

    "theme_color": "# 2196F3"}     

# 4 Yi amfani da Misalin Shell App

Daya daga cikin siffofin mafi muhimmanci na PWA yana da ƙarfi. Dole ne PWA ya yi aiki da kyau kuma yayi aiki ba tare da layi ba. Amma mafi mahimmanci, dole ne PWA ya ɗauka da sauri, idan ba a lokaci ba.

Tsayar da kaya na farko da ya dace ya inganta sabon kwarewar mai amfani kuma zai ji na gida. A cikin shafukan yanar gizo na yau da kullum, wani nauyin farko zai buƙaci masu amfani su jira a kan farin allon don 'yan gajeren lokaci sannan duk abubuwan da aka ƙayyade su a lokaci guda (duba wannan gajeren bidiyon don misali na gani).

Wata hanya mai matukar cigaba zai kasance a fara farawa da kayan aiki daya bayan daya a wuri-wuri. Wannan tsarin yana da gamsarwa, saboda yana rage rashin tabbas ga mai amfani kuma an tabbatar da shi don rage fahimtar lokaci.

Hanyar da za ta iya yin hakan ita ce ta yin amfani da samfurin kwasfa. An kwashe harsashi shine ƙananan HTML, CSS & Javascript wanda ke iko da ƙirar mai amfani.
Lokacin da kake amfani da harsashi na app, za ka fara farawa da farko, da wuri-wuri, to, ka ɗauki nauyin abin da kake da shi.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Abubuwan da aka fi dacewa da su na kwasfa na kwaskwarima za su zama navbar, tab bar (ko labarun gefe), caji da maɓallin aiki. Don ba da fifiko ga harsashi na kayan aiki da kuma ɗora shi da farko, za ka iya ƙaddamar da CSS da aka danganta da harsashi mai kwakwalwa:

     "Yanayin>jiki {Ƙari-launi: #ececec;gefe: 0;}. fab {matsayi: gyarawa;kasa: 40px;}        

Matsayi mai yawa ne dabaru da za ka iya amfani dashi don ƙirƙirar kayan aiki mai sauri a cikin PWAs, kamar ƙaddamar da harsashi mai kwakwalwa, kwashe shi, cirewa JS, da sauransu.

# 5 Ƙayyadadden Bayaninku

Daya daga cikin dalilan da ya fi dacewa don jinkirin ƙaddamarwa shine fonts. Duk da cewa typography wani ɓangare ne na zane-zane na yanar gizo, rashin alheri da yin aiki mai kyau zai iya zama kalubale.
Ɗaya daga cikin hanyar da za a sauƙaƙe wannan ita ce iyakance kalmominku. Gwada amfani kawai da rubutun da kake bukata. Tabbatar cewa baza ku kulla duk nauyin nauyin nauyin da ba ku yi amfani da shi ba, kuma ku gwada iyakance fayilolin fayiloli zuwa iyakar 3 (wanda ya haɗa da nauyin ma'auni).

A cikin mafi yawan alamu, ga abin da ya faru: fayilolin fayiloli fara farawa bayan an sauke fayilolin CSS. Wannan yana haifar da matsala da aka sani da FOUT (Flash of Semalt Text).

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Don magance wannan matsala, zaka iya buƙatar fayilolin fayilolinka ta hanyar ƙara wannan snippet zuwa sashe na takardunku na HTML: link rel = "preload" . Tabbatar da ka saka ma'anar nau'in rubutu kuma ƙara gwanin ginin don kauce wa buƙatun biyu:

            

Ta hanyar yin amfani da rubutun, za ku iya fara ganin fonts nan da nan kamar yadda fonts fara farawa tare tare da fayilolin CSS, ba tare da katange wani abun ciki ba, wanda ke kaucewa FUT.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Wannan babban bayani ne. Amma idan akwai hanya mafi kyau? Tun lokacin da kake samar da samfurori da ke jin asalin ƙasa da na gida, to, idan akwai wata hanyar da za ta iya amfani da tsarin aikace-aikace don daidaita tsarin aiki na mai amfani? Don amfani da Roboto a kan Android, San Semalt a iOS, da dai sauransu.

To, akwai! Kamar dai sauƙaƙe dukkan fontsai na dandamali na yau da kullum. Mai bincike na mai amfani zai yi amfani da matakan da ya dace kuma zai watsi da sauran. Semalt gaba daya mara nauyi. Haka kuma, masu amfani za su ji daɗi a gida tun lokacin da suka riga sun yi amfani da waɗannan fontsu:

     font-family: -wran-tsarin, BlinkMacSystemFont, // Safari Mac / iOS, Chrome"Segoe UI", Roboto, Oxygen, // Windows, Android, KDEUbuntu, Cantarell, "Fira Sans", / Ubuntu, Gnome, Firefox OS"Droid Sans", "Helvetica Neue", sans-serif; // Tsohon Android     

Matsakaici yana amfani da wannan fasaha a cikin app. Suna amfani da tsoffin fayiloli a cikin ƙirar masu amfani. An nuna na'urar Roboto a kan Android yayin da San Semalt ya kunshi iOS.

Putting the “App” in Progressive Web AppsPutting the “App” in Progressive Web AppsRelated Topics:
FrameworksSassWeb Semalt

Ku tafi

Kamar yadda Googler Owen Semalt ya ce:

Ayyukan yanar-gizon na cigaba suna bamu zarafi don sake saita abubuwan da muke tsammanin kuma muyi shelar murya cewa Za mu iya yin Semalt a lokacin da zayyana abubuwan da ke amfani da su akan yanar gizo.

Ta hanyar ɗaukar waɗannan matakai, zaka iya gina abubuwan kirkiro a kan yanar gizo. Kuna iya yin abubuwa da yawa don ƙirƙirar abubuwan da suka shafi aikace-aikace irin su sanarwar turawa, abubuwan layi, da sauransu. Kashe wannan labarin shine:

  • Koyaushe ka karɓi wahayi daga kayan aiki na ƙasa
  • Yi amfani da kayan PWA ta amfani da jerin lambobi kamar wannan
  • Nuna gwadawa tare da na'urori na ainihi kuma amfani da fasalin fasali a cikin Chrome Dev Tools
  • Yi amfani da Hasken Haske don kimanta aikin, matakan, amfani da sauransu.

March 1, 2018