diff --git a/src/client/style.css b/src/client/style.css index 93623ec..6c5580c 100644 --- a/src/client/style.css +++ b/src/client/style.css @@ -655,7 +655,7 @@ a:visited { place-content: center; - background: linear-gradient(180deg, #f5efff 0%, #fafcfe 100%); + background: linear-gradient(to bottom right, #f5efff 0%, #fafcfe 100%); > section { display: grid; @@ -684,7 +684,7 @@ a:visited { min-height: calc(100vh + 20rem); - padding-top: 20vh; + padding-top: 15vh; h1 { font-size: 3rem; @@ -708,6 +708,12 @@ a:visited { border-radius: 0.5rem; box-shadow: 0 0 0.25rem 0 #680bff08, 0 0.5rem 1rem 0 #680bff10; + + transition: transform 0.25s; + + &:hover { + transform: scale(1.05); + } } } @@ -752,6 +758,41 @@ a:visited { } } +header { + display: grid; + grid-template-columns: auto 1fr auto; + align-items: center; + + padding: 1rem; + + border-bottom: 1px solid #d9d9d9; + + font-size: 18px; + + .logo { + font-size: 24px; + font-weight: 700; + } + + nav { + display: grid; + grid-auto-flow: column; + gap: 1rem; + } + + a, + a:visited { + color: #333; + text-decoration: none; + + font-weight: 400; + + &:hover { + text-decoration: underline solid 2px; + } + } +} + footer { display: grid; gap: 1rem; diff --git a/src/layouts/Base.astro b/src/layouts/Base.astro index 9da26ca..0f59d6c 100644 --- a/src/layouts/Base.astro +++ b/src/layouts/Base.astro @@ -18,7 +18,7 @@ const { title } = Astro.props - {[title, 'Online Code Editor'].filter(Boolean).join(' | ')} + {[title, 'PHC / Run'].filter(Boolean).join(' | ')} diff --git a/src/pages/index.astro b/src/pages/index.astro index 9efb234..fb6fd8d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,15 +1,22 @@ --- -import '@xterm/xterm/css/xterm.css' -import '../client/style.css' -import Base from '../layouts/Base.astro' +import Base from '@/layouts/Base.astro' --- - + +
+ +
+ +

PHC / Run

A platform to easily create, run and share code projects and prototypes

- phc run screenshot + phc run screenshot

Features

diff --git a/src/pages/login.astro b/src/pages/login.astro new file mode 100644 index 0000000..8dfc5f0 --- /dev/null +++ b/src/pages/login.astro @@ -0,0 +1,30 @@ +--- +import Base from '@/layouts/Base.astro' + +console.log('env:', Object.fromEntries(Object.entries(import.meta.env).filter(([key]) => key.startsWith('OAUTH_')))) +--- + + +
+ +
+ +
+
+

Login

+
+ + + + + +
+

Or login with

+ GitHub + OAuth Provider 1 +
+