diff --git a/_layouts/default.html b/_layouts/default.html index 68c4710..40e4ace 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -32,59 +32,6 @@ -
-
-

Welcome

- - -
-
+
+
+

Welcome

+ + +
+
\ No newline at end of file diff --git a/index.html b/index.html index 57c0c22..e891c2e 100644 --- a/index.html +++ b/index.html @@ -2,9 +2,7 @@ layout: default title: Home --- -

- When I get the image from abraxus it'll go here -

+

Welcome to the Avraham Society! If you are looking for the Jewish Humanist voice of the MENA region then you came to the right place! We are the home of future leaders who want to make a change in the world. We are an opportunity for all diff --git a/main.css b/main.css index 436938d..8ac04aa 100644 --- a/main.css +++ b/main.css @@ -196,6 +196,7 @@ body:not(.sidebar-opened) > #sider-outer > #sider { overflow: hidden; padding: 0; margin: 0; + display: none; } body:not(.sidebar-opened) > #sider-outer > #sider > img { @@ -505,6 +506,15 @@ h1 { overflow: hidden; } +#content > .wide { + margin: 0px; + width: 100%; +} + +#content { + min-height: 50vh; +} + #content > p > .overlay { position: absolute; top: 50%; diff --git a/main.js b/main.js index 6b3df71..6de8e11 100644 --- a/main.js +++ b/main.js @@ -1,3 +1,19 @@ +var startX = 0; + +window.ontouchstart = (evt) => { + startX = evt.touches[0].clientX; +} + +window.ontouchmove = (evt) => { + var difX = evt.touches[0].clientX - startX; + if (difX > 100) { + document.body.classList.add("sidebar-opened"); + } + if (difX < -100) { + document.body.classList.remove("sidebar-opened"); + } +} + function clamp(min, val, max) { if (val < min) { val = min; diff --git a/res/Avraham_Society.png b/res/Avraham_Society.png new file mode 100644 index 0000000..9ff4234 Binary files /dev/null and b/res/Avraham_Society.png differ