Skip to content

Commit

Permalink
add nice divider between routing and page header
Browse files Browse the repository at this point in the history
  • Loading branch information
RiddleTime committed Jun 13, 2024
1 parent 0c12b56 commit 3bee603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@ import { SocialsComponent } from "./components/socials/socials.component";
template: `
<div class="container mx-auto flex flex-col self-center pt-2 select-none">
<div class="mx-auto mb-3">
<a href="/" class="self-center drop-shadow-[0_35px_35px_rgba(1,1,1,0.25)] text-center font-['Conthrax'] text-5xl md:text-7xl text-[orangered] select-none hover:text-[orangered] ">
<div class="mx-auto mb-3">
<a href="/" class="self-center drop-shadow-[0_35px_35px_rgba(1,1,1,0.25)] text-center font-['Conthrax'] text-5xl md:text-7xl text-[orangered] hover:text-[orangered] ">
<div class="-skew-x-12 ">Race Element</div>
</a>
<p class="text-center font-['Conthrax'] select-none">Provides Solutions for Sim Racing</p>
<p class="text-center font-['Conthrax']">Provides Solutions for Sim Racing</p>
</div>
<div class="mx-auto container place-content-center grid max-w-xl md:max-w-3xl grid-cols-2 md:grid-cols-1">
<nav class="select-none text-lg font-['Conthrax'] mx-auto place-content-start md:place-content-center md:text-2xl flex flex-wrap flex-col md:flex-row">
<a href="/news" class="mx-auto text-center mb-2 md:mb-0 text-[white] hover:text-[red] hover:bg-[rgba(0,0,0,0.8)] ml-1 mr-1 pl-2 pr-2 bg-[rgba(0.2,0.2,0.2)] rounded-tl-lg rounded-br-lg">News</a>
<a href="/guide" class="mx-auto text-center mb-2 md:mb-0 text-[white] hover:text-[red] hover:bg-[rgba(0,0,0,0.8)] ml-1 mr-1 pl-2 pr-2 bg-[rgba(0.2,0.2,0.2)] rounded-tl-lg rounded-br-lg">Guides</a>
Expand All @@ -25,6 +27,7 @@ import { SocialsComponent } from "./components/socials/socials.component";
<app-socials class="mx-auto" />
</div>
<div class="border-t-2 border-[orangered] mt-4 md:mt-4 container mx-auto max-w-md md:max-w-xl" ></div>
<router-outlet class="mt-2 md:mt-4"></router-outlet>
<br>
Expand Down
2 changes: 1 addition & 1 deletion src/app/pages/guide/index.page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { CommonModule } from '@angular/common';
imports: [RouterLink, CommonModule],
template: `
<div class="mx-auto px-7 rounded-lg shadow-lg select-none container">
<h1 class="font-['Conthrax'] text-4xl mb-1 mt-1 text-center">Guides</h1>
<h1 class="font-['Conthrax'] text-4xl mb-2 md:mb-1 mt-1 text-center">Guides</h1>
<div class="container mx-auto flex-wrap">
@for (post of posts;track post.attributes.slug) {
<a [routerLink]="['/guide/', post.attributes.slug]">
Expand Down

0 comments on commit 3bee603

Please sign in to comment.