Free template for Company Profile made using HTML5 and TailwindCSS!
It is a fully responsive template which you can use for your company or maybe for your own portfolio website.
🌐 Demo Site: https://highproperty.vercel.app/
- Fully responsive design
- Built with HTML5 and TailwindCSS for modern and clean UI
- Flowbite components for enhanced UI elements
- SEO friendly
- Includes basic class profile structure: Home, About, Services, and Contact
- Clone the repository
git clone https://github.com/alanzagi/highproperty-companyprofile.git
- Navigate to the Project Directory
cd highproperty-companyprofile
- Create a new Google Sheet
- First, go to Google Sheets and
Start a new spreadsheet
with theBlank
template. - Rename it
Email Subscribers
. Or whatever, it doesn't matter. - Put the following headers into the first row:
A | B | C | ... | |
---|---|---|---|---|
1 | timestamp |
- Create a Google Apps Script
- Click on
Tools > Script Editor…
which should open a new tab. - Rename it
Submit Form to Google Sheets
. Make sure to wait for it to actually save and update the title before editing the script. - Now, delete the
function myFunction() {}
block within theCode.gs
tab. - Paste the following script in it's place and
File > Save
:
var sheetName = 'Sheet1'
var scriptProp = PropertiesService.getScriptProperties()
function intialSetup () {
var activeSpreadsheet = SpreadsheetApp.getActiveSpreadsheet()
scriptProp.setProperty('key', activeSpreadsheet.getId())
}
function doPost (e) {
var lock = LockService.getScriptLock()
lock.tryLock(10000)
try {
var doc = SpreadsheetApp.openById(scriptProp.getProperty('key'))
var sheet = doc.getSheetByName(sheetName)
var headers = sheet.getRange(1, 1, 1, sheet.getLastColumn()).getValues()[0]
var nextRow = sheet.getLastRow() + 1
var newRow = headers.map(function(header) {
return header === 'timestamp' ? new Date() : e.parameter[header]
})
sheet.getRange(nextRow, 1, 1, newRow.length).setValues([newRow])
return ContentService
.createTextOutput(JSON.stringify({ 'result': 'success', 'row': nextRow }))
.setMimeType(ContentService.MimeType.JSON)
}
catch (e) {
return ContentService
.createTextOutput(JSON.stringify({ 'result': 'error', 'error': e }))
.setMimeType(ContentService.MimeType.JSON)
}
finally {
lock.releaseLock()
}
}
- Run the setup function
- Next, go to
Run > Run Function > initialSetup
to run this function. - In the
Authorization Required
dialog, click onReview Permissions
. - Sign in or pick the Google account associated with this projects.
- You should see a dialog that says
Hi {Your Name}
,Submit Form to Google Sheets wants to
... - Click
Allow
- Add a new project trigger
- Click on
Edit > Current project’s triggers
. - In the dialog click
No triggers set up. Click here to add one now.
- In the dropdowns select
doPost
- Set the events fields to
From spreadsheet
andOn form submit
- Then click
Save
- Publish the project as a web app
- Click on
Publish > Deploy as web app…
. - Set
Project Version
toNew
and putinitial version
in the input field below. - Leave
Execute the app as:
set toMe(your@address.com)
. - For
Who has access to the app:
selectAnyone, even anonymous
. - Click
Deploy
. - In the popup, copy the
Current web app URL
from the dialog. - And click
OK
.
- Open the file named
js/script.js
. replacescriptURL
with yourCurrent web app URL
:
const scriptURL = "paste yours here";
and then the code would become like these
const scriptURL = "https://script.google.com/macros/s/AKfycbzWmtYtXzNb8UfFd8anfTHxaJHNI_VbZc81-sIzZ1Uv-GxsBXmQZcESKSzv9xbcz4dT/exec";
- So you can use the Contact Us feature, you have to change the value of variable on the file named
js/script.js
to the company/destination number
const phoneNumber = "6281521550913"
- Finished
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork this Repository
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Here to support me on Trakteer
You can start supporting by buying me an ice cream 🍦
start from Rp10.000 / 0.64 USD. Thank you very much! 🙏
If you need my services, like deployment this website to online or etc,
you can start talk to me for business cooperation.
Click This Link for start message me.