-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Major: Screenshots, Link-tree and more.
Added: linktree. Fixed: Microsoft identify.json Added: Puppteer for screenshot for out website for meta data. Added: Screenshot in deploy.yml. Removed: playwright config file. Removed: Svelte. Removed: Dropdown for Socials. Changed: Favicon to a webp. Added: Terms of Service. And More. New Contributes: AsmodeusBrooding
- Loading branch information
1 parent
79e3b5f
commit e061050
Showing
32 changed files
with
513 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,13 +52,40 @@ jobs: | |
|
||
# ----------------------------------------------- | ||
|
||
# Screenshot of website | ||
|
||
screenshot: | ||
runs-on: ubuntu | ||
needs: [codacy-security-scan] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '14' | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Run screenshot script | ||
run: npm run screenshot | ||
|
||
- name: Commit and push if it changed | ||
run: | | ||
git config --global user.name 'Automated' | ||
git config --global user.email '[email protected]' | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || (git commit -m 'Update: screenshot' && git push) | ||
# Building the website | ||
build: | ||
runs-on: self-hosted | ||
needs: [codacy-security-scan] | ||
needs: [codacy-security-scan, screenshot] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
# Install Dependenices | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import puppeteer from 'puppeteer'; | ||
|
||
(async () => { | ||
const browser = await puppeteer.launch({ | ||
headless: 'new', | ||
ignoreHTTPSErrors: true | ||
}); | ||
const page = await browser.newPage(); | ||
await page.setViewport({width: 1920, height: 1080}); // Set viewport size | ||
await page.goto('http://localhost:7053'); | ||
await | ||
await page.screenshot({ path: './public/screenshot.webp', type: 'webp' }); | ||
await browser.close(); | ||
console.log('done'); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
// DownloadBox.astro | ||
const { buttonText, src, screenshot } = Astro.props; | ||
--- | ||
|
||
<div class="download-box"> | ||
<section class="screenshots"> | ||
<img src={screenshot} width="128" height="128" alt="Screenshot of the file" /> | ||
</section> | ||
<a href={src} download> | ||
<button class="download-button">{buttonText}</button> | ||
</a> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--- | ||
// Components | ||
import Head from '../components/shared/head.astro' | ||
import Header from '../components/shared/header.astro' | ||
import Footer from '../components/shared/footer.astro' | ||
// Styles | ||
import '../styles/link-tree.scss' | ||
--- | ||
|
||
<Head/> | ||
<Header/> | ||
<!-- Content --> | ||
<slot /> | ||
<!--Footer --> | ||
<Footer/> |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
--- | ||
import Layout from '../../layouts/default.astro' | ||
import Layout from "../../layouts/default.astro" | ||
import DownloadBox from '../../components/shared/DownloadBox.astro'; | ||
--- | ||
|
||
<Layout> | ||
|
||
<div class="container"> | ||
<DownloadBox buttonText="Download Pvp PackRed" src="/packs/TeaClient - PVP PACK RED EDITION.zip" screenshot="/icon.webp" /> | ||
<DownloadBox buttonText="Download all packs" /> | ||
</div> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
import Layout from '../layouts/linktree.astro' | ||
--- | ||
|
||
|
||
<Layout> | ||
<div class="link-box"> | ||
|
||
</div> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
--- | ||
import Layout from "../../layouts/default.astro" | ||
import "../../styles/news.scss" | ||
--- | ||
|
||
<Layout> | ||
<style type="text/sass"> | ||
</style> | ||
|
||
|
||
|
||
|
||
<div> | ||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
import Layout from "../layouts/default.astro" | ||
--- | ||
|
||
<Layout> | ||
|
||
</Layout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
import Layout from "../layouts/default.astro" | ||
import "../styles/terms.scss" | ||
--- | ||
|
||
<Layout> | ||
<div class="tos-container"> | ||
<h1 class="tos-title">Terms of Service</h1> | ||
<p>Last Updated: October 30 2023</p> | ||
<br> | ||
<br> | ||
<br> | ||
<p>Please read these terms of service (“terms”, “terms of service”) carefully before using TeaClient (the “service”) operated by TeaClientMC. (“us”, ‘we”, “our”).</p> | ||
<br> | ||
<br> | ||
<h1 class="tos-title">Condition of Use</h1> | ||
<p>We will provide their services to you, which are subject to the conditions stated below in this document. Every time you visit this website, use its services or make a purchase, you accept the following conditions. This is why we urge you to read them carefully.</p> | ||
<br> | ||
<br> | ||
<h1 class="tos-title">Our Content</h1> | ||
<p>Content published on this website and services (digital downloads, images, texts, graphics, logos) is the property of TeaClient, Inc. and/or its content creators and protected by international copyright laws. The entire compilation of the content found on this website and TeaClient is the exclusive property of TeaClientMC.</p> | ||
<!-- Add the rest of your terms of service here --> | ||
<br> | ||
<br> | ||
<h1 class="tos-title">Govening Law</h1> | ||
<br> | ||
<br> | ||
<h1 class="tos-title">Social Media</h1> | ||
<p></p> | ||
|
||
</div> | ||
</Layout> |
Oops, something went wrong.