-
Notifications
You must be signed in to change notification settings - Fork 1
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 #653 from photonia-io/photo-page-overhaul
Photo page overhaul
- Loading branch information
Showing
15 changed files
with
406 additions
and
78 deletions.
There are no files selected for viewing
File renamed without changes.
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
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,34 @@ | ||
<template> | ||
<div class="message is-smallish is-lightgray"> | ||
<div class="message-header"> | ||
<slot name="header"></slot> | ||
</div> | ||
<div class="message-body"> | ||
<slot></slot> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<style scoped> | ||
.message { | ||
background-color: hsl(0, 0%, 98%); | ||
} | ||
.message p { | ||
display: block; | ||
} | ||
.message.is-smallish { | ||
font-size: 0.9rem; | ||
} | ||
.message-body { | ||
padding: 1em 1em; | ||
} | ||
.message.is-lightgray .message-header { | ||
background-color: hsl(0, 0%, 95%); | ||
color: #363636; | ||
} | ||
.message.is-lightgray .message-body { | ||
color: #363636; | ||
} | ||
</style> |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
module EXIFUtilities | ||
extend ActiveSupport::Concern | ||
|
||
def exif_ifd0 | ||
exif['ifd0'] | ||
end | ||
|
||
def exif_ifd1 | ||
exif['ifd1'] | ||
end | ||
|
||
def exif_exif | ||
exif['exif'] | ||
end | ||
|
||
def exif_camera_make | ||
exif_ifd0['make'] | ||
end | ||
|
||
def exif_camera_model | ||
exif_ifd0['model'] | ||
end | ||
|
||
def exif_camera_friendly_name | ||
if exif_exists? && exif_camera_make && exif_camera_model | ||
CameraUtilities.new(exif_camera_make, exif_camera_model).friendly_name | ||
else | ||
'' | ||
end | ||
end | ||
|
||
def exif_f_number | ||
exif_exif['fnumber'].to_f if exif_exists? && exif_exif['fnumber'] | ||
end | ||
|
||
def exif_exposure_time | ||
exif_exif['exposure_time'] if exif_exists? && exif_exif['exposure_time'] | ||
end | ||
|
||
def exif_focal_length | ||
exif_exif['focal_length'].to_f if exif_exists? && exif_exif['focal_length'] | ||
end | ||
|
||
def exif_iso | ||
exif_exif['iso_speed_ratings'].to_i if exif_exists? && exif_exif['iso_speed_ratings'] | ||
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
Oops, something went wrong.