-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from JuzerShakir/homepage
Homepage
- Loading branch information
Showing
25 changed files
with
352 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
@mixin respond_to_height($breakpoint) { | ||
// * iPad Air 1180px | ||
@if $breakpoint == tab-medium { | ||
@media only screen and (max-height: 73.75rem) { | ||
@content; | ||
} | ||
} | ||
// * iPad mini 1024px | ||
@if $breakpoint == tab-small { | ||
@media only screen and (max-height: 64rem) { | ||
@content; | ||
} | ||
} | ||
// * iPhone 14 Pro Max 932px | ||
@if $breakpoint == phone-large { | ||
@media only screen and (max-height: 58.25rem) { | ||
@content; | ||
} | ||
} | ||
// * Galaxy S8+ 740px | ||
@if $breakpoint == phone-medium { | ||
@media only screen and (max-height: 46.25rem) { | ||
@content; | ||
} | ||
} | ||
// * Galaxy Fold, Nest Hub 670px | ||
@if $breakpoint == phone-small { | ||
@media only screen and (max-height: 41.875rem) { | ||
@content; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,9 @@ | |
transform: translateX(-15rem); | ||
} | ||
} | ||
|
||
@keyframes slide_bg { | ||
to { | ||
background-position: right center; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
#home { | ||
background-image: linear-gradient( | ||
rgba(255, 255, 255, 0.75), | ||
rgba(255, 255, 255, 0.75) | ||
), | ||
url(banner.png); | ||
width: 100%; | ||
height: 100dvh; | ||
background-size: cover; | ||
background-position: center; | ||
padding: 2.5rem 8rem; | ||
|
||
&__body { | ||
margin-top: 22rem; | ||
letter-spacing: -0.05rem; | ||
|
||
// use max-height to position element with respect to device viewport height | ||
@include respond_to_height(tab-medium) { | ||
margin-top: 18rem; | ||
} | ||
|
||
@include respond_to_height(tab-small) { | ||
margin-top: 14rem; | ||
} | ||
|
||
@include respond_to_height(phone-large) { | ||
margin-top: 12rem; | ||
} | ||
|
||
@include respond_to_height(phone-medium) { | ||
margin-top: 7rem; | ||
} | ||
|
||
@include respond_to_height(phone-small) { | ||
margin-top: 5.5rem; | ||
} | ||
|
||
&_cta { | ||
margin-top: 1.5rem; | ||
|
||
@include respond_to_height(phone-large) { | ||
margin-top: 1rem; | ||
} | ||
|
||
color: $teal-200; | ||
background-image: linear-gradient( | ||
to right, | ||
$primary 0%, | ||
$success 25%, | ||
$secondary 50%, | ||
$success 75%, | ||
$primary 100% | ||
); | ||
transition: 1s; | ||
animation: slide_bg 2s alternate infinite; | ||
background-size: 200% auto; | ||
|
||
&:hover { | ||
color: $green-100; | ||
box-shadow: | ||
0 12px 16px 0 rgba(0, 0, 0, 0.24), | ||
0 17px 50px 0 rgba(0, 0, 0, 0.19); | ||
text-decoration: none; | ||
} | ||
|
||
&:active { | ||
box-shadow: none; | ||
} | ||
} | ||
} | ||
} | ||
|
||
// source for breakpoints: https://getbootstrap.com/docs/5.3/layout/breakpoints/#core-concepts | ||
// * 1399.98px (xxl) | ||
@include media-breakpoint-down(xxl) { | ||
#home { | ||
padding: 2.5rem 7rem; | ||
} | ||
} | ||
|
||
// * 1199.98px (xl) | ||
@include media-breakpoint-down(xl) { | ||
#home { | ||
padding: 2.5rem 6rem; | ||
|
||
&__header-logo { | ||
width: 280px; | ||
height: 120px; | ||
} | ||
} | ||
} | ||
|
||
// * 991.98px (lg) | ||
@include media-breakpoint-down(lg) { | ||
#home { | ||
padding: 2.2rem 5rem; | ||
|
||
&__header-logo { | ||
width: 250px; | ||
height: 100px; | ||
} | ||
} | ||
} | ||
|
||
// * 767.98px (md) | ||
@include media-breakpoint-down(md) { | ||
#home { | ||
padding: 2rem 3rem; | ||
} | ||
} | ||
|
||
// * 575.98px (sm) | ||
@include media-breakpoint-down(sm) { | ||
#home { | ||
padding: 1.5rem 2rem; | ||
|
||
&__header-logo { | ||
width: 230px; | ||
height: 90px; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class PagesController < ApplicationController | ||
before_action :logged_in? | ||
|
||
def home | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div id="home"> | ||
<div id="home__header" class="text-center"> | ||
<%= image_tag("fmb-logo-full.png", width: "320", height: "130", alt: "FMB logo", id: "home__header-logo") %> | ||
</div> | ||
|
||
<div id="home__body"> | ||
<h5 id="home__body_primary-heading" class="heading text-start text-uppercase text-primary">Thaali tracking, simplified</h5> | ||
<h2 id="home__body_secondary-heading" class="heading text-start text-secondary">Manage your thaalis & transactions effortlessly with real-time statistics</h2> | ||
|
||
<%= link_to "Free demo", login_path, id: "home__body_cta", class: "btn rounded-pill border border-0 fs-5 px-4 py-2" %> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,7 @@ | ||
<% content_for :title, "Login" %> | ||
|
||
<%# * Heading %> | ||
<h2 class="heading fs-1">Faizul Mawaid il Burhaniyah</h2> | ||
<h2 class="heading fs-1">Faiz al-Mawaid al-Burhaniyah</h2> | ||
|
||
<%# * Login Form %> | ||
<%= render "form" %> | ||
|
||
<%# * Footer %> | ||
<%= render "shared/footer" %> |
11 changes: 7 additions & 4 deletions
11
app/views/shared/navbar/_contact.html.erb → app/views/shared/_contact.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<li id="contact" class="nav-item dropdown"> | ||
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">Connect</a> | ||
<span id="contact" class="nav-item dropdown"> | ||
<a class="link-info link-offset-2 link-underline-opacity-0 link-underline-opacity-75-hover" | ||
href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false"> | ||
Contact | ||
</a> | ||
|
||
<ul class="dropdown-menu rounded-5 p-3"> | ||
<div class="hstack gap-3 justify-content-center"> | ||
<div class="hstack gap-3"> | ||
<%= fa_btn_gen "", "mailto:[email protected]", "fa-regular fa-envelope" %> | ||
<%= fa_btn_gen "", "https://wa.me/919819393148", "fa-brands fa-whatsapp" %> | ||
<%= fa_btn_gen "", "https://t.me/juzershakir", "fa-brands fa-telegram" %> | ||
</div> | ||
</ul> | ||
</li> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
<% if flash.any? %> | ||
<div id="flash" data-controller="autohide" class="z-2 position-fixed bg-primary fs-5 p-3 rounded-5"> | ||
<% flash.each do |name, msg| %> | ||
<%= render_flash(name, msg) %> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
<div id="flash" data-controller="autohide" class="z-2 position-fixed bg-primary rounded-5 fs-5 p-3 mt-4"> | ||
<% flash.each do |name, msg| %> | ||
<%= render_flash(name, msg) %> | ||
<% end %> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.