Skip to content

Commit

Permalink
feat + fix: web design system set up, fixed lato font
Browse files Browse the repository at this point in the history
  • Loading branch information
andreisito committed Jul 24, 2024
1 parent 863bfc5 commit 6c66baa
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 6 deletions.
8 changes: 6 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,23 @@ export default function RootLayout({
return (
<html lang="en">
<head>
<style>
@import
url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
</style>
<link
rel="stylesheet"
href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossOrigin=""
/>
<link
{/* <link
href="https://fonts.googleapis.com/css?family=Lato:400,700"
rel="stylesheet"
integrity="sha384-DelNu+PL/74bL4pHGH8gPG8J5Q6wrLpZiiVttBSvpOibBVQf3EOXerhZlmHcnZsI"
type="text/css"
crossOrigin=""
/>
/> */}
<script
src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
Expand Down
2 changes: 1 addition & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function Home() {
<WelcomeGraphic />
<div className="IntroInfo web:w-full web:h-72 bg-ivory web:bg-mint-cream inline-flex flex-col justify-center items-center">
{!isWebDevice && (
<p className="b3 w-full px-4 py-10 text-night text-center text-base gap-4">
<p className="b3 w-full px-4 py-10 text-night text-center gap-4">
The Peninsula Humane Society & SPCA (PHS/SPCA) is a local, private,
non-profit charitable organization dedicated to animal welfare.
PHS/SPCA is truly an open admission shelter, not only accepting many
Expand Down
10 changes: 10 additions & 0 deletions src/app/testing/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// @ts-nocheck
'use client';

/* eslint-disable */

import React from 'react';

export default function Test() {
return <div />;
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ function WelcomeGraphic() {
>
<div className="w-80 h-38 flex-col justify-start items-center gap-1 inline-flex">
<p className=" font-light text-center">WELCOME TO</p>
<h1 className="text-center w-80">The Peninsula Humane</h1>
<h1 className="text-center w-80 web:w-[46.938rem]">
The Peninsula Humane Society & SPCA Wildlife Care Center
</h1>
{/* <h1 className="text-center w-80">The Peninsula Humane</h1>
<h1 className="text-center w-80">Society & SPCA</h1>
<h1 className="text-center w-80">Wildlife Care Center</h1>
<h1 className="text-center w-80">Wildlife Care Center</h1> */}
{isWebDevice && (
<p className="b3 font-light mt-7 w-96 text-center">
<p className="b3 font-light mt-7 w-[33.563rem] text-center">
Peninsula Humane Society & SPCA (PHS & SPCA) is a local, private,
non-profit charitable organization dedicated to animal welfare.
</p>
Expand Down
35 changes: 35 additions & 0 deletions src/components/userComponents/VisitorResources/AdmissionButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
import React from 'react';
import Link from 'next/link';
import { MdOutlineCalendarMonth } from 'react-icons/md';

/**
* @returns - Button for the user to view the hours and location of the wildlife care center
* This button is part of the Visitor Resources section of the home page
*/
function AdmissionButton() {
return (
<Link
className="AdmissionButton bg-ivory w-full py-5 rounded-md shadow
justify-center items-center inline-flex z-10
px-5 web:px-8 web:py-6"
href="/hoursAdmissionPage"
>
<div
className="GreenCircle w-10 h-10 relative bg-mint-cream
rounded-full flex justify-center items-center"
>
<MdOutlineCalendarMonth className="w-7 h-7 text-scary-forest" />
</div>
<div
className="flex-col justify-start
items-start gap-0.5 inline-flex"
>
<p className="b1 text-night whitespace-normal web:text-nowrap">
Hours & Location
</p>
</div>
</Link>
);
}

export default AdmissionButton;

0 comments on commit 6c66baa

Please sign in to comment.