Skip to content
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

Accessibility and SEO improvements #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby]
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw]

gem 'slim'
gem "middleman-livereload", "~> 3.4.3"
14 changes: 13 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ GEM
concurrent-ruby (1.1.6)
contracts (0.13.0)
dotenv (2.7.5)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
erubis (2.7.0)
eventmachine (1.2.7)
execjs (2.7.0)
fast_blank (1.0.0)
fastimage (2.1.7)
Expand All @@ -29,6 +33,7 @@ GEM
hamster (3.0.0)
concurrent-ruby (~> 1.0)
hashie (3.6.0)
http_parser.rb (0.6.0)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
kramdown (1.17.0)
Expand Down Expand Up @@ -70,6 +75,10 @@ GEM
servolux
tilt (~> 2.0.9)
uglifier (~> 3.0)
middleman-livereload (3.4.7)
em-websocket (~> 0.5.1)
middleman-core (>= 3.3)
rack-livereload (~> 0.3.15)
minitest (5.14.0)
padrino-helpers (0.13.3.4)
i18n (~> 0.6, >= 0.6.7)
Expand All @@ -80,6 +89,8 @@ GEM
parallel (1.19.1)
public_suffix (4.0.4)
rack (2.2.2)
rack-livereload (0.3.17)
rack
rb-fsevent (0.10.3)
rb-inotify (0.10.1)
ffi (~> 1.0)
Expand All @@ -104,9 +115,10 @@ PLATFORMS
DEPENDENCIES
middleman (~> 4.3)
middleman-autoprefixer (~> 2.7)
middleman-livereload (~> 3.4.3)
slim
tzinfo-data
wdm (~> 0.1)

BUNDLED WITH
2.1.4
2.2.16
2 changes: 1 addition & 1 deletion assets/stylesheets/_index.sass
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ section
max-width: 100%
.more-features
padding-top: 4rem
h4
h3
margin-bottom: 4rem
.features
display: flex
Expand Down
2 changes: 1 addition & 1 deletion assets/stylesheets/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ $line-height-base: 1.5;

$h1-font-size: $font-size-base * 2.5;
$h2-font-size: $font-size-base * 2;
$h3-font-size: $font-size-base * 1.75;
$h3-font-size: $font-size-base * 1.5;
$h4-font-size: $font-size-base * 1.5;
$h5-font-size: $font-size-base * 1.25;
$h6-font-size: $font-size-base;
Expand Down
1 change: 1 addition & 0 deletions config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

activate :directory_indexes
activate :i18n
activate :livereload

# Layouts
# https://middlemanapp.com/basics/layouts/
Expand Down
4 changes: 2 additions & 2 deletions source/_footer.slim
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ footer
.container
.contact.mb-2.d-flex.justify-content-between
.left
span ©2018-2019 iina.io
span ©2018-2021 iina.io
.right
span.fas.fa-envelope.mr-2
span
Expand All @@ -12,7 +12,7 @@ footer
hr
.source
| You can find the source code of this website on 
= link_to 'GitHub', 'https://github.com/iina/iina-website'
= link_to 'GitHub', 'https://github.com/iina/iina-website', title: 'iina github'
| .
.contribute
| If you are interested in translating this website to your language, please feel free to contact us.
6 changes: 3 additions & 3 deletions source/_header.slim
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
= link_to localized_path('/features'), class: 'nav-link' do
= t(:features)
li.nav-item
= link_to 'https://translate.iina.io', class: 'nav-link', target: '_blank' do
= link_to 'https://translate.iina.io', title: 'iina translation', class: 'nav-link', target: '_blank' do
span class=("fas fa-globe-americas")
= t(:translation)
li.nav-item
= link_to localized_path('/download'), class: 'nav-link stressed left' do
= link_to localized_path('/download'), title: 'iina download', class: 'nav-link stressed left' do
span class=("fas fa-cloud-download-alt")
= t(:downloads)
li.nav-item
= link_to 'https://github.com/iina/iina', class: 'nav-link stressed right' do
= link_to 'https://github.com/iina/iina', title: 'iina github', class: 'nav-link stressed right' do
span class=("fab fa-github")
= t(:github)
3 changes: 2 additions & 1 deletion source/layouts/layout.slim
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
doctype html
html
html lang="en"
head
meta content="text/html; charset=UTF-8" http-equiv="Content-Type" /
meta charset="utf-8" /
meta content="ie=edge" http-equiv="x-ua-compatible" /
meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport" /
meta content="modern media player for macOS" name="description" /
title = current_page.data.title || "IINA"
/ assets
link href="https://fonts.googleapis.com/css?family=Rubik:400,500,700&subset=latin-ext" rel="stylesheet"
Expand Down
22 changes: 11 additions & 11 deletions source/localizable/download.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ section#downloads.downloads
.text-center.py-2
.text-muted.font-weight-bold.mb-2
| Latest stable release
= link_to download_link(latest.version), class: 'btn btn-primary stable-btn' do
= link_to download_link(latest.version), title: 'iina download latest version', class: 'btn btn-primary stable-btn' do
= latest.version
.text-muted.small.mt-2
| Released on 
= latest.date
= link_to release_note_link(latest.version), class: 'release-note ml-2', target: '_blank' do
= link_to release_note_link(latest.version), title: 'iina release note', class: 'release-note ml-2', target: '_blank' do
= t(:release_note)
.text-muted.small.mt-2
| SHA256:
Expand All @@ -28,12 +28,12 @@ section#downloads.downloads
ul.small.m-0.pl-4
- data.versions.stable.drop(1).each do |v|
li
= link_to v.version, download_link(v.version)
= link_to v.version, download_link(v.version), title: 'iina '+v.version
span.release-date.ml-2.text-muted
| released on 
= v.date
span ,
= link_to release_note_link(v.version), class: 'release-note ml-2 text-muted', target: '_blank' do
= link_to release_note_link(v.version), title: 'iina '+v.version+' release note', class: 'release-note ml-2 text-muted', target: '_blank' do
= t(:release_note)
.dl-card
h5 Beta releases
Expand All @@ -45,7 +45,7 @@ section#downloads.downloads
.text-center.py-2
.text-muted.font-weight-bold.mb-2
| Latest beta release
= link_to download_link(latest_beta.version), class: 'btn btn-secondary beta-btn', target: '_blank' do
= link_to download_link(latest_beta.version), title: 'show downloads', class: 'btn btn-secondary beta-btn', target: '_blank' do
= latest_beta.version
.text-muted.small.mt-2
| Released on 
Expand All @@ -58,18 +58,18 @@ section#downloads.downloads
ul.small.m-0.pl-4
- data.versions.beta.drop(1).each do |v|
li
= link_to v.version, download_link(v.version)
= link_to v.version, download_link(v.version), title: 'iina '+v.version
span.release-date.ml-2.text-muted
| released on 
= v.date
= link_to release_note_link(v.version), class: 'release-note ml-2' do
= link_to release_note_link(v.version), title: 'iina '+v.version+' release note' , class: 'release-note ml-2' do
= t(:release_note)
section#install-homebrew.mt-5
.container
h5 Install via Homebrew Cask
p.text-muted
| You may also install IINA via the community-maintained 
= link_to 'Homebrew', 'https://brew.sh/'
= link_to 'Homebrew', 'https://brew.sh/', title: 'homebrew'
|  cask by running:
pre.bg-light.p-2.text-center
| brew install --cask iina
Expand All @@ -81,10 +81,10 @@ section#downloads.downloads
p.text-muted
| The Safari App Extension is already included in the IINA App bundle, and you may only need to enable it in Safari Preferences. Extensions for other browsers could be downloaded below.
.btn-group
= link_to 'https://chrome.google.com/webstore/detail/open-in-iina/pdnojahnhpgmdhjdhgphgdcecehkbhfo', class: 'btn btn-secondary' do
= link_to 'https://chrome.google.com/webstore/detail/open-in-iina/pdnojahnhpgmdhjdhgphgdcecehkbhfo', title: 'iina chrome extension', class: 'btn btn-secondary' do
.span.fab.fa-chrome
| Chrome
= link_to 'https://addons.mozilla.org/addon/open-in-iina-x', class: 'btn btn-secondary' do
= link_to 'https://addons.mozilla.org/addon/open-in-iina-x', title: 'iina firefox extension', class: 'btn btn-secondary' do
.span.fab.fa-firefox
| Firefox
section#nightly-builds.mt-5
Expand All @@ -94,5 +94,5 @@ section#downloads.downloads
| Nightly builds are built based on each new commit on the develop branch. They are not signed so you need to manually change your system security settings to use nightly builds.
p.text-muted
| Click 
= link_to 'here', '//nightly.iina.io'
= link_to 'here', '//nightly.iina.io', title: 'iina nightly builds'
|  to view all nightly builds.
12 changes: 6 additions & 6 deletions source/localizable/index.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ section.title
|  
= t(:headline_3)
.download
= link_to 'https://github.com/iina/iina', class: 'dl-btn github' do
= link_to 'https://github.com/iina/iina', title: 'iina github', class: 'dl-btn github' do
span.fab.fa-github
|  GitHub
span.light GPLv3
/ br
- latest = data.versions.stable.first.version
= link_to download_link(latest), class: 'dl-btn dmg' do
= link_to download_link(latest), title: 'iina download', class: 'dl-btn dmg' do
span.fas.fa-cloud-download-alt
|  
= t(:download)
Expand Down Expand Up @@ -61,7 +61,7 @@ section.highlight.highlight--macos
.item-img
= image_tag "feature-2.png", width: 800
.more-features
h4 = t(:more_features)
h3 = t(:more_features)
.features
.left.bg-large-l
| Touch Bar
Expand Down Expand Up @@ -111,7 +111,7 @@ section.highlight.highlight--playback
span.fab.fa-youtube.fa-2x.m-0
.item-text YouTube playlists
.content
= link_to localized_path('/download#browser-extensions') do
= link_to localized_path('/download#browser-extensions'), title: 'iina extension' do
| Download browser extensions
span.fas.fa-angle-right.ml-2

Expand All @@ -127,7 +127,7 @@ section.highlight.highlight--opensource
|
Written in the Swift programming language, IINA is free and open-sourced under the GPLv3 license.
Please feel free to contribute to it by opening an issue, sending a feature request or a bug report on GitHub or by email.
= link_to 'https://github.com/iina/iina', class: 'highlight-link' do
= link_to 'https://github.com/iina/iina', title: 'iina github', class: 'highlight-link' do
span.fab.fa-github
span.mr-2 GitHub repository
span.fa.fa-angle-right
Expand All @@ -139,7 +139,7 @@ section.highlight.highlight--opensource
small
| (powered by Crowdin)
| .
= link_to 'https://translate.iina.io', class: 'highlight-link', target: '_blank' do
= link_to 'https://translate.iina.io', title: 'iina translation', class: 'highlight-link', target: '_blank' do
span.fas.fa-globe
span.mr-2 Translation platform
span.fa.fa-angle-right
Expand Down
Loading