Skip to content

Fixes menu responsiviness #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,14 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"dev": "next dev -H 0.0.0.0 -p 3000",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@vercel/analytics": "^1.3.1",
"@vercel/speed-insights": "^1.0.12",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18"
Expand Down
217 changes: 211 additions & 6 deletions src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,225 @@

@import url('https://fonts.googleapis.com/css2?family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
--green-bg: #001F26;
--purple-text: #9A59FF;
--faq-grey: #B1C2BE;
}

body {
background-color: #000;
color: #fff;
font-family: Inter;
}

.talkd-menu{
background-color: #001F26;
}

.menu-item li span:hover{
text-decoration: 1px solid underline;
text-decoration: 1px solid underline;
}

/* Menu.css */
.menu {
background-color: var(--green-bg);
font-size: 16px;
height: 40px;
}

.menu-items {
display: flex;
}

.menu-item {
color: white;
cursor: pointer;
position: relative;
transition: color 0.3s ease;
padding: 8px;
font-weight: 600;
}

.menu-item.selected, .menu-item:hover {
color: var(--purple-text);
}

.menu-item:hover::after {
content: '';
display: block;
height: 2px;
background-color: var(--purple-text);
position: absolute;
bottom: 0;
left: 0;
right: 0;
}

.burger-menu {
display: none;
cursor: pointer;
}

.talkdai-hero{
.burger-icon {
font-size: 24px;
color: white;
}

.mobile-menu-items {
display: flex;
flex-direction: column;
position: fixed;
top: 0;
left: 0;
background-color: #0f1b26;
width: 100%;
height: 100%;
z-index: 999;
}

.mobile-menu-items {
transition: display 3s ease;
}

.mobile-menu-items .menu-item {
padding: 20px;
text-align: left;
border-bottom: 1px solid #1a2a3a;
}

.testimonials-section {
display: none;
}

.faq-section{
background-color: #001F26;
width: 100%;
min-height: 100px;
display: block;
width: 100%;
}

.faq-section h2{
color: var(--faq-grey);
font-style: normal;
font-weight: 600;
line-height: 110%; /* 44px */
font-size: 40px;
}

.faq-content{
padding: 24px 0;
border-bottom: 1px solid #004F61;
}

.faq-content:last-child {
border-bottom: none;
}

.faq-section summary{
display: flex;
color: var(--faq-grey);
list-style-type: none;
list-style: 40px solid;
line-height: 150%;
}

details > summary {
list-style: none;
}
details > summary::-webkit-details-marker {
display: none;
}

.faq-section summary h3{
color: var(--faq-grey);
font-size: 24px;
font-weight: 400;
width: 100%;
display: flex;
padding: 8px 0;
}

.faq-section p{
color: var(--purple-text);
font-size: 20px;
font-style: normal;
font-weight: 500;
line-height: 150%;
padding: 16px 0;
}

.faq-section summary span{
text-align: right;
font-size: 40px !important;
float: right;
}

@media (max-width: 1000px) {
.menu{
display: block;
padding: 0 10px;
position: relative;
border-radius: 8px;
justify-content: space-between;
align-items: center;

}
.menu-items {
display: none;
}

.burger-menu {
display: block;
}
.mobile-menu-items .menu-item::child {
z-index: -1;
}

.hero-subtext {
font-size: 1.1rem;
}

header {
margin-top: 0 !important;
}

.faq-section{
margin-top: 50px;
padding: 24px 20px;
}

.faq-section h2{
font-size: 25px;
}

.apps-container{
align-items: center;
}
}

@media (min-width: 1000px) {
.mobile-menu-items {
display: none;
}

.hero{
margin-top: 110px;
}
}

.hero-subtext {
font-size: 0.875rem;
line-height: 1.25rem;
}

.faq-section{
padding: 24px 122px;
}

.faq-section h2{
padding-top: 20px;
font-size: 40px;
}

.apps-container a {
margin: 0px 25px;
}
}
9 changes: 7 additions & 2 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import "./globals.css";
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { Header } from "@/components/Header";
import { Analytics } from "@vercel/analytics/react";
import { SpeedInsights } from "@vercel/speed-insights/next"

const inter = Inter({ subsets: ["latin"] });

Expand All @@ -19,7 +21,10 @@ export default function RootLayout({
<html lang="en">
<body className={inter.className}>
<Header/>
{children}</body>
{children}
<Analytics/>
<SpeedInsights/>
</body>
</html>
);
}
8 changes: 5 additions & 3 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { SectionHero } from "@/components/SectionHero";
import { Faq } from "@/components/Faq";

export default function Home() {
return (
<h1>
<SectionHero></SectionHero>
</h1>
<div>
<SectionHero />
<Faq />
</div>
);
}
Loading
Loading