Merge pull request #135 from NoRedInk/assignment-type-icons

Add assignment type icons for Peer Review and Quick Write
This commit is contained in:
Danielle Pham 2018-10-16 12:09:48 -04:00 committed by GitHub
commit f437f335db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 30 additions and 2 deletions

View File

@ -9,7 +9,9 @@ module Nri.Ui.Icon.V3 exposing
, assignmentStartButtonPrimary
, assignmentStartButtonSecondary
, assignmentTypeDiagnostic
, assignmentTypePeerReview
, assignmentTypePractice
, assignmentTypeQuickWrite
, assignmentTypeQuiz
, assignmentTypeWritingCycle
, attention
@ -93,7 +95,9 @@ module Nri.Ui.Icon.V3 exposing
@docs assignmentStartButtonPrimary
@docs assignmentStartButtonSecondary
@docs assignmentTypeDiagnostic
@docs assignmentTypePeerReview
@docs assignmentTypePractice
@docs assignmentTypeQuickWrite
@docs assignmentTypeQuiz
@docs assignmentTypeWritingCycle
@docs attention
@ -428,12 +432,24 @@ assignmentTypeDiagnostic assets =
SvgIcon assets.diagnostic
{-| -}
assignmentTypePeerReview : { r | icons_peerReviewWhite_svg : Asset } -> IconType
assignmentTypePeerReview assets =
ImgIcon assets.icons_peerReviewWhite_svg
{-| -}
assignmentTypePractice : { r | practice : String } -> IconType
assignmentTypePractice assets =
SvgIcon assets.practice
{-| -}
assignmentTypeQuickWrite : { r | icons_quickWriteWhite_svg : Asset } -> IconType
assignmentTypeQuickWrite assets =
ImgIcon assets.icons_quickWriteWhite_svg
{-| -}
assignmentTypeQuiz : { r | quiz : String } -> IconType
assignmentTypeQuiz assets =

View File

@ -46,8 +46,10 @@ type alias Assets =
, icons_equals_svg : Asset
, icons_helpBlue_svg : Asset
, icons_peerReview_svg : Asset
, icons_peerReviewWhite_svg : Asset
, icons_plusBlue_svg : Asset
, icons_quickWrite_svg : Asset
, icons_quickWriteWhite_svg : Asset
, icons_searchGray_svg : Asset
, icons_xBlue_svg : Asset
, icons_xBlue_svg : Asset
@ -135,8 +137,10 @@ assets =
, icons_equals_svg = Asset "assets/images/equals.svg"
, icons_helpBlue_svg = Asset "assets/images/help-blue.svg"
, icons_peerReview_svg = Asset "assets/images/peer-review.svg"
, icons_peerReviewWhite_svg = Asset "assets/images/peer-review-white.svg"
, icons_plusBlue_svg = Asset "assets/images/plus-blue.svg"
, icons_quickWrite_svg = Asset "assets/images/quick-write.svg"
, icons_quickWriteWhite_svg = Asset "assets/images/quick-write-white.svg"
, icons_searchGray_svg = Asset "assets/images/search-gray.svg"
, icons_xBlue_svg = Asset "assets/images/x-blue.svg"
, key = "icon-key"

View File

@ -39,14 +39,16 @@ example =
[ { icon = Icon.assignmentTypeDiagnostic, background = Light, alt = "Diagnostic" }
, { icon = Icon.assignmentTypePractice, background = Light, alt = "Practice" }
, { icon = Icon.assignmentTypeQuiz, background = Light, alt = "Quiz" }
, { icon = Icon.assignmentTypeWritingCycle, background = Light, alt = "WritingCycle" }
, { icon = Icon.assignmentTypeQuickWrite, background = Dark, alt = "QuickWrite" }
, { icon = Icon.quickWrite, background = Light, alt = "QuickWrite" }
, { icon = Icon.assignmentTypePeerReview, background = Dark, alt = "PeerReview" }
, { icon = Icon.peerReview, background = Light, alt = "PeerReview" }
, { icon = Icon.submitting, background = Light, alt = "Submitting" }
, { icon = Icon.rating, background = Light, alt = "Rating" }
, { icon = Icon.revising, background = Light, alt = "Revising" }
, { icon = Icon.quickWrite, background = Light, alt = "QuickWrite" }
--, { icon = Icon.guidedWrite, background = Light, alt = "GuidedWrite" }
, { icon = Icon.assignmentTypeWritingCycle, background = Light, alt = "WritingCycle" }
, { icon = Icon.writingAssignment, background = Light, alt = "WritingAssignment" }
]
, viewIconSection "Student Assignment Actions"

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:318e4b592733c81645cc43d4ccf49f43c7af4b3e6a79140bdac238eb06c1ae75
size 3069

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5e8698a165aaee8341bb47d7dc120b1a78ac20859ecb24cedfb26425fe757419
size 493