-
-
Notifications
You must be signed in to change notification settings - Fork 137
Fix : added card design to thumbnail #369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,32 +1,23 @@ | ||
| GEM | ||
| remote: https://rubygems.org/ | ||
| specs: | ||
| activesupport (7.1.3.2) | ||
| base64 | ||
| bigdecimal | ||
| activesupport (6.0.6.1) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are the changes in |
||
| concurrent-ruby (~> 1.0, >= 1.0.2) | ||
| connection_pool (>= 2.2.5) | ||
| drb | ||
| i18n (>= 1.6, < 2) | ||
| minitest (>= 5.1) | ||
| mutex_m | ||
| tzinfo (~> 2.0) | ||
| i18n (>= 0.7, < 2) | ||
| minitest (~> 5.1) | ||
| tzinfo (~> 1.1) | ||
| zeitwerk (~> 2.2, >= 2.2.2) | ||
| addressable (2.8.6) | ||
| public_suffix (>= 2.0.2, < 6.0) | ||
| base64 (0.2.0) | ||
| bigdecimal (3.1.6) | ||
| coffee-script (2.4.1) | ||
| coffee-script-source | ||
| execjs | ||
| coffee-script-source (1.12.2) | ||
| colorator (1.1.0) | ||
| commonmarker (0.23.10) | ||
| concurrent-ruby (1.2.3) | ||
| connection_pool (2.4.1) | ||
| dnsruby (1.70.0) | ||
| simpleidn (~> 0.2.1) | ||
| drb (2.2.0) | ||
| ruby2_keywords | ||
| em-websocket (0.5.3) | ||
| eventmachine (>= 0.12.9) | ||
| http_parser.rb (~> 0) | ||
|
|
@@ -39,6 +30,7 @@ GEM | |
| faraday-net_http (3.1.0) | ||
| net-http | ||
| ffi (1.16.3) | ||
| ffi (1.16.3-x64-mingw-ucrt) | ||
| forwardable-extended (2.6.0) | ||
| gemoji (4.1.0) | ||
| github-pages (231) | ||
|
|
@@ -215,19 +207,18 @@ GEM | |
| rb-fsevent (~> 0.10, >= 0.10.3) | ||
| rb-inotify (~> 0.9, >= 0.9.10) | ||
| mercenary (0.3.6) | ||
| mini_portile2 (2.8.8) | ||
| minima (2.5.1) | ||
| jekyll (>= 3.5, < 5.0) | ||
| jekyll-feed (~> 0.9) | ||
| jekyll-seo-tag (~> 2.1) | ||
| minitest (5.22.2) | ||
| mutex_m (0.2.0) | ||
| net-http (0.4.1) | ||
| uri | ||
| nokogiri (1.16.2-aarch64-linux) | ||
| racc (~> 1.4) | ||
| nokogiri (1.16.2-arm64-darwin) | ||
| nokogiri (1.16.2) | ||
| mini_portile2 (~> 2.8.2) | ||
| racc (~> 1.4) | ||
| nokogiri (1.16.2-x86_64-linux) | ||
| nokogiri (1.16.2-x64-mingw-ucrt) | ||
| racc (~> 1.4) | ||
| octokit (4.25.1) | ||
| faraday (>= 1, < 3) | ||
|
|
@@ -241,7 +232,6 @@ GEM | |
| ffi (~> 1.0) | ||
| rexml (3.2.6) | ||
| rouge (3.30.0) | ||
| ruby2_keywords (0.0.5) | ||
| rubyzip (2.3.2) | ||
| safe_yaml (1.0.5) | ||
| sass (3.7.4) | ||
|
|
@@ -256,21 +246,25 @@ GEM | |
| unf (~> 0.1.4) | ||
| terminal-table (1.8.0) | ||
| unicode-display_width (~> 1.1, >= 1.1.1) | ||
| thread_safe (0.3.6) | ||
| typhoeus (1.4.1) | ||
| ethon (>= 0.9.0) | ||
| tzinfo (2.0.6) | ||
| concurrent-ruby (~> 1.0) | ||
| tzinfo (1.2.11) | ||
| thread_safe (~> 0.1) | ||
| tzinfo-data (1.2025.1) | ||
| tzinfo (>= 1.0.0) | ||
| unf (0.1.4) | ||
| unf_ext | ||
| unf_ext (0.0.9.1) | ||
| unf_ext (0.0.9.1-x64-mingw-ucrt) | ||
| unicode-display_width (1.8.0) | ||
| uri (0.13.0) | ||
| webrick (1.8.1) | ||
| zeitwerk (2.7.2) | ||
|
|
||
| PLATFORMS | ||
| aarch64-linux | ||
| arm64-darwin-23 | ||
| x86_64-linux-musl | ||
| x64-mingw-ucrt | ||
| x86_64-linux | ||
|
|
||
| DEPENDENCIES | ||
| github-pages (~> 231) | ||
|
|
@@ -279,7 +273,6 @@ DEPENDENCIES | |
| minima (~> 2.5) | ||
| tzinfo (~> 1.2) | ||
| tzinfo-data | ||
| wdm (~> 0.1.1) | ||
| webrick (~> 1.7) | ||
|
|
||
| BUNDLED WITH | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,11 +72,16 @@ code { | |
| } | ||
|
|
||
| .thumbnail { | ||
|
|
||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These blank lines are not needed here, you can format the code with |
||
| width: 100%; | ||
| aspect-ratio: 200/150; | ||
| margin: 0 auto; | ||
| } | ||
| background-color: var(--card-color); | ||
| border-radius: 0.75em; | ||
| cursor: pointer; | ||
|
|
||
| box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px; | ||
| } | ||
| .thumbnailtitle { | ||
| font-family: "Roboto Condensed"; | ||
| font-style: normal; | ||
|
|
@@ -92,6 +97,7 @@ code { | |
| font-weight: 400; | ||
| } | ||
|
|
||
|
|
||
| /* Styles For index.html and all.html */ | ||
| .filter-grid { | ||
| display: grid; | ||
|
|
@@ -316,4 +322,43 @@ footer .donate a { | |
| .thumbnailblurb { | ||
| font-size: 5vw; | ||
| } | ||
|
|
||
|
|
||
| .card { | ||
| background-color: var(--card-color); | ||
| border-radius: 0.75em; | ||
| cursor: pointer; | ||
| height: 240px; | ||
| position: relative; | ||
| } | ||
|
|
||
| .card:hover:before { | ||
| opacity: 1; | ||
| } | ||
|
|
||
| .card:before { | ||
| background: linear-gradient( | ||
| 45deg, | ||
| transparent 5%, | ||
| rgb(255, 215, 137) 50%, | ||
| transparent 99% | ||
| ); | ||
| border-radius: inherit; | ||
| content: ""; | ||
| inset: 0px; | ||
| opacity: 0; | ||
| position: absolute; | ||
| transition: opacity 400ms; | ||
| z-index: 0; | ||
| } | ||
|
|
||
| .card-content { | ||
| background-color: var(--card-color); | ||
| border-radius: inherit; | ||
| display: grid; | ||
| inset: 1px; | ||
| padding: 1em; | ||
| position: absolute; | ||
| } | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -71,9 +71,13 @@ <h1>Resources</h1> | |
| class="thumbnailbox {{ page.topic }} {{ page.medium }} {{page.language}}" | ||
| > | ||
| <article> | ||
| <div class="card"> | ||
| <div class="card-content"> | ||
| <img class="thumbnail" src="{{page.image-thumb}}" alt="{% if | ||
| page.image-alt %}{{ page.image-alt }} {% else %} '' {% endif %} " | ||
| /> | ||
| </div> | ||
| </div> | ||
|
Comment on lines
+74
to
+80
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ramirocruz07 The indentation does not seem to be right here, you should use prettier for code formatting 🙌 |
||
| <h3 class="thumbnailtitle"> | ||
| <a class="thumbnailLink" href="{{ page.permalink }}" | ||
| >{{ page.title }}</a | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
similarly, the
Gemfileshould also not be changed