-
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 #39 from JuzerShakir/semantic-html
Semantic HTML
- Loading branch information
Showing
72 changed files
with
535 additions
and
498 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,5 @@ $font-weight-base: 300; | |
} | ||
|
||
.fs-bigger { | ||
font-size: 15dvh !important; | ||
font-size: 15dvh; | ||
} |
This file was deleted.
Oops, something went wrong.
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,3 +1,19 @@ | ||
.form-control { | ||
&::placeholder { | ||
opacity: 0.8; | ||
} | ||
|
||
/* Fallback for older browsers (IE) */ | ||
&:-ms-input-placeholder { | ||
opacity: 0.8; | ||
} | ||
} | ||
|
||
#form-login { | ||
height: 70dvh !important; | ||
height: 70dvh; | ||
} | ||
|
||
input[type="date"]::-webkit-calendar-picker-indicator { | ||
background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="1rem" viewBox="0 0 24 24"><path fill="%2353900f" d="M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z"/></svg>'); | ||
cursor: pointer; | ||
} |
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,29 +1,35 @@ | ||
#search { | ||
input { | ||
padding: 0.75rem 1.5rem; | ||
input[type="search"] { | ||
&::-webkit-search-decoration, | ||
&::-webkit-search-cancel-button, | ||
&::-webkit-search-results-button, | ||
&::-webkit-search-results-decoration { | ||
display: none; | ||
} | ||
|
||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' fill='%23a4a71e' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E"); | ||
background-repeat: no-repeat; | ||
background-size: 18px 18px; | ||
background-position: 94% center; | ||
padding: 0.75rem 1.5rem; | ||
|
||
background-color: transparent; | ||
backface-visibility: hidden; | ||
background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path fill="%23a4a71e" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>'); | ||
background-repeat: no-repeat; | ||
background-size: 18px 18px; | ||
background-position: 94% center; | ||
|
||
border-radius: 2rem; | ||
transform-style: preserve-3d; | ||
transition: all 300ms ease-in-out; | ||
background-color: transparent; | ||
backface-visibility: hidden; | ||
|
||
&:hover, | ||
&:focus { | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='1em' fill='%2353900f' viewBox='0 0 512 512'%3E%3Cpath d='M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z'/%3E%3C/svg%3E"); | ||
padding: 0.75rem 0.5rem; | ||
outline: 0; | ||
border: 2px solid transparent; | ||
border-bottom: 2px solid $input-focus-border-color; | ||
border-radius: 0; | ||
box-shadow: none; | ||
background-position: 98% center; | ||
} | ||
border-radius: 2rem; | ||
transform-style: preserve-3d; | ||
transition: all 300ms ease-in-out; | ||
|
||
&:hover, | ||
&:focus { | ||
background-image: url('data:image/svg+xml;utf-8,<svg xmlns="http://www.w3.org/2000/svg" height="1em" viewBox="0 0 512 512"><path fill="%2353900f" d="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"/></svg>'); | ||
padding: 0.75rem 0.5rem; | ||
outline: 0; | ||
border: 2px solid transparent; | ||
border-bottom: 2px solid $input-focus-border-color; | ||
border-radius: 0; | ||
box-shadow: none; | ||
background-position: 98% center; | ||
background-color: transparent; | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<div class="m-0 position-absolute top-50 start-50 translate-middle"> | ||
<p class="heading fs-bigger text-danger">500</p> | ||
<section class="m-0 position-absolute top-50 start-50 translate-middle"> | ||
<h1 class="heading fs-bigger text-danger">500</h1> | ||
|
||
<p class="fs-3 fst-italic text-danger-emphasis">The server encountered an unexpected error!</p> | ||
</div> | ||
<em class="fs-3 text-danger-emphasis">The server encountered an unexpected error!</em> | ||
</section> |
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,5 +1,5 @@ | ||
<div class="m-0 position-absolute top-50 start-50 translate-middle"> | ||
<section class="m-0 position-absolute top-50 start-50 translate-middle"> | ||
<h1 class="heading fs-bigger text-danger">404</h1> | ||
|
||
<p class="fs-3 fst-italic text-danger-emphasis">The page you're looking for doesn't exist!</p> | ||
</div> | ||
<em class="fs-3 text-danger-emphasis">The page you're looking for doesn't exist!</em> | ||
</section> |
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 |
---|---|---|
@@ -1,12 +1,13 @@ | ||
<div id="home"> | ||
<div id="home__header" class="text-center"> | ||
<section id="home"> | ||
<header id="home__header" class="text-center"> | ||
<%= image_tag("logos/fmb.png", 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> | ||
</header> | ||
|
||
<section id="home__body"> | ||
<hgroup> | ||
<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> | ||
</hgroup> | ||
<%= link_to "Free demo", login_path, id: "home__body_cta", class: "btn rounded-pill border border-0 fs-4 px-5 py-2" %> | ||
</div> | ||
</div> | ||
</section> | ||
</section> |
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 |
---|---|---|
@@ -1,36 +1,37 @@ | ||
<div id="sabeel" class="position-relative col-xxl-4 col-xl-5 col-lg-6 col-md-8 col-sm-10 rounded-4 shadow mx-auto mt-3 py-3 px-4 text-warning"> | ||
<div id="sabeel-its-logo" class="z-0 position-absolute"></div> | ||
<div class="row pb-3"> | ||
<div class="col heading fs-2 text-secondary"> | ||
<section id="sabeel" class="position-relative col-xxl-4 col-xl-5 col-lg-6 col-md-8 col-sm-10 rounded-4 shadow mx-auto py-3 px-4 text-warning"> | ||
<aside id="sabeel-its-logo" class="z-0 position-absolute"></aside> | ||
|
||
<header class="row pb-3"> | ||
<h1 class="col heading fs-2 text-secondary"> | ||
<%= @sabeel.its %> | ||
</div> | ||
</div> | ||
</h1> | ||
</header> | ||
|
||
<div class="row pb-3"> | ||
<div class="z-1 col text-truncate"> | ||
<strong class="z-1 col text-truncate"> | ||
<% fa_gen(@sabeel.name, "fa-user", space: true) %> | ||
</div> | ||
</strong> | ||
</div> | ||
|
||
<div class="row pb-3"> | ||
<div class="col"> | ||
<address class="col mb-0"> | ||
<% fa_gen(@sabeel.address, "fa-location-pin", space: true) %> | ||
</div> | ||
</address> | ||
</div> | ||
|
||
<div class="row pb-3 fst-italic"> | ||
<div class="col"> | ||
<span class="col"> | ||
<i class="fa-solid fa-phone"></i> | ||
<%= phone_to @sabeel.mobile, class: "link-warning link-offset-2 link-underline-opacity-50 link-underline-opacity-100-hover" %> | ||
</div> | ||
</span> | ||
</div> | ||
|
||
<div class="row fst-italic"> | ||
<div class="col text-truncate"> | ||
<span class="col text-truncate"> | ||
<i class="fa-solid fa-envelope"></i> | ||
<%= link_to_if @sabeel.email.present?, @sabeel.email, "mailto:#{@sabeel.email}", class: "link-warning link-offset-2 link-underline-opacity-50 link-underline-opacity-100-hover" do %> | ||
<p class="d-inline-block fw-bold">No email address provided</p> | ||
<span class="d-inline-block fw-bold">No email address provided</span> | ||
<% end %> | ||
</div> | ||
</div> | ||
</div> | ||
</section> |
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,10 @@ | ||
<% @sabeels.each do |sabeel| %> | ||
<%= link_to(sabeel, id: dom_id(sabeel), class: "row py-2 link-underline link-underline-opacity-0") do %> | ||
<div class="col-7 col-md-6 text-truncate fw-medium"> | ||
<span class="col-7 col-md-6 text-truncate fw-medium"> | ||
<%= highlight(sabeel.name, params.dig(:q, :slug_or_name_cont)) %> | ||
</div> | ||
<div class="col text-info"> | ||
</span> | ||
<address class="col text-info mb-0"> | ||
<%= sabeel.apartment.titleize %> | ||
</div> | ||
</address> | ||
<% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,31 @@ | ||
<div class="row py-2 fs-5 fw-semibold border-bottom-0 bg-secondary heading"> | ||
<div class="col"> | ||
<th>Year</th> | ||
</div> | ||
<div class="col"> | ||
<th>Total</th> | ||
</div> | ||
<div class="col"> | ||
<th>Balance</th> | ||
</div> | ||
</div> | ||
<section id="thaalis" class="mt-5"> | ||
<p class="fw-bold text-center text-info">Total number of Thaalis: <em class="fst-normal"><%= @thaalis.size %></em></p> | ||
|
||
<div id="thaalis"> | ||
<% @thaalis.each do |thaali| %> | ||
<%= link_to(thaali, id: "thaali_#{thaali.year}", class: "row py-2 link-underline link-underline-opacity-0") do %> | ||
<div class="col fw-medium"> | ||
<%= thaali.year %> | ||
</div> | ||
<div class="col text-info fw-medium"> | ||
<%= add_rupees_symbol_to thaali.total %> | ||
</div> | ||
<div class="col <%= thaali.dues_cleared? ? "fw-bold text-success" : "text-danger" %>"> | ||
<%= add_rupees_symbol_to thaali.balance %> | ||
</div> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
<section class="bg-white bg-opacity-75 border border-4 border-secondary rounded-4 text-center mt-3 mb-5"> | ||
<table class="table mb-0"> | ||
<thead class="rounded-top-3 heading fs-5 py-2"> | ||
<tr> | ||
<th class="col-4">Year</th> | ||
<th class="col-4">Total</th> | ||
<th class="col-4">Balance</th> | ||
</tr> | ||
</thead> | ||
</table> | ||
|
||
<div class="container"> | ||
<% @thaalis.each do |thaali| %> | ||
<%= link_to(thaali, id: "thaali_#{thaali.year}", class: "row py-2 link-underline link-underline-opacity-0") do %> | ||
<strong class="col fw-medium"> | ||
<%= thaali.year %> | ||
</strong> | ||
<em class="col text-info fw-medium fst-normal"> | ||
<%= add_rupees_symbol_to thaali.total %> | ||
</em> | ||
<strong class="col fw-bold <%= thaali.dues_cleared? ? "text-success" : "text-danger" %>"> | ||
<%= add_rupees_symbol_to thaali.balance %> | ||
</strong> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
</section> | ||
</section> |
Oops, something went wrong.