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

Carousel #105

Merged
merged 5 commits into from
Mar 15, 2018
Merged

Carousel #105

merged 5 commits into from
Mar 15, 2018

Conversation

sophielevens
Copy link
Contributor

init : Navigation.Location -> ( Model, Cmd Msg )
init location =
let
model =
viewFromUrl location initModel
in
model ! []
model ! [ begin () ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we name this something more descriptive?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

[ div [ class "flex justify-center flex-column items-center" ] [ h1 [ class "f3 green avenir center ma0" ] [ text "My Stimmy friend" ], h2 [ class "ma0 avenir fw2 f4" ] [ text "Choose your avatar" ] ]
, div
[ class "db makecarousel mv2" ]
[ div [ class "carousel-cell br4" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How come these images are at different indentations?

]
[]
]
, img
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you abastract the image out into a component and map over it?

@@ -1,27 +1,52 @@
.lh-f1 {
line-height: 56px;
line-height: 56px;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sophielevens @maxgerber Can we all use prettier with 2 space indentation? This will make code reviewing easier!

@sophielevens
Copy link
Contributor Author

Please see the changes made @ivanmauricio @lucymk 🐱

Copy link
Member

@ivan-unfolds ivan-unfolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is looking great 😻 Just some small changes to address.

]


avatarCaroCell : String -> Html Msg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sophielevens @maxgerber Could you use this new component in createAvatar above? 🙏

@@ -24,13 +24,16 @@ initModel =
}


port begin : () -> Cmd msg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sophielevens @maxgerber Can you make this name more declarative? Also could you make a Ports.elm and put all ports in there?

Copy link
Member

@ivan-unfolds ivan-unfolds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants