Skip to content

Commit

Permalink
Cleaned up the email-confirmation sample.
Browse files Browse the repository at this point in the history
Change-Id: I42e180315f3a48e0196d2ad4a0699248ae535545
  • Loading branch information
Nicolas Garnier committed Jul 6, 2016
1 parent 4fc14dd commit 2d983a2
Show file tree
Hide file tree
Showing 7 changed files with 71 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
**/node_modules/*
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ This repository contains a collection of templates showcasing some typical uses

## Prerequisites

To learn how to get started with Cloud Functions and Firebase try the quickstarts ([Web](https://devrel.git.corp.google.com/samples/firebase/quickstart/web/+/master/gcf/), [Android](https://devrel.git.corp.google.com/samples/firebase/quickstart/android/+/master/functions/)) and have a look at [the documentation](https://developers.google.com/firebase/docs/cloud-functions/setup).
To learn how to get started with Cloud Functions and Firebase try the [quickstart](https://devrel.git.corp.google.com/samples/firebase/quickstart/functions/) and have a look at [the documentation](https://firebase.google.com/preview/functions/).


## Use Cases and Samples

Expand All @@ -15,6 +16,10 @@ This repository contains the following templates:

How to moderate user input text for bad words. For example this can be used to moderate usernames, chat or forum messages.

### [Email Confirmation](/email-confirmation)

Sends email confirmation after users subscribed to a mailing list.

### [LastModified Firebase Database tracking](/lastmodified-tracking)

Tracking when the Firebase Database (or a subset) was last modified.
Expand Down
2 changes: 1 addition & 1 deletion email-confirmation/firebase.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"rules": "database.rules.json"
},
"hosting": {
"public": "./"
"public": "public"
}
}
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,6 @@ <h3>Very interesting website with Newsletter</h3>
* TODO(DEVELOPER): Paste the initialization snippet from: Firebase Console > Overview > Add Firebase to your web app. *
*********************************************************************************************************************** -->

<script src="scripts/main.js"></script>
<script src="main.js"></script>
</body>
</html>
62 changes: 62 additions & 0 deletions email-confirmation/public/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* Copyright 2015 Google Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

html, body {
font-family: 'Roboto', 'Helvetica', sans-serif;
}
.mdl-grid {
max-width: 1024px;
margin: auto;
}
.mdl-card {
min-height: 0;
padding-bottom: 5px;
}
.mdl-layout__header-row {
padding: 0;
}
#message-form {
display: flex;
flex-direction: column;
}
#message-form button {
max-width: 300px;
}
#message-list {
padding: 0;
width: 100%;
}
#message-list > div {
padding: 15px;
border-bottom: 1px #f1f1f1 solid;
}
h3 {
background: url('firebase-logo.png') no-repeat;
background-size: 40px;
padding-left: 50px;
}
#demo-signed-out-card,
#demo-signed-in-card,
#demo-subscribe-button,
#demo-unsubscribe-button,
#demo-subscribed-text-container,
#demo-unsubscribed-text-container {
display: none;
}
#demo-subscribe-button,
#demo-unsubscribe-button {
margin-right: 20px;
}
File renamed without changes.

0 comments on commit 2d983a2

Please sign in to comment.