Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Amp flying carpet #169

Merged
merged 1 commit into from Jun 6, 2016
Merged

Conversation

kul3r4
Copy link
Collaborator

@kul3r4 kul3r4 commented May 27, 2016

An example for #3126 and #159.
@juliantoledo PTAL

padding-bottom: 8px;
}

.parent {
Copy link
Collaborator

Choose a reason for hiding this comment

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

small nit, indentation.

@juliantoledo
Copy link
Collaborator

juliantoledo commented May 30, 2016

@kul3r4
Looks good, I just added few comments about indentation and the lorem ipsum text in the first column. I also think that maybe the file should also be amp-fx-flying-carpet to match the filename and page title to the component name.

@juliantoledo juliantoledo added this to the Samples for May/June milestone May 31, 2016
padding-top: 8px;
padding-bottom: 8px;
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need ad-separator and ad-label? Also, do we need parent?

@sebastianbenz
Copy link
Collaborator

Nice! Few comments:

  • why do we need the additional text and image?
  • we should enable the preview mode
  • can we add a link the official doc (we should do this for all samples).

@kul3r4
Copy link
Collaborator Author

kul3r4 commented Jun 1, 2016

@sebastianbenz Additional images and content are needed because amp-flying-carpet cannot appear in the first or last viewport, so I am using text and images to fill the page.
I'll fix the other comments.

@sebastianbenz
Copy link
Collaborator

We should mention this in the doc!

@kul3r4
Copy link
Collaborator Author

kul3r4 commented Jun 1, 2016

It's mentioned in the example:
"Positioning

amp-fx-flying-carpet elements must be positioned before the last viewport so make sure you add some content after the component.

The text that follows is just for making the page scrollable to visualize the image inside the last amp-fx-flying-carpet."

@sebastianbenz
Copy link
Collaborator

Sorry - my fault. As you can see - people don't read the text at the bottom if there is no matching example.

Suggestion:

  • move the "Positioning" section to the first Lorem Ipsum sections.
  • add another doc section at the bottom Lorem Ipsum.
  • Move the bottom Lorem Ipsum to the preview section

@kul3r4 kul3r4 force-pushed the amp-flying-carpet branch 3 times, most recently from bcd17b1 to 6ce2097 Compare June 1, 2016 17:06
@kul3r4
Copy link
Collaborator Author

kul3r4 commented Jun 1, 2016

PTAL.
Please wait for merging when it will look good for you.

@juliantoledo
Copy link
Collaborator

juliantoledo commented Jun 2, 2016

We are getting a 404 for https://cdn.ampproject.org/v0/amp-fx-flying-carpet-0.1.js at the moment. We will hold merging this until amp-fx-flying-carpet is in prod later today.
(context ampproject/amphtml#3336)

@kul3r4 kul3r4 force-pushed the amp-flying-carpet branch 4 times, most recently from 14a11fe to 88cce59 Compare June 3, 2016 08:36
@kul3r4
Copy link
Collaborator Author

kul3r4 commented Jun 6, 2016

@sebastianbenz @juliantoledo PTAL, we are trying to get this ready today.


<!--
`amp-fx-flying-carpet` can be used to display images.
Use height parameter to specify the height of the flying carpets "window".
Copy link
Collaborator

Choose a reason for hiding this comment

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

s/height parameter/height parameter/

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok

@sebastianbenz
Copy link
Collaborator

sebastianbenz commented Jun 6, 2016

Added some comments.

Does it make sense to enable preview mode or wouldn't this work because the flying carpet would be in the first viewport?

@kul3r4
Copy link
Collaborator Author

kul3r4 commented Jun 6, 2016

I didn't enable the preview because this would require even more text to make sure the flying carpet be after the first viewport.(at least when viewing that from a monitor and not from mobile)

@sebastianbenz
Copy link
Collaborator

LGTM

@sebastianbenz sebastianbenz merged commit f772ab7 into ampproject:master Jun 6, 2016
-->
<!--

`amp-fx-flying-carpet` elements must be positioned after the first viewport
Copy link

Choose a reason for hiding this comment

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

Also can't be placed in the last viewport.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks, there is already a comment like that if you scroll the page, it says:

`amp-fx-flying-carpet` elements must be positioned before the last viewport

kul3r4 added a commit that referenced this pull request Jun 10, 2016
kul3r4 added a commit that referenced this pull request Jun 10, 2016
juliantoledo added a commit that referenced this pull request Jun 13, 2016
Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

add working example of amp-install-serviceworker (#156)

* add amp-install-serviceworker sample

* add comments on sw-precache

* add comment on how the SW works in this demo and how to confirm the result

* change to cache all image, video, html

* fix to point to original ABE page

* fix lint of gulpfile.js

* fix to cache only amp-install-serviceworker related files

* add comments on benefits of SW and changed only to cache amp-install-serviceworker

* nit

* modify comments and changed path to sw.js in relative path

* change gulpfile to organize the process to generate sw.js

* change gulpfile.js to directory put sw.js in dist dir

improve amp-social-share sample

* add amp facebook sample
* remove experimental flag
* add samples for all providers

Add amp-fx-flying-carpet sample (#169)

Change cursor to pointer on mouseover (#179)

Improve amp-accordion sample (#184)

* demonstrate better show/hide
* show simple with single show button

Fixes #182,#183.

Added ad to amp-fx-flying-carpet (#186)

optimize images

add AMP URL API embed

add AMP URL API Sample

Added sticky-ad example (#165)

Use a new ad (#187)

Remove the non-working link to create a fork

Fix typo in NewsArticle sample

disable directory file listings

Fixes #82

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button
juliantoledo added a commit that referenced this pull request Jun 14, 2016
Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

add working example of amp-install-serviceworker (#156)

* add amp-install-serviceworker sample

* add comments on sw-precache

* add comment on how the SW works in this demo and how to confirm the result

* change to cache all image, video, html

* fix to point to original ABE page

* fix lint of gulpfile.js

* fix to cache only amp-install-serviceworker related files

* add comments on benefits of SW and changed only to cache amp-install-serviceworker

* nit

* modify comments and changed path to sw.js in relative path

* change gulpfile to organize the process to generate sw.js

* change gulpfile.js to directory put sw.js in dist dir

improve amp-social-share sample

* add amp facebook sample
* remove experimental flag
* add samples for all providers

Add amp-fx-flying-carpet sample (#169)

Change cursor to pointer on mouseover (#179)

Improve amp-accordion sample (#184)

* demonstrate better show/hide
* show simple with single show button

Fixes #182,#183.

Added ad to amp-fx-flying-carpet (#186)

optimize images

add AMP URL API embed

add AMP URL API Sample

Added sticky-ad example (#165)

Use a new ad (#187)

Remove the non-working link to create a fork

Fix typo in NewsArticle sample

disable directory file listings

Fixes #82

Remove AMP URL API Wrapper

* no longer needed as API now supports CORS
* rename view folder -> iframe
* increase result view size to match default result

add separator between amp-fx-flying-carpet and the text, add background and use another ad (#195)

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button
juliantoledo added a commit that referenced this pull request Jun 14, 2016
Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

add working example of amp-install-serviceworker (#156)

* add amp-install-serviceworker sample

* add comments on sw-precache

* add comment on how the SW works in this demo and how to confirm the result

* change to cache all image, video, html

* fix to point to original ABE page

* fix lint of gulpfile.js

* fix to cache only amp-install-serviceworker related files

* add comments on benefits of SW and changed only to cache amp-install-serviceworker

* nit

* modify comments and changed path to sw.js in relative path

* change gulpfile to organize the process to generate sw.js

* change gulpfile.js to directory put sw.js in dist dir

improve amp-social-share sample

* add amp facebook sample
* remove experimental flag
* add samples for all providers

Add amp-fx-flying-carpet sample (#169)

Change cursor to pointer on mouseover (#179)

Improve amp-accordion sample (#184)

* demonstrate better show/hide
* show simple with single show button

Fixes #182,#183.

Added ad to amp-fx-flying-carpet (#186)

optimize images

add AMP URL API embed

add AMP URL API Sample

Added sticky-ad example (#165)

Use a new ad (#187)

Remove the non-working link to create a fork

Fix typo in NewsArticle sample

disable directory file listings

Fixes #82

Remove AMP URL API Wrapper

* no longer needed as API now supports CORS
* rename view folder -> iframe
* increase result view size to match default result

add separator between amp-fx-flying-carpet and the text, add background and use another ad (#195)

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button
juliantoledo added a commit that referenced this pull request Jun 14, 2016
Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

add working example of amp-install-serviceworker (#156)

* add amp-install-serviceworker sample

* add comments on sw-precache

* add comment on how the SW works in this demo and how to confirm the result

* change to cache all image, video, html

* fix to point to original ABE page

* fix lint of gulpfile.js

* fix to cache only amp-install-serviceworker related files

* add comments on benefits of SW and changed only to cache amp-install-serviceworker

* nit

* modify comments and changed path to sw.js in relative path

* change gulpfile to organize the process to generate sw.js

* change gulpfile.js to directory put sw.js in dist dir

improve amp-social-share sample

* add amp facebook sample
* remove experimental flag
* add samples for all providers

Add amp-fx-flying-carpet sample (#169)

Change cursor to pointer on mouseover (#179)

Improve amp-accordion sample (#184)

* demonstrate better show/hide
* show simple with single show button

Fixes #182,#183.

Added ad to amp-fx-flying-carpet (#186)

optimize images

add AMP URL API embed

add AMP URL API Sample

Added sticky-ad example (#165)

Use a new ad (#187)

Remove the non-working link to create a fork

Fix typo in NewsArticle sample

disable directory file listings

Fixes #82

Remove AMP URL API Wrapper

* no longer needed as API now supports CORS
* rename view folder -> iframe
* increase result view size to match default result

add separator between amp-fx-flying-carpet and the text, add background and use another ad (#195)

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button
juliantoledo added a commit that referenced this pull request Jun 14, 2016
Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

add working example of amp-install-serviceworker (#156)

* add amp-install-serviceworker sample

* add comments on sw-precache

* add comment on how the SW works in this demo and how to confirm the result

* change to cache all image, video, html

* fix to point to original ABE page

* fix lint of gulpfile.js

* fix to cache only amp-install-serviceworker related files

* add comments on benefits of SW and changed only to cache amp-install-serviceworker

* nit

* modify comments and changed path to sw.js in relative path

* change gulpfile to organize the process to generate sw.js

* change gulpfile.js to directory put sw.js in dist dir

improve amp-social-share sample

* add amp facebook sample
* remove experimental flag
* add samples for all providers

Add amp-fx-flying-carpet sample (#169)

Change cursor to pointer on mouseover (#179)

Improve amp-accordion sample (#184)

* demonstrate better show/hide
* show simple with single show button

Fixes #182,#183.

Added ad to amp-fx-flying-carpet (#186)

optimize images

add AMP URL API embed

add AMP URL API Sample

Added sticky-ad example (#165)

Use a new ad (#187)

Remove the non-working link to create a fork

Fix typo in NewsArticle sample

disable directory file listings

Fixes #82

Remove AMP URL API Wrapper

* no longer needed as API now supports CORS
* rename view folder -> iframe
* increase result view size to match default result

add separator between amp-fx-flying-carpet and the text, add background and use another ad (#195)

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button

New drawer menu using amp-sidebar

Cherry picked 3aed625
New header design:
* collapse header on mobile devices
* add AMP logo
* introduce hamburger button
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants