Skip to content

Commit

Permalink
- homepage tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofrewak committed Sep 15, 2023
1 parent 24c7386 commit 2388b70
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 59 deletions.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[*.vue]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

Expand Down
44 changes: 0 additions & 44 deletions app/Http/Controllers/HomeController.php

This file was deleted.

6 changes: 6 additions & 0 deletions app/Http/Controllers/Public/HomeController.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public function __invoke(): Response
],
],
],
"counters" => [
["id" => 1, "name" => 'lat prowadzenia zajęć dydaktycznych na uczelni', "value" => 7],
["id" => 2, "name" => 'kursów prowadzonych w tym semestrze', "value" => 5],
["id" => 3, "name" => 'studentów spotkanych na wykładach i innych zajęciach', "value" => 345],
["id" => 4, "name" => 'średnia ocena wystawiona przez studentów w ankiecie nt. jakości kształcenia', "value" => 4.93],
]
]);
}
}
Binary file added public/cwup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 64 additions & 15 deletions resources/js/Pages/Public/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,31 @@ defineProps({
university: String,
universityLogo: String,
sections: Array,
counters: Array,
})
</script>

<template>
<PublicLayout>
<div class="relative isolate bg-white pt-14">
<svg class="absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]" aria-hidden="true">
<svg
class="absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_right,white,transparent)]"
aria-hidden="true">
<defs>
<pattern id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" width="200" height="200" x="50%" y="-1" patternUnits="userSpaceOnUse">
<path d="M100 200V.5M.5 .5H200" fill="none" />
<pattern id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" width="200" height="200" x="50%" y="-1"
patternUnits="userSpaceOnUse">
<path d="M100 200V.5M.5 .5H200" fill="none"/>
</pattern>
</defs>
<svg x="50%" y="-1" class="overflow-visible fill-gray-50">
<path d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z" stroke-width="0" />
<path
d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z"
stroke-width="0"/>
</svg>
<rect width="100%" height="100%" stroke-width="0" fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)" />
<rect width="100%" height="100%" stroke-width="0" fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)"/>
</svg>
<div class="mx-auto max-w-7xl px-6 py-24 sm:py-32 lg:flex lg:items-center lg:gap-x-10 lg:px-8 lg:py-40">
<img src="/cwup.png" alt="" class="w-[50%] absolute right-0 opacity-10">
<div class="mx-auto max-w-7xl px-6 py-24 sm:py-32 lg:flex lg:items-center lg:gap-x-10 lg:px-8 lg:py-32">
<div class="mx-auto max-w-7xl text-center lg:mx-0 lg:flex-auto">
<h1 class="mx-auto mt-10 max-w-4xl text-4xl font-bold tracking-tight text-gray-900 sm:text-6xl">
<span class="font-normal">{{ title }}</span>
Expand All @@ -43,16 +50,21 @@ defineProps({
</div>

<div class="relative isolate bg-gradient-to-r from-gray-50 to-gray-100 py-24 sm:py-32">
<svg class="absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_left,white,transparent)]" aria-hidden="true">
<svg
class="absolute inset-0 -z-10 h-full w-full stroke-gray-200 [mask-image:radial-gradient(100%_100%_at_top_left,white,transparent)]"
aria-hidden="true">
<defs>
<pattern id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" width="200" height="200" x="50%" y="-1" patternUnits="userSpaceOnUse">
<path d="M100 200V.5M.5 .5H200" fill="none" />
<pattern id="83fd4e5a-9d52-42fc-97b6-718e5d7ee527" width="200" height="200" x="50%" y="-1"
patternUnits="userSpaceOnUse">
<path d="M100 200V.5M.5 .5H200" fill="none"/>
</pattern>
</defs>
<svg x="50%" y="-1" class="overflow-visible fill-gray-50">
<path d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z" stroke-width="0" />
<path
d="M-100.5 0h201v201h-201Z M699.5 0h201v201h-201Z M499.5 400h201v201h-201Z M-300.5 600h201v201h-201Z"
stroke-width="0"/>
</svg>
<rect width="100%" height="100%" stroke-width="0" fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)" />
<rect width="100%" height="100%" stroke-width="0" fill="url(#83fd4e5a-9d52-42fc-97b6-718e5d7ee527)"/>
</svg>
<div class="mx-auto max-w-7xl px-6 lg:px-8">
<div class="mx-auto max-w-2xl lg:mx-0">
Expand All @@ -63,19 +75,56 @@ defineProps({
Kilka słów o mnie.
</p>
</div>
<div class="mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 pt-10 lg:mx-0 lg:max-w-none lg:grid-cols-3">
<article v-for="section in sections" :key="section.title" class="flex max-w-xl flex-col items-start justify-between">
<div
class="mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 pt-10 lg:mx-0 lg:max-w-none lg:grid-cols-3">
<article v-for="section in sections" :key="section.title"
class="flex max-w-xl flex-col items-start justify-between">
<div class="group relative">
<h3 class="mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600">
<h3 class="mt-3 text-lg font-semibold leading-6 text-gray-900">
{{ section.header }}
</h3>
<p v-for="(paragraph, i) in section.paragraphs" :key="i" class="mt-5 text-sm leading-6 text-gray-600">
<p v-for="(paragraph, i) in section.paragraphs" :key="i"
class="mt-5 text-sm leading-6 text-gray-600">
{{ paragraph }}
</p>
</div>
</article>
</div>
</div>
</div>

<div class="relative isolate overflow-hidden bg-gray-900 py-24 sm:py-32">
<img
src="https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxzZWFyY2h8M3x8cHJvZ3JhbW1pbmd8ZW58MHx8MHx8fDA%3D&auto=format&fit=crop&w=2850&q=80&blend=111827&blend-mode=multiply&sat=-100&exp=15"
alt="" class="absolute inset-0 -z-10 h-full w-full object-cover"/>
<div class="relative mx-auto max-w-7xl px-6 lg:px-8">
<dl
class="mx-auto grid max-w-2xl grid-cols-1 gap-x-8 gap-y-10 text-white sm:grid-cols-2 sm:gap-y-16 lg:mx-0 lg:max-w-none lg:grid-cols-4">
<div v-for="counter in counters" :key="counter.id" class="flex flex-col gap-y-3 border-l border-white pl-6">
<dt class="text-sm ">{{ counter.name }}</dt>
<dd class="order-first text-5xl font-semibold tracking-tight">{{ counter.value }}</dd>
</div>
</dl>
</div>
</div>

<div class="bg-white py-16 sm:py-24 lg:py-32">
<div class="w-full flex gap-16 items-center">
<div class="w-2/5 flex flex-col gap-1 text-right">
<h2 class="text-4xl font-bold inline sm:block lg:inline xl:block">Jakiekolwiek pytania?</h2>
<h3 class="text-xl font-semibold inline sm:block lg:inline xl:block">Wystarczy napisać mejla.</h3>
</div>
<div class="flex-1">
<a href="mailto:krzysztof.rewak@collegiumwitelona.pl" class="flex items-end justify-content">
<span class="text-5xl font-bold">
krzysztof.rewak
</span>
<span class="text-3xl">
@collegiumwitelona.pl
</span>
</a>
</div>
</div>
</div>
</PublicLayout>
</template>

0 comments on commit 2388b70

Please sign in to comment.