Skip to content

Commit

Permalink
Small design improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
y1mz committed Feb 3, 2024
1 parent 2bef732 commit edcfdf3
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 9 deletions.
2 changes: 1 addition & 1 deletion app/blog/page.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function BlogPage() {

return (
<div className="justify-center">
<div className="items-center py-10">
<div className="items-center">
<HeroSection
title={"Server Updates"}
/>
Expand Down
17 changes: 11 additions & 6 deletions app/photos/page.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import fs from "fs";
import path from "path";
import localFont from "next/font/local";
import GalleryItem from "@/components/gallery-item";
import fs from "fs"
import path from "path"

import localFont from "next/font/local"
import GalleryItem from "@/components/gallery-item"
import HeroSection from "@/components/hero-section"


const myFont = localFont({
src: "./Minecraft.woff2",
Expand All @@ -22,8 +25,10 @@ async function GalleryPage() {
const photos = gallery.pngFiles;
return (
<div className="justify-center">
<div className="items-center py-10">
<h1 className={`text-4xl text-center items-center ${myFont.className}`}>Gallery</h1>
<div className="items-center">
<HeroSection
title={"Server Gallery"}
/>
</div>
<div className="container ml-auto px-5 py-2">
<div className="justify-center items-center md:ml-[70px]">
Expand Down
2 changes: 1 addition & 1 deletion components/footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function Footer() {
return (
<footer className="flex flex-col items-center justify-center mb-10">
<div className="flex gap-5 text-lg text-gray-500 mb-2">
<Link href="https://github.com/B4tuhanY1lmaz/tbnmc-website"> <BsGithub /> </Link>
<Link href="https://github.com/B4tuhanY1lmaz/Caesium"> <BsGithub /> </Link>
<Link href="https://discord.gg/8dAHkxbKPf"> <BsDiscord /> </Link>
<Link href="/feed.xml"> <BsFillRssFill /> </Link>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/hero-section.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function HeroSection({ title }) {

</div>
<div className={`absolute bottom-0 left-0 right-o top-0 h-full w-full
overflow-hidden bg-fixed bg-black/60`}
overflow-hidden bg-fixed bg-black/40`}
>
<div className="flex flex-col h-full items-center justify-center">
<h1 className={`text-lg sm:text-xl md:text-2xl mb-4 ${MinecraftFont.className}`}>{title}</h1>
Expand Down
34 changes: 34 additions & 0 deletions components/ui/badge.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import * as React from "react"
import { cva } from "class-variance-authority";

import { cn } from "@/libs/utils"

const badgeVariants = cva(
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
{
variants: {
variant: {
default:
"border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
secondary:
"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
destructive:
"border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
outline: "text-foreground",
},
},
defaultVariants: {
variant: "default",
},
}
)

function Badge({
className,
variant,
...props
}) {
return (<div className={cn(badgeVariants({ variant }), className)} {...props} />);
}

export { Badge, badgeVariants }
5 changes: 5 additions & 0 deletions public/pages/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
title: Test
url: test
---
Testttt

0 comments on commit edcfdf3

Please sign in to comment.