Skip to content

Commit

Permalink
feat: adding API text in heading of Hero Page (#40)
Browse files Browse the repository at this point in the history
* feat:adding API text in heading of Hero Page

* fix: youtube url

Signed-off-by: Neha Gupta <[email protected]>

---------

Signed-off-by: Neha Gupta <[email protected]>
Co-authored-by: Neha Gupta <[email protected]>
  • Loading branch information
Hermione2408 and nehagup authored May 23, 2024
1 parent ae35c6e commit a276256
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 5 deletions.
7 changes: 6 additions & 1 deletion app/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
direction: rtl;
}
}

@font-face {
font-family: 'Pencil';
src: local('Pencil'), url(../../public/Poetirey-Regular.ttf) format('truetype');
font-weight: normal;
font-style: normal;
}
.no-scrollbar {
-ms-overflow-style: none; /* Internet Explorer 10+ */
scrollbar-width: none; /* Firefox */
Expand Down
34 changes: 31 additions & 3 deletions components/hero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import React from "react";
import CopyButton from './utils/copyButton';
import { TrustedBy } from './trustedBy';
import Link from 'next/link';
import APItext from "@/public/images/apiText.png"
export default function Hero() {
return (
<section className="relative">
Expand Down Expand Up @@ -37,8 +38,35 @@ export default function Hero() {
<p className="text-2xl text-accent-200 mb-4 " data-aos="zoom-y-out" data-aos-delay="150">
5 minutes to 90% test coverage!
</p>
<h1 className="lg:text-6xl text-5xl text-secondary-300 font-extrabold leading-tighter tracking-tighter mb-4 " data-aos="zoom-y-out"> AI Generated Tests<br />
<span className="bg-clip-text text-transparent bg-gradient-to-r from-gradient-500 to-gradient-200"> that actually work!</span></h1>
<h1
className="lg:text-6xl text-5xl text-secondary-300 font-extrabold leading-tighter tracking-tighter mb-4 md:mt-16 lg:mt-24"
data-aos="zoom-y-out"
>
{" "}
{"AI Generated "}
<span
className="absolute hidden md:inline font-pencil font-light pt-2 text-green-900"
style={{
top: "0.8em",
transform: "rotate(-10deg)",
}}
>
^
<span
className="absolute lg:bottom-44 bottom-28 -left-2 hidden md:inline font-pencil font-light text-3xl lg:text-5xl text-green-900"
style={{
transform: "rotate(-5deg)",
}}
>
API
</span>
</span>
Tests
<br />
<span className="bg-clip-text text-transparent bg-gradient-to-r from-gradient-500 to-gradient-200">
that actually work!
</span>
</h1>
<div className="max-w-3xl mx-auto">
<p className="text-xl lg:text-center text-center text-accent-200 mb-8" data-aos="zoom-y-out" data-aos-delay="150">
<b>Open Source</b> Platform for converting API calls to Test Cases with Data Mocks
Expand Down Expand Up @@ -66,7 +94,7 @@ export default function Hero() {
thumbWidth={768}
thumbHeight={432}
thumbAlt="Keploy Demo video"
video="https://www.youtube.com/embed/5BDJaWMCuu0"
video="https://www.youtube.com/embed/gvWvpqWM48s"
videoWidth={768}
videoHeight={432} />
</div>
Expand Down
Binary file added public/Poetirey-Regular.ttf
Binary file not shown.
4 changes: 3 additions & 1 deletion tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ module.exports = {
},
fontFamily: {
inter: ['var(--font-inter)', 'sans-serif'],
'architects-daughter': ['var(--font-architects-daughter)', 'sans-serif']
'architects-daughter': ['var(--font-architects-daughter)', 'sans-serif'],
pencil: ['Pencil', 'sans-serif'],

},
fontSize: {
xs: '0.75rem',
Expand Down

0 comments on commit a276256

Please sign in to comment.