feat: changes

This commit is contained in:
TheClashFruit 2024-01-12 21:47:16 +01:00
parent 7cacd46266
commit 101f5934a3
Signed by: TheClashFruit
GPG key ID: 09BB24C34C2F3204
2 changed files with 356 additions and 9 deletions

209
css/style.scss Normal file
View file

@ -0,0 +1,209 @@
@import url('https://fonts.googleapis.com/css2?family=Rethink+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500;1,600;1,700;1,800&family=Space+Mono:ital@0;1&display=swap');
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
html {
height: 100%;
}
body {
font-family: 'Rethink Sans', sans-serif;
display: flex;
flex-direction: column;
height: 100%;
}
a {
background: linear-gradient(337deg, #A855F7 -34.74%, #3B0764 162.02%);
background-clip: text;
text-decoration: none;
&:hover {
text-decoration: underline;
}
}
header {
margin: 0 0 2rem;
background: linear-gradient(337deg, #A855F7 -34.74%, #3B0764 162.02%), #D9D9D9;
color: #fff;
height: 30vh;
> div {
max-width: 1100px;
margin: 0 auto;
padding: 1rem 0;
height: 100%;
display: flex;
flex-direction: column;
justify-content: end;
.title {
display: flex;
align-items: center;
gap: 1rem;
}
}
}
main {
display: flex;
flex-direction: column;
flex: 1;
max-width: 1100px;
margin: 0 auto 2rem;
gap: 2rem;
h2 {
margin-bottom: 1rem;
line-height: 1.5rem;
}
p {
margin-bottom: 0.5rem;
line-height: 1.5rem;
}
code, kbd {
background-color: #f3f3f3;
padding: 0.1rem 0.3rem;
border-radius: 4px;
border: 1px solid #ccc;
font-family: monospace;
}
}
footer {
background-color: #f3f3f3;
.footerInner {
display: flex;
justify-content: space-between;
align-items: start;
padding: 16px 0;
max-width: 1100px;
margin: 0 auto;
> .footerText {
display: flex;
flex-direction: column;
gap: 0.3rem;
}
> .footerLinks {
display: flex;
justify-content: space-between;
align-items: start;
gap: 2rem;
> div {
display: flex;
flex-direction: column;
gap: 0.5rem;
> ul {
display: flex;
flex-direction: column;
gap: 0.3rem;
> li {
list-style: none;
> a {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
}
}
> label {
text-transform: uppercase;
font-weight: 700;
}
}
}
}
}
.cards {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1rem;
> .card {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1rem;
border-radius: 4px;
border: 1px solid #ccc;
> .cardTitle {
font-size: 1.2rem;
}
> .cardDescription {
font-size: 0.9rem;
}
> .cardLink {
text-decoration: none;
color: #000;
font-size: 0.9rem;
}
}
}

View file

@ -6,17 +6,155 @@
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>TheClashFruit's Forgejo &bull; Pages</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<h1>UNDER CONSTRUCTION</h1>
<header>
<div>
<div class="title">
<svg width="3rem" height="3rem" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M18 15C16.3431 15 15 16.3431 15 18C15 19.6569 16.3431 21 18 21C19.6569 21 21 19.6569 21 18C21 16.3431 19.6569 15 18 15ZM18 15V8C18 7.46957 17.7893 6.96086 17.4142 6.58579C17.0391 6.21071 16.5304 6 16 6H13M6 9C7.65685 9 9 7.65685 9 6C9 4.34315 7.65685 3 6 3C4.34315 3 3 4.34315 3 6C3 7.65685 4.34315 9 6 9ZM6 9V16C6 16.5304 6.21071 17.0391 6.58579 17.4142C6.96086 17.7893 7.46957 18 8 18H11" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
<h2>Links:</h2>
<ul>
<li>
<a href="https://theclashfruit.page/legal/privacy.html">
Privacy Policy
</a>
</li>
</ul>
<h1>TheClashFruit's Forgejo Pages</h1>
</div>
</div>
</header>
<main>
<div>
<h2>
Quick Setup
</h2>
<div class="cards">
<div class="card">
<h3>
Create a Repository.
</h3>
<p>
Create a repository on <a href="https://git.theclashfruit.me">TheClashFruit's Forgejo</a> named <code>pages</code> and push your code to the <code>main</code> branch.
</p>
<p>
Alternatively, you can create a page for a repo at <code>user.theclashfruit.page/repo</code> by creating a new empty branch named <code>pages</code> in your repo.
</p>
</div>
<div class="card">
<h3>
Upload your Code.
</h3>
<p>
Upload your HTML, CSS, and JS and whatever else to you repository.
</p>
<p>
Keep in mind that we have caching enabled, so when you push new code it may take a few minutes to update, alternativly you can try refreshing with <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>R</kbd>.
</p>
</div>
<div class="card">
<h3>
That's It!
</h3>
<p>
You can now access your page at <code>user.theclashfruit.page</code> or <code>user.theclashfruit.page/repo</code>.
</p>
<p>
The software we use to deliver your pages is open-source! Check out its <a href="https://git.gay/gitgay/pages-server">source code</a>!
</p>
</div>
</div>
</div>
<div>
<h2>
Custom Domains
</h2>
<p>
To use a custom domain create a <code>.domains</code> file in the root of your repository and add your domain to it.
</p>
<p>
Then add a CNAME record to your DNS pointing to <code>[[branch.]repo.]user.theclashfruit.page</code>.
</p>
<p>
For apex domains where you can't add a <code>CNAME</code> record, add an <code>A</code> record pointing to <code>132.145.233.75</code>, an <code>AAAA</code> record pointing to <code>2603:c020:8013:a05a:de6c:60c0:9a73:35ae</code>, and a <code>TXT</code> record with the value <code>[[branch.]repo.]user.theclashfruit.page</code>.
</p>
</div>
</main>
<footer>
<div class="footerInner">
<div class="footerText">
<p>
Copyright &copy; 2024 TheClashFruit.
</p>
<label>
Powered by <a href="https://git.gay/gitgay/pages-server">git.gay pages-server</a>.
</label>
<p>
<a href="https://git.theclashfruit.me">
TheClashFruit's Forgejo
</a>
</p>
</div>
<div class="footerLinks">
<div>
<label>Legal</label>
<ul>
<li>
<a href="https://theclashfruit.page/legal/privacy.html">
Privacy
</a>
</li>
<li>
<a href="https://theclashfruit.page/legal/terms.html">
Terms
</a>
</li>
<li>
<a href="https://theclashfruit.page/legal/rules.html">
Rules
</a>
</li>
</ul>
</div>
<div>
<label>Resources</label>
<ul>
<li>
<a href="https://theclashfruit.page/legal/privacy.html">
Docs
</a>
</li>
<li>
<a href="https://theclashfruit.page/legal/privacy.html">
Issues
</a>
</li>
<li>
<a href="https://bstatus.theclashfruit.me/">
Status
</a>
</li>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>