diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..eb5a316 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target diff --git a/config.toml b/config.toml index 9e3995b..481ce37 100644 --- a/config.toml +++ b/config.toml @@ -1,5 +1,5 @@ # The URL the site will be built for -base_url = "https://zola.com" +base_url = "https://serinty.net" # Whether to automatically compile all Sass files in the sass directory compile_sass = true @@ -8,39 +8,40 @@ default_language = "en" build_search_index = false - - [markdown] # Whether to do syntax highlighting # Theme can be customised by setting the `highlight_theme` variable to a theme supported by Zola highlight_code = false +[languages] -[languages.fr] +[languages.de] generate_feed = true # there will be a feed for French content build_search_index = true -[languages.fr.translations] -title = "My blog" +[languages.de.translations] +en = "Englisch" +de = "Deutsch" +sw = "Swahili" + +[languages.sw] +generate_feed = true # there will be a feed for French content +build_search_index = true + +[languages.sw.translations] +en = "Kiingereza" +de = "Kijerumani" +sw = "Kiswahili" + +[languages.en] +generate_feed = true # there will be a feed for French content +build_search_index = true + +[languages.en.translations] +en = "English" +de = "German" +sw = "Swahili" [extra] # Put all your custom variables here logo_path = 'images/serinty.png' -usa = 'images/usa_flag.svg' -usa_icon='usa' -navbar_items = [ - { code = "en", nav_items = [ - { url = "$BASE_URL/", name = "Home",dropdown=[] }, - { url = "$BASE_URL/#", name = "About",dropdown=[] }, - { url = "$BASE_URL/#", name = "Services",dropdown=["service-1","service-2","service-3"] }, - { url = "$BASE_URL/#", name = "Pricing",dropdown=[] }, - { url = "$BASE_URL/#", name = "Contact",dropdown=[] }, - ] }, - {code="fr",nav_items = [ - { url = "$BASE_URL/", name = "Domicile",dropdown=[] }, - { url = "$BASE_URL/#", name = "Sur",dropdown=[] }, - { url = "$BASE_URL/#", name = "Services",dropdown=["service-1","service-2","service-3"] }, - { url = "$BASE_URL/#", name = "Tarification",dropdown=[] }, - { url = "$BASE_URL/#", name = "Contactez",dropdown=[] }, - ]}, -] \ No newline at end of file diff --git a/content/_index.de.md b/content/_index.de.md new file mode 100644 index 0000000..95ff516 --- /dev/null +++ b/content/_index.de.md @@ -0,0 +1,4 @@ ++++ +title = "Willkommen bei " +description = "Dies ist der Text der als Startseite zu sehen sollte." ++++ diff --git a/content/_index.fr.md b/content/_index.fr.md deleted file mode 100644 index 2ba9db4..0000000 --- a/content/_index.fr.md +++ /dev/null @@ -1,4 +0,0 @@ -+++ -title = "Nous aidons à propulser des millions d'entreprises dans plus de 100 pays" -description = "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s." -+++ diff --git a/content/_index.sw.md b/content/_index.sw.md new file mode 100644 index 0000000..68d9d7e --- /dev/null +++ b/content/_index.sw.md @@ -0,0 +1,4 @@ ++++ +title = "Karibu" +description = "Haya ndiyo maandishi ambayo yanapaswa kuonekana kama ukurasa wa mwanzo." ++++ diff --git a/content/company/about.md b/content/company/about.md new file mode 100644 index 0000000..e20f9a1 --- /dev/null +++ b/content/company/about.md @@ -0,0 +1,3 @@ ++++ +title="about us" ++++ diff --git a/content/company/index.de.md b/content/company/index.de.md new file mode 100644 index 0000000..6284562 --- /dev/null +++ b/content/company/index.de.md @@ -0,0 +1,3 @@ ++++ +title="Unternehmen" ++++ diff --git a/content/company/index.md b/content/company/index.md new file mode 100644 index 0000000..f87bf5a --- /dev/null +++ b/content/company/index.md @@ -0,0 +1,4 @@ ++++ +title="Company" +transparent=true ++++ diff --git a/content/contact/index.de.md b/content/contact/index.de.md new file mode 100644 index 0000000..9bb5496 --- /dev/null +++ b/content/contact/index.de.md @@ -0,0 +1,4 @@ ++++ +title = 'Kontakt' +description = "Kontakt" ++++ diff --git a/content/contact/index.md b/content/contact/index.md new file mode 100644 index 0000000..20a07a3 --- /dev/null +++ b/content/contact/index.md @@ -0,0 +1,5 @@ ++++ +title="Contact" + +description = "Contact Serinty" ++++ diff --git a/content/contact/index.sw.md b/content/contact/index.sw.md new file mode 100644 index 0000000..e09b2c7 --- /dev/null +++ b/content/contact/index.sw.md @@ -0,0 +1,4 @@ ++++ +title = 'Wasiliana' +description = "Wasiliana" ++++ diff --git a/content/services/index.de.md b/content/services/index.de.md new file mode 100644 index 0000000..85916da --- /dev/null +++ b/content/services/index.de.md @@ -0,0 +1,3 @@ ++++ +title="Services" ++++ diff --git a/content/services/index.md b/content/services/index.md new file mode 100644 index 0000000..85916da --- /dev/null +++ b/content/services/index.md @@ -0,0 +1,3 @@ ++++ +title="Services" ++++ diff --git a/css/home.css b/css/home.css index 329e161..a394dce 100644 --- a/css/home.css +++ b/css/home.css @@ -1,12 +1,47 @@ @font-face { - font-family: OrigoPro; - src: url("../static/fonts/OrigoPro-Regular.woff") format("woff"); + font-family: "Origo Pro"; + src: url("fonts/OrigoPro-Regular.eot"); + src: url("fonts/OrigoPro-Regular.eot?#iefix") format("embedded-opentype"), url("fonts/OrigoPro-Regular.woff2") format("woff2"), url("fonts/OrigoPro-Regular.woff") format("woff"), url("fonts/OrigoPro-Regular.ttf") format("truetype"), url("fonts/OrigoPro-Regular.svg#Origo Pro") format("svg"); } body { color: #004235; - background: url("images/giraffe.svg"); + background-image: url("images/giraffe.svg"); background-size: 150%; - font-family: OrigoPro, sans-serif; + font-family: "Origo Pro"; + font-weight: Regular; +} +body .fa-sun-o { + display: none; +} +body .fa-moon-o { + display: block; + color: #000000; +} + +.dark-mode { + background-color: #000000; + background-repeat: repeat; + color: #ccffdb; + font-family: "Origo Pro"; + font-weight: Regular; +} +.dark-mode .fa-moon-o { + display: none; +} +.dark-mode .fa-sun-o { + display: block; +} +.dark-mode a:visited { + color: #5e5e5e; +} +.dark-mode a:link { + color: #bbeeca; +} +.dark-mode a:hover { + color: #ca88df; +} +.dark-mode a:active { + color: #004235; } .hero { @@ -20,5 +55,26 @@ body { font-size: 22px; } .hero .section-cont .text { - width: 50%; + width: 40%; +} +.hero .section-cont .text h1 { + font-size: 50px; +} + +@media (max-width: 768px) { + .dark-mode select { + color: #ccffdb; + font-family: "Origo Pro"; + font-weight: Regular; + } + .hero { + padding-top: 10px; + } + .hero .section-cont { + display: flex; + flex-flow: column-reverse; + } + .hero .section-cont .text { + width: 80%; + } }/*# sourceMappingURL=home.css.map */ \ No newline at end of file diff --git a/css/home.css.map b/css/home.css.map index 050ccbd..8ccbc2c 100644 --- a/css/home.css.map +++ b/css/home.css.map @@ -1 +1 @@ -{"version":3,"sources":["../sass/home.scss","home.css"],"names":[],"mappings":"AAAA;EACE,qBAAA;EACA,gEAAA;ACCF;ADCA;EACE,cAAA;EACA,qCAAA;EACA,qBAAA;EACA,iCAAA;ACCF;;ADCA;EACE,kBAAA;ACEF;ADDE;EACE,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;ACGJ;ADFI;EACE,UAAA;ACIN","file":"home.css"} \ No newline at end of file +{"version":3,"sources":["../sass/home.scss","home.css"],"names":[],"mappings":"AAAA;EACE,wBAAA;EACA,sCAAA;EACA,kSAAA;ACCF;ADKA;EACE,cAAA;EACA,2CAAA;EACA,qBAAA;EACA,wBAAA;EACA,oBAAA;ACHF;ADIE;EACE,aAAA;ACFJ;ADIE;EACE,cAAA;EACA,cAAA;ACFJ;;ADKA;EACE,yBAAA;EACA,yBAAA;EACA,cAAA;EACA,wBAAA;EACA,oBAAA;ACFF;ADGE;EACE,aAAA;ACDJ;ADGE;EACE,cAAA;ACDJ;ADIE;EACE,cAAA;ACFJ;ADIE;EACE,cAAA;ACFJ;ADIE;EACE,cAAA;ACFJ;ADIE;EACE,cAAA;ACFJ;;ADKA;EACE,kBAAA;ACFF;ADGE;EACE,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,gBAAA;EACA,eAAA;ACDJ;ADEI;EACE,UAAA;ACAN;ADCM;EACE,eAAA;ACCR;;ADIA;EAEI;IACE,cAAA;IACA,wBAAA;IACA,oBAAA;ECFJ;EDKA;IACE,iBAAA;ECHF;EDIE;IACE,aAAA;IAEA,yBAAA;ECHJ;EDII;IACE,UAAA;ECFN;AACF","file":"home.css"} \ No newline at end of file diff --git a/css/navbar.css b/css/navbar.css index 5106db0..72eec56 100644 --- a/css/navbar.css +++ b/css/navbar.css @@ -1,4 +1,8 @@ -@import url("../static/fonts/OrigoPro-Regular.eot"); +@font-face { + font-family: "Origo Pro"; + src: url("fonts/OrigoPro-Regular.eot"); + src: url("fonts/OrigoPro-Regular.eot?#iefix") format("embedded-opentype"), url("fonts/OrigoPro-Regular.woff2") format("woff2"), url("fonts/OrigoPro-Regular.woff") format("woff"), url("fonts/OrigoPro-Regular.ttf") format("truetype"), url("fonts/OrigoPro-Regular.svg#Origo Pro") format("svg"); +} * { margin: 0; padding: 0; @@ -21,7 +25,7 @@ li { .navbar { display: flex; align-items: center; - justify-content: space-between; + justify-content: space-around; padding: 20px; color: teal; } @@ -33,6 +37,10 @@ li { /* LOGO */ .logo { font-size: 32px; + height: 60px; +} +.logo img { + height: 100%; } /* NAVBAR MENU */ @@ -40,6 +48,9 @@ li { display: flex; gap: 1em; font-size: 18px; + font-family: "Origo Pro"; + font-weight: Regular; + flex: 0.8; } .menu li:hover { @@ -53,7 +64,8 @@ li { } /* DROPDOWN MENU */ -.services { +.services, +.languages { position: relative; } @@ -80,16 +92,91 @@ li { background-color: #4c9e9e; } -.services:hover .dropdown { +.services:hover .dropdown, +.languages:hover .lang { display: block; } +.remove_on_mobile { + display: flex; + justify-content: space-between; +} +.remove_on_mobile select { + margin-right: 10px; +} + +.mobile-nav { + display: none; +} + +.lang { + padding: 1em 0; + position: absolute; /*WITH RESPECT TO PARENT*/ + display: none; + border-radius: 8px; + top: 35px; +} + /*RESPONSIVE NAVBAR MENU STARTS*/ /* CHECKBOX HACK */ input[type=checkbox] { display: none; } +.li_checkbox:hover { + border-bottom: none !important; +} + +.checkbox { + display: flex; + align-items: center; +} +.checkbox input[type=checkbox] { + height: 18px; +} +.checkbox input[type=checkbox].switch { + overflow: hidden; + border: 0; + border-radius: 999px; + width: 30px; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + display: flex; + align-items: center; + background: #fff; + margin: 0; + position: relative; + border: 1px solid #d1d5db; + transition: 0.2s ease-in; + cursor: pointer; +} +.checkbox input[type=checkbox].switch:before { + content: ""; + width: 12px; + height: 12px; + transform: translatex(0); + position: absolute; + border-radius: 50%; + margin: 2px; + background: #d1d5db; + transition: 0.2s ease-in; +} +.checkbox input[type=checkbox].switch:checked { + background: #5048e5; + border-color: #5048e5; +} +.checkbox input[type=checkbox].switch:checked:before { + transform: translatex(100%); + background: #fff; +} +.checkbox input[type=checkbox].switch ~ label { + cursor: pointer; + color: #374151; + font-weight: 400; + margin: 0 0 0 10px; +} + /*HAMBURGER MENU*/ .hamburger { display: none; @@ -102,14 +189,41 @@ input[type=checkbox] { /* APPLYING MEDIA QUERIES */ @media (max-width: 768px) { + .navbar { + justify-content: space-between; + } + .remove_on_mobile { + display: none; + } + .nav-links { + width: 50%; + display: flex; + } + .nav-links .mobile-nav { + display: flex; + width: 100%; + justify-content: space-around; + } + .nav-links .mobile-nav select { + background-color: transparent; + } + .nav-links .mobile-nav select option { + border-radius: 0px; + width: 200px; + text-transform: uppercase; + } .menu { display: none; position: absolute; - background-color: teal; - right: 0; + background-color: rgb(191, 240, 240); + top: 0px; + right: 50%; left: 0; text-align: center; - padding: 16px 0; + padding: 70px 0; + height: 100%; + font-family: "Origo Pro"; + font-weight: Regular; } .menu li:hover { display: inline-block; @@ -124,8 +238,10 @@ input[type=checkbox] { } .hamburger { display: block; + font-size: 35px; } - .dropdown { + .dropdown, +.lang { left: 50%; top: 30px; transform: translateX(35%); diff --git a/css/navbar.css.map b/css/navbar.css.map index c1d73e9..50f4f2f 100644 --- a/css/navbar.css.map +++ b/css/navbar.css.map @@ -1 +1 @@ -{"version":3,"sources":["../sass/navbar.scss","navbar.css"],"names":[],"mappings":"AAAQ,mDAAA;AACR;EACE,SAAA;EACA,UAAA;EACA,sBAAA;ACCF;;ADCA;EACE,2CAAA;ACEF;;ADAA;EACE,qBAAA;ACGF;;ADDA;EACE,gBAAA;ACIF;;ADFA,0BAAA;AACA;EACE,aAAA;EACA,mBAAA;EACA,8BAAA;EACA,aAAA;EACA,WAAA;ACKF;;ADHA;EACE,cAAA;ACMF;;ADJA,SAAA;AACA;EACE,eAAA;ACOF;;ADLA,gBAAA;AACA;EACE,aAAA;EACA,QAAA;EACA,eAAA;ACQF;;ADNA;EACE,gCAAA;EACA,kBAAA;EACA,4BAAA;ACSF;;ADPA;EACE,iBAAA;ACUF;;ADRA,kBAAA;AACA;EACE,kBAAA;ACWF;;ADTA;EACE,yBAAA;EACA,cAAA;EACA,kBAAA,EAAA,yBAAA;EACA,aAAA;EACA,kBAAA;EACA,SAAA;ACYF;;ADVA;EACE,gBAAA;ACaF;;ADXA;EACE,kBAAA;EACA,UAAA;EACA,kBAAA;ACcF;;ADZA;EACE,yBAAA;ACeF;;ADbA;EACE,cAAA;ACgBF;;ADdA,gCAAA;AACA,kBAAA;AACA;EACE,aAAA;ACiBF;;ADfA,iBAAA;AACA;EACE,aAAA;EACA,eAAA;EACA,yBAAA;KAAA,sBAAA;MAAA,qBAAA;UAAA,iBAAA;ACkBF;;ADhBA,2BAAA;AACA;EACE;IACE,aAAA;IACA,kBAAA;IACA,sBAAA;IACA,QAAA;IACA,OAAA;IACA,kBAAA;IACA,eAAA;ECmBF;EDjBA;IACE,qBAAA;IACA,yBAAA;IACA,qBAAA;ECmBF;EDjBA;IACE,gBAAA;ECmBF;EDjBA;IACE,cAAA;ECmBF;EDjBA;IACE,cAAA;ECmBF;EDjBA;IACE,SAAA;IACA,SAAA;IACA,0BAAA;ECmBF;EDjBA;IACE,yBAAA;ECmBF;AACF","file":"navbar.css"} \ No newline at end of file +{"version":3,"sources":["../sass/navbar.scss","navbar.css"],"names":[],"mappings":"AAAA;EACE,wBAAA;EACA,sCAAA;EACA,kSAAA;ACCF;ADKA;EACE,SAAA;EACA,UAAA;EACA,sBAAA;ACHF;;ADKA;EACE,2CAAA;ACFF;;ADIA;EACE,qBAAA;ACDF;;ADGA;EACE,gBAAA;ACAF;;ADEA,0BAAA;AACA;EACE,aAAA;EACA,mBAAA;EACA,6BAAA;EACA,aAAA;EACA,WAAA;ACCF;;ADCA;EACE,cAAA;ACEF;;ADAA,SAAA;AACA;EACE,eAAA;EACA,YAAA;ACGF;ADFE;EACE,YAAA;ACIJ;;ADDA,gBAAA;AACA;EACE,aAAA;EACA,QAAA;EACA,eAAA;EACA,wBAAA;EACA,oBAAA;EACA,SAAA;ACIF;;ADFA;EACE,gCAAA;EACA,kBAAA;EACA,4BAAA;ACKF;;ADHA;EACE,iBAAA;ACMF;;ADJA,kBAAA;AACA;;EAEE,kBAAA;ACOF;;ADLA;EACE,yBAAA;EACA,cAAA;EACA,kBAAA,EAAA,yBAAA;EACA,aAAA;EACA,kBAAA;EACA,SAAA;ACQF;;ADNA;EACE,gBAAA;ACSF;;ADPA;EACE,kBAAA;EACA,UAAA;EACA,kBAAA;ACUF;;ADRA;EACE,yBAAA;ACWF;;ADTA;;EAEE,cAAA;ACYF;;ADVA;EACE,aAAA;EACA,8BAAA;ACaF;ADZE;EACE,kBAAA;ACcJ;;ADXA;EACE,aAAA;ACcF;;ADZA;EAEE,cAAA;EACA,kBAAA,EAAA,yBAAA;EACA,aAAA;EACA,kBAAA;EACA,SAAA;ACcF;;ADZA,gCAAA;AACA,kBAAA;AACA;EACE,aAAA;ACeF;;ADXA;EACE,8BAAA;ACcF;;ADXA;EACE,aAAA;EACA,mBAAA;ACcF;ADbE;EACE,YAAA;ACeJ;ADdI;EACE,gBAAA;EACA,SAAA;EACA,oBAAA;EACA,WAAA;EACA,wBAAA;KAAA,qBAAA;UAAA,gBAAA;EACA,aAAA;EACA,mBAAA;EACA,gBAAA;EACA,SAAA;EACA,kBAAA;EACA,yBAAA;EACA,wBAAA;EACA,eAAA;ACgBN;ADfM;EACE,WAAA;EACA,WAAA;EACA,YAAA;EACA,wBAAA;EACA,kBAAA;EACA,kBAAA;EACA,WAAA;EACA,mBAAA;EACA,wBAAA;ACiBR;ADfM;EACE,mBAAA;EACA,qBAAA;ACiBR;ADhBQ;EACE,2BAAA;EACA,gBAAA;ACkBV;ADfM;EACE,eAAA;EACA,cAAA;EACA,gBAAA;EACA,kBAAA;ACiBR;;ADZA,iBAAA;AACA;EACE,aAAA;EACA,eAAA;EACA,yBAAA;KAAA,sBAAA;MAAA,qBAAA;UAAA,iBAAA;ACeF;;ADbA,2BAAA;AACA;EACE;IACE,8BAAA;ECgBF;EDdA;IACE,aAAA;ECgBF;EDdA;IACE,UAAA;IACA,aAAA;ECgBF;EDdE;IACE,aAAA;IACA,WAAA;IACA,6BAAA;ECgBJ;EDdI;IACE,6BAAA;ECgBN;EDfM;IACE,kBAAA;IACA,YAAA;IACA,yBAAA;ECiBR;EDZA;IACE,aAAA;IACA,kBAAA;IACA,oCAAA;IACA,QAAA;IACA,UAAA;IACA,OAAA;IACA,kBAAA;IACA,eAAA;IACA,YAAA;IACA,wBAAA;IACA,oBAAA;ECcF;EDZA;IACE,qBAAA;IACA,yBAAA;IACA,qBAAA;ECcF;EDZA;IACE,gBAAA;ECcF;EDZA;IACE,cAAA;ECcF;EDZA;IACE,cAAA;IACA,eAAA;ECcF;EDZA;;IAEE,SAAA;IACA,SAAA;IACA,0BAAA;ECcF;EDZA;IACE,yBAAA;ECcF;AACF","file":"navbar.css"} \ No newline at end of file diff --git a/sass/colors.scss b/sass/colors.scss new file mode 100644 index 0000000..850c53e --- /dev/null +++ b/sass/colors.scss @@ -0,0 +1,4 @@ +$light-font-color: #004235; +$dark-font-color: #ccffdb; +$dark-bg-color: #000000; +$accent-color: #4c9e9e; diff --git a/sass/font.scss b/sass/font.scss new file mode 100644 index 0000000..bc89e86 --- /dev/null +++ b/sass/font.scss @@ -0,0 +1,11 @@ +@font-face { + font-family: "Origo Pro"; + src: url("fonts/OrigoPro-Regular.woff2") format("woff2"), + url("fonts/OrigoPro-Regular.woff") format("woff"), + url("fonts/OrigoPro-Regular.eot") format("embedded-opentype"), + url("fonts/OrigoPro-Regular.ttf") format("truetype"), + url("fonts/OrigoPro-Regular.svg#Origo Pro") format("svg"); +} + +$font-family: "Origo Pro"; +$font-size-menu: 18px; diff --git a/sass/home.scss b/sass/home.scss index e9e5420..d6a09ee 100644 --- a/sass/home.scss +++ b/sass/home.scss @@ -1,37 +1,33 @@ -@font-face { - font-family: "Origo Pro"; - src: url("fonts/OrigoPro-Regular.eot"); - src: url("fonts/OrigoPro-Regular.eot?#iefix") format("embedded-opentype"), - url("fonts/OrigoPro-Regular.woff2") format("woff2"), - url("fonts/OrigoPro-Regular.woff") format("woff"), - url("fonts/OrigoPro-Regular.ttf") format("truetype"), - url("fonts/OrigoPro-Regular.svg#Origo Pro") format("svg"); -} +@import 'colors','font'; + body { - color: #004235; + color: $light-font-color; background-image: url("images/giraffe.svg"); background-size: 150%; font-family: "Origo Pro"; - font-weight: Regular; + font-weight: normal; .fa-sun-o { display: none; + cursor: pointer; } .fa-moon-o { display: block; - color: #000000; + cursor: pointer; } } .dark-mode { - background-color: #000000; + background-color: $dark-bg-color; background-repeat: repeat; - color: #ccffdb; + color: $dark-font-color; font-family: "Origo Pro"; - font-weight: Regular; + font-weight: normal; .fa-moon-o { display: none; + cursor: pointer; } .fa-sun-o { display: block; + cursor: pointer; } a:visited { @@ -66,9 +62,9 @@ body { @media (max-width: 768px) { .dark-mode { select { - color: #ccffdb; + color: $dark-font-color; font-family: "Origo Pro"; - font-weight: Regular; + font-weight: normal; } } .hero { diff --git a/sass/navbar.scss b/sass/navbar.scss index 8807e87..553982d 100644 --- a/sass/navbar.scss +++ b/sass/navbar.scss @@ -1,19 +1,12 @@ -@font-face { - font-family: "Origo Pro"; - src: url("fonts/OrigoPro-Regular.eot"); - src: url("fonts/OrigoPro-Regular.eot?#iefix") format("embedded-opentype"), - url("fonts/OrigoPro-Regular.woff2") format("woff2"), - url("fonts/OrigoPro-Regular.woff") format("woff"), - url("fonts/OrigoPro-Regular.ttf") format("truetype"), - url("fonts/OrigoPro-Regular.svg#Origo Pro") format("svg"); -} +@import 'colors','font'; + * { margin: 0; padding: 0; box-sizing: border-box; } body { - font-family: "OrigiPro-Regular", sans-serif; + font-family: $font-family; } a { text-decoration: none; @@ -21,6 +14,25 @@ a { li { list-style: none; } + +select { + padding: 0px; + font-family: $font-family; + font-size: $font-size-menu; + background-color: transparent; + border: transparent transparent 2px transparent; + border-color: transparent transparent $light-font-color transparent; + color: $light-font-color; + option { + border-radius: 5px; + //width: 200px; + font-family: $font-family; + font-size: $font-size-menu; + text-transform: uppercase; + color: $light-font-color; + } +} + /* NAVBAR STYLING STARTS */ .navbar { display: flex; @@ -30,7 +42,7 @@ li { color: teal; } .nav-links a { - color: #004235; + color: $light-font-color; } /* LOGO */ .logo { @@ -44,13 +56,13 @@ li { .menu { display: flex; gap: 1em; - font-size: 18px; - font-family: "Origo Pro"; - font-weight: Regular; + font-size: $font-size-menu; + font-family: $font-family; + font-weight: normal; flex: 0.8; } .menu li:hover { - border-bottom: 2px solid #4c9e9e; + border-bottom: 2px solid $accent-color; border-radius: 2px; transition: 0.3s ease-in-out; } @@ -63,7 +75,7 @@ li { position: relative; } .dropdown { - background-color: #4c9e9e; + background-color: $accent-color; padding: 1em 0; position: absolute; /*WITH RESPECT TO PARENT*/ display: none; @@ -79,7 +91,7 @@ li { text-align: center; } .dropdown li:hover { - background-color: #4c9e9e; + background-color: $accent-color; } .services:hover .dropdown, .languages:hover .lang { @@ -89,7 +101,7 @@ li { display: flex; justify-content: space-between; select { - margin-right: 10px; + margin-right: 5px; } } .mobile-nav { @@ -97,11 +109,12 @@ li { } .lang { // background-color: #4c9e9e; - padding: 1em 0; - position: absolute; /*WITH RESPECT TO PARENT*/ - display: none; + padding: 0; + background: transparent; + //position: absolute; /*WITH RESPECT TO PARENT*/ + //display: none; border-radius: 8px; - top: 35px; + //top: 35px; } /*RESPONSIVE NAVBAR MENU STARTS*/ /* CHECKBOX HACK */ @@ -121,13 +134,12 @@ input[type="checkbox"] { height: 18px; &.switch { overflow: hidden; - border: 0; border-radius: 999px; width: 30px; appearance: none; display: flex; align-items: center; - background: #fff; + background: $dark-bg-color; margin: 0; position: relative; border: 1px solid #d1d5db; @@ -149,13 +161,13 @@ input[type="checkbox"] { border-color: #5048e5; &:before { transform: translatex(100%); - background: #fff; + background: $dark-bg-color; } } & ~ label { cursor: pointer; color: #374151; - font-weight: 400; + font-weight: normal; margin: 0 0 0 10px; } } @@ -167,6 +179,12 @@ input[type="checkbox"] { font-size: 24px; user-select: none; } + + +.darktoggle { + font-size: 36px; +} + /* APPLYING MEDIA QUERIES */ @media (max-width: 768px) { .navbar { @@ -184,14 +202,6 @@ input[type="checkbox"] { width: 100%; justify-content: space-around; - select { - background-color: transparent; - option { - border-radius: 0px; - width: 200px; - text-transform: uppercase; - } - } } } .menu { @@ -204,12 +214,12 @@ input[type="checkbox"] { text-align: center; padding: 70px 0; height: 100%; - font-family: "Origo Pro"; - font-weight: Regular; + font-family: $font-family; + font-weight: normal; } .menu li:hover { display: inline-block; - background-color: #4c9e9e; + background-color: $accent-color; transition: 0.3s ease; } .menu li + li { @@ -229,6 +239,6 @@ input[type="checkbox"] { transform: translateX(35%); } .dropdown li:hover { - background-color: #4c9e9e; + background-color: $accent-color; } } diff --git a/static/favicon.ico b/static/favicon.ico new file mode 100644 index 0000000..b494545 Binary files /dev/null and b/static/favicon.ico differ diff --git a/static/images/favicon.ico b/static/images/favicon.ico new file mode 100644 index 0000000..b494545 Binary files /dev/null and b/static/images/favicon.ico differ diff --git a/static/js/928fd3be24.js b/static/js/928fd3be24.js new file mode 100644 index 0000000..15655c4 --- /dev/null +++ b/static/js/928fd3be24.js @@ -0,0 +1,485 @@ +window.FontAwesomeKitConfig = { + "asyncLoading": { + "enabled": false + }, + "autoA11y": { + "enabled": true + }, + "baseUrl": "https://ka-f.fontawesome.com", + "baseUrlKit": "https://kit.fontawesome.com", + "detectConflictsUntil": null, + "iconUploads": {}, + "id": 129511801, + "license": "free", + "method": "css", + "minify": { + "enabled": true + }, + "token": "928fd3be24", + "v4FontFaceShim": { + "enabled": true + }, + "v4shim": { + "enabled": true + }, + "v5FontFaceShim": { + "enabled": true + }, + "version": "6.2.0" +}; +! function(t) { + "function" == typeof define && define.amd ? define("kit-loader", t) : t() +}((function() { + "use strict"; + + function t(e) { + return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(t) { + return typeof t + } : function(t) { + return t && "function" == typeof Symbol && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t + })(e) + } + + function e(t, e, n) { + return e in t ? Object.defineProperty(t, e, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : t[e] = n, t + } + + function n(t, e) { + var n = Object.keys(t); + if (Object.getOwnPropertySymbols) { + var o = Object.getOwnPropertySymbols(t); + e && (o = o.filter((function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + }))), n.push.apply(n, o) + } + return n + } + + function o(t) { + for (var o = 1; o < arguments.length; o++) { + var r = null != arguments[o] ? arguments[o] : {}; + o % 2 ? n(Object(r), !0).forEach((function(n) { + e(t, n, r[n]) + })) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : n(Object(r)).forEach((function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + })) + } + return t + } + + function r(t, e) { + return function(t) { + if (Array.isArray(t)) return t + }(t) || function(t, e) { + if ("undefined" == typeof Symbol || !(Symbol.iterator in Object(t))) return; + var n = [], + o = !0, + r = !1, + i = void 0; + try { + for (var c, a = t[Symbol.iterator](); !(o = (c = a.next()).done) && (n.push(c.value), !e || n.length !== e); o = !0); + } catch (t) { + r = !0, i = t + } finally { + try { + o || null == a.return || a.return() + } finally { + if (r) throw i + } + } + return n + }(t, e) || function(t, e) { + if (!t) return; + if ("string" == typeof t) return i(t, e); + var n = Object.prototype.toString.call(t).slice(8, -1); + "Object" === n && t.constructor && (n = t.constructor.name); + if ("Map" === n || "Set" === n) return Array.from(t); + if ("Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return i(t, e) + }(t, e) || function() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }() + } + + function i(t, e) { + (null == e || e > t.length) && (e = t.length); + for (var n = 0, o = new Array(e); n < e; n++) o[n] = t[n]; + return o + } + + function c(t, e) { + var n = e && e.addOn || "", + o = e && e.baseFilename || t.license + n, + r = e && e.minify ? ".min" : "", + i = e && e.fileSuffix || t.method, + c = e && e.subdir || t.method; + return t.baseUrl + "/releases/" + ("latest" === t.version ? "latest" : "v".concat(t.version)) + "/" + c + "/" + o + r + "." + i + } + + function a(t) { + return t.baseUrlKit + "/" + t.token + "/" + t.id + "/kit-upload.css" + } + + function u(t, e) { + var n = e || ["fa"], + o = "." + Array.prototype.join.call(n, ",."), + r = t.querySelectorAll(o); + Array.prototype.forEach.call(r, (function(e) { + var n = e.getAttribute("title"); + e.setAttribute("aria-hidden", "true"); + var o = !e.nextElementSibling || !e.nextElementSibling.classList.contains("sr-only"); + if (n && o) { + var r = t.createElement("span"); + r.innerHTML = n, r.classList.add("sr-only"), e.parentNode.insertBefore(r, e.nextSibling) + } + })) + } + var f, s = function() {}, + d = "undefined" != typeof global && void 0 !== global.process && "function" == typeof global.process.emit, + l = "undefined" == typeof setImmediate ? setTimeout : setImmediate, + h = []; + + function m() { + for (var t = 0; t < h.length; t++) h[t][0](h[t][1]); + h = [], f = !1 + } + + function p(t, e) { + h.push([t, e]), f || (f = !0, l(m, 0)) + } + + function v(t) { + var e = t.owner, + n = e._state, + o = e._data, + r = t[n], + i = t.then; + if ("function" == typeof r) { + n = "fulfilled"; + try { + o = r(o) + } catch (t) { + w(i, t) + } + } + y(i, o) || ("fulfilled" === n && b(i, o), "rejected" === n && w(i, o)) + } + + function y(e, n) { + var o; + try { + if (e === n) throw new TypeError("A promises callback cannot return that same promise."); + if (n && ("function" == typeof n || "object" === t(n))) { + var r = n.then; + if ("function" == typeof r) return r.call(n, (function(t) { + o || (o = !0, n === t ? g(e, t) : b(e, t)) + }), (function(t) { + o || (o = !0, w(e, t)) + })), !0 + } + } catch (t) { + return o || w(e, t), !0 + } + return !1 + } + + function b(t, e) { + t !== e && y(t, e) || g(t, e) + } + + function g(t, e) { + "pending" === t._state && (t._state = "settled", t._data = e, p(S, t)) + } + + function w(t, e) { + "pending" === t._state && (t._state = "settled", t._data = e, p(O, t)) + } + + function A(t) { + t._then = t._then.forEach(v) + } + + function S(t) { + t._state = "fulfilled", A(t) + } + + function O(t) { + t._state = "rejected", A(t), !t._handled && d && global.process.emit("unhandledRejection", t._data, t) + } + + function j(t) { + global.process.emit("rejectionHandled", t) + } + + function E(t) { + if ("function" != typeof t) throw new TypeError("Promise resolver " + t + " is not a function"); + if (this instanceof E == !1) throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function."); + this._then = [], + function(t, e) { + function n(t) { + w(e, t) + } + try { + t((function(t) { + b(e, t) + }), n) + } catch (t) { + n(t) + } + }(t, this) + } + E.prototype = { + constructor: E, + _state: "pending", + _then: null, + _data: void 0, + _handled: !1, + then: function(t, e) { + var n = { + owner: this, + then: new this.constructor(s), + fulfilled: t, + rejected: e + }; + return !e && !t || this._handled || (this._handled = !0, "rejected" === this._state && d && p(j, this)), "fulfilled" === this._state || "rejected" === this._state ? p(v, n) : this._then.push(n), n.then + }, + catch: function(t) { + return this.then(null, t) + } + }, E.all = function(t) { + if (!Array.isArray(t)) throw new TypeError("You must pass an array to Promise.all()."); + return new E((function(e, n) { + var o = [], + r = 0; + + function i(t) { + return r++, + function(n) { + o[t] = n, --r || e(o) + } + } + for (var c, a = 0; a < t.length; a++)(c = t[a]) && "function" == typeof c.then ? c.then(i(a), n) : o[a] = c; + r || e(o) + })) + }, E.race = function(t) { + if (!Array.isArray(t)) throw new TypeError("You must pass an array to Promise.race()."); + return new E((function(e, n) { + for (var o, r = 0; r < t.length; r++)(o = t[r]) && "function" == typeof o.then ? o.then(e, n) : e(o) + })) + }, E.resolve = function(e) { + return e && "object" === t(e) && e.constructor === E ? e : new E((function(t) { + t(e) + })) + }, E.reject = function(t) { + return new E((function(e, n) { + n(t) + })) + }; + var _ = "function" == typeof Promise ? Promise : E; + + function F(t, e) { + var n = e.fetch, + o = e.XMLHttpRequest, + r = e.token, + i = t; + return "URLSearchParams" in window ? (i = new URL(t)).searchParams.set("token", r) : i = i + "?token=" + encodeURIComponent(r), i = i.toString(), new _((function(t, e) { + if ("function" == typeof n) n(i, { + mode: "cors", + cache: "default" + }).then((function(t) { + if (t.ok) return t.text(); + throw new Error("") + })).then((function(e) { + t(e) + })).catch(e); + else if ("function" == typeof o) { + var r = new o; + r.addEventListener("loadend", (function() { + this.responseText ? t(this.responseText) : e(new Error("")) + })); + ["abort", "error", "timeout"].map((function(t) { + r.addEventListener(t, (function() { + e(new Error("")) + })) + })), r.open("GET", i), r.send() + } else { + e(new Error("")) + } + })) + } + + function P(t, e, n) { + var o = t; + return [ + [/(url\("?)\.\.\/\.\.\/\.\./g, function(t, n) { + return "".concat(n).concat(e) + }], + [/(url\("?)\.\.\/webfonts/g, function(t, o) { + return "".concat(o).concat(e, "/releases/v").concat(n, "/webfonts") + }], + [/(url\("?)https:\/\/kit-free([^.])*\.fontawesome\.com/g, function(t, n) { + return "".concat(n).concat(e) + }] + ].forEach((function(t) { + var e = r(t, 2), + n = e[0], + i = e[1]; + o = o.replace(n, i) + })), o + } + + function C(t, e) { + var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : function() {}, + r = e.document || r, + i = u.bind(u, r, ["fa", "fab", "fas", "far", "fal", "fad", "fak"]), + f = Object.keys(t.iconUploads || {}).length > 0; + t.autoA11y.enabled && n(i); + var s = [{ + id: "fa-main", + addOn: void 0 + }]; + t.v4shim && t.v4shim.enabled && s.push({ + id: "fa-v4-shims", + addOn: "-v4-shims" + }), t.v5FontFaceShim && t.v5FontFaceShim.enabled && s.push({ + id: "fa-v5-font-face", + addOn: "-v5-font-face" + }), t.v4FontFaceShim && t.v4FontFaceShim.enabled && s.push({ + id: "fa-v4-font-face", + addOn: "-v4-font-face" + }), f && s.push({ + id: "fa-kit-upload", + customCss: !0 + }); + var d = s.map((function(n) { + return new _((function(r, i) { + F(n.customCss ? a(t) : c(t, { + addOn: n.addOn, + minify: t.minify.enabled + }), e).then((function(i) { + r(U(i, o(o({}, e), {}, { + baseUrl: t.baseUrl, + version: t.version, + id: n.id, + contentFilter: function(t, e) { + return P(t, e.baseUrl, e.version) + } + }))) + })).catch(i) + })) + })); + return _.all(d) + } + + function U(t, e) { + var n = e.contentFilter || function(t, e) { + return t + }, + o = document.createElement("style"), + r = document.createTextNode(n(t, e)); + return o.appendChild(r), o.media = "all", e.id && o.setAttribute("id", e.id), e && e.detectingConflicts && e.detectionIgnoreAttr && o.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)), o + } + + function k(t, e) { + e.autoA11y = t.autoA11y.enabled, "pro" === t.license && (e.autoFetchSvg = !0, e.fetchSvgFrom = t.baseUrl + "/releases/" + ("latest" === t.version ? "latest" : "v".concat(t.version)) + "/svgs", e.fetchUploadedSvgFrom = t.uploadsUrl); + var n = []; + return t.v4shim.enabled && n.push(new _((function(n, r) { + F(c(t, { + addOn: "-v4-shims", + minify: t.minify.enabled + }), e).then((function(t) { + n(I(t, o(o({}, e), {}, { + id: "fa-v4-shims" + }))) + })).catch(r) + }))), n.push(new _((function(n, r) { + F(c(t, { + minify: t.minify.enabled + }), e).then((function(t) { + var r = I(t, o(o({}, e), {}, { + id: "fa-main" + })); + n(function(t, e) { + var n = e && void 0 !== e.autoFetchSvg ? e.autoFetchSvg : void 0, + o = e && void 0 !== e.autoA11y ? e.autoA11y : void 0; + void 0 !== o && t.setAttribute("data-auto-a11y", o ? "true" : "false"); + n && (t.setAttributeNode(document.createAttribute("data-auto-fetch-svg")), t.setAttribute("data-fetch-svg-from", e.fetchSvgFrom), t.setAttribute("data-fetch-uploaded-svg-from", e.fetchUploadedSvgFrom)); + return t + }(r, e)) + })).catch(r) + }))), _.all(n) + } + + function I(t, e) { + var n = document.createElement("SCRIPT"), + o = document.createTextNode(t); + return n.appendChild(o), n.referrerPolicy = "strict-origin", e.id && n.setAttribute("id", e.id), e && e.detectingConflicts && e.detectionIgnoreAttr && n.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)), n + } + + function L(t) { + var e, n = [], + o = document, + r = o.documentElement.doScroll, + i = (r ? /^loaded|^c/ : /^loaded|^i|^c/).test(o.readyState); + i || o.addEventListener("DOMContentLoaded", e = function() { + for (o.removeEventListener("DOMContentLoaded", e), i = 1; e = n.shift();) e() + }), i ? setTimeout(t, 0) : n.push(t) + } + + function T(t) { + "undefined" != typeof MutationObserver && new MutationObserver(t).observe(document, { + childList: !0, + subtree: !0 + }) + } + try { + if (window.FontAwesomeKitConfig) { + var x = window.FontAwesomeKitConfig, + M = { + detectingConflicts: x.detectConflictsUntil && new Date <= new Date(x.detectConflictsUntil), + detectionIgnoreAttr: "data-fa-detection-ignore", + fetch: window.fetch, + token: x.token, + XMLHttpRequest: window.XMLHttpRequest, + document: document + }, + D = document.currentScript, + N = D ? D.parentElement : document.head; + (function() { + var t = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, + e = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}; + return "js" === t.method ? k(t, e) : "css" === t.method ? C(t, e, (function(t) { + L(t), T(t) + })) : void 0 + })(x, M).then((function(t) { + t.map((function(t) { + try { + N.insertBefore(t, D ? D.nextSibling : null) + } catch (e) { + N.appendChild(t) + } + })), M.detectingConflicts && D && L((function() { + D.setAttributeNode(document.createAttribute(M.detectionIgnoreAttr)); + var t = function(t, e) { + var n = document.createElement("script"); + return e && e.detectionIgnoreAttr && n.setAttributeNode(document.createAttribute(e.detectionIgnoreAttr)), n.src = c(t, { + baseFilename: "conflict-detection", + fileSuffix: "js", + subdir: "js", + minify: t.minify.enabled + }), n + }(x, M); + document.body.appendChild(t) + })) + })).catch((function(t) { + console.error("".concat("Font Awesome Kit:", " ").concat(t)) + })) + } + } catch (t) { + console.error("".concat("Font Awesome Kit:", " ").concat(t)) + } +})); \ No newline at end of file diff --git a/static/js/serinty-theme.js b/static/js/serinty-theme.js new file mode 100644 index 0000000..510904a --- /dev/null +++ b/static/js/serinty-theme.js @@ -0,0 +1,23 @@ + function myFunction() { + var element = document.body; + element.classList.toggle("dark-mode"); + console.log("clicked"); + } + + function myNavigate() { + let elem = document.getElementById("elem"); + document.addEventListener("click", (e) => + console.log(typeof e.target.value) + ); + } + + function toggleLightDarkMode() { + var bntElement = document.getElementById("darkmodetogglebutton"); + if(bntElement.value == "light") { + bntElement.value = "dark"; + bntElement.classList.toggle("dark-mode"); + } else { + bntElement.value = "light"; + bntElement.classList.toggle("dark-mode"); + } + } diff --git a/templates/_macros.html b/templates/_macros.html index f1ad835..4085e5d 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -1,80 +1,96 @@ {% macro render_header() %} - +{% set section = get_section(path="_index.md") %} + diff --git a/templates/base.html b/templates/base.html index 83a2899..84fa82e 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,6 +1,6 @@ {% import "_macros.html" as macros %} - + @@ -8,10 +8,11 @@ - + + + + {% if page.title %} {{ page.title }} | {{ config.title }} {% else %} @@ -26,14 +27,6 @@ - diff --git a/templates/page.html b/templates/page.html index 83a2899..32252c4 100644 --- a/templates/page.html +++ b/templates/page.html @@ -1,6 +1,6 @@ {% import "_macros.html" as macros %} - + @@ -8,10 +8,10 @@ - + + + {% if page.title %} {{ page.title }} | {{ config.title }} {% else %} @@ -26,14 +26,7 @@ - + diff --git a/templates/section.html b/templates/section.html new file mode 100644 index 0000000..ffe93e0 --- /dev/null +++ b/templates/section.html @@ -0,0 +1,4 @@ +{% extends "base.html"%} {% block content %} + +

{{section.title}}

+{% endblock %} diff --git a/theme.toml b/theme.toml index 65e9e87..8acf72c 100644 --- a/theme.toml +++ b/theme.toml @@ -12,9 +12,11 @@ demo = "" # be merged with user data, some kind of prefix or nesting is preferable # Use snake_casing to be consistent with the rest of Zola [extra] -logo_path -navbar_items +logo_path="images/serinty.svg" + + +#navbar_items # The theme author info: you! [author] name = "Andile Masela" -homepage = "" \ No newline at end of file +homepage = ""