Skip to content

Commit 2419c02

Browse files
committed
Responsive
1 parent 7cbb512 commit 2419c02

File tree

9 files changed

+125
-7
lines changed

9 files changed

+125
-7
lines changed

assets/css/home.css

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,67 @@ a.neumorphic-button:active>span {
122122
.button-grid {
123123
justify-content: center
124124
}
125+
}
126+
127+
/* Layout tiers: Mobile, Tablet, Desktop */
128+
@media (max-width: 480px) {
129+
body {
130+
padding: 1rem;
131+
}
132+
133+
.page-header img {
134+
height: 72px;
135+
}
136+
137+
.page-header h3 {
138+
font-size: 1.25rem;
139+
}
140+
141+
.category-section {
142+
margin-bottom: 2rem;
143+
width: 100%;
144+
}
145+
146+
.button-grid {
147+
grid-template-columns: repeat(3, 1fr);
148+
gap: .75rem;
149+
justify-content: center;
150+
}
151+
}
152+
153+
@media (min-width: 481px) and (max-width: 768px) {
154+
body {
155+
padding: 1.25rem;
156+
}
157+
158+
.category-section {
159+
width: min(40rem, 100%);
160+
}
161+
162+
.button-grid {
163+
grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr));
164+
gap: 1rem;
165+
}
166+
}
167+
168+
@media (min-width: 769px) and (max-width: 1199px) {
169+
.category-section {
170+
width: min(68rem, 100%);
171+
}
172+
173+
.button-grid {
174+
grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
175+
gap: 1.25rem;
176+
}
177+
}
178+
179+
@media (min-width: 1200px) {
180+
.category-section {
181+
width: min(80rem, 100%);
182+
}
183+
184+
.button-grid {
185+
grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
186+
gap: 1.5rem;
187+
}
125188
}

data/home.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ categories:
3737
- name: "Weather"
3838
icon: "cfd-mausam"
3939
url: "/Mausam/"
40+
- name: "Crop & Resize"
41+
icon: "cfd-picwrap"
42+
url: "https://picwrap.codefrydev.in"
4043
- name: "Games & Fun"
4144
items:
4245
- name: "Game"

layouts/about/about.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="description" content="Learn about CodeFryDev - your ultimate destination for diverse digital content, tools, games, and educational resources. Discover our mission and team.">
66
<meta name="keywords" content="about codefrydev, codefrydev team, digital tools, web development, mobile apps, games, tutorials">
77
<title>About - CodeFryDev | Learn More About Us</title>
8-
<link rel="canonical" href="{{ .Permalink }}">
8+
99
<link rel="stylesheet" href="/css/about.css">
1010
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">
1111
</head>

layouts/ai/ai.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="description" content="Discover powerful AI tools by CodeFryDev. Use AI SocialSnap, Meme Generator, Visual Note AI, Aqua Tracker, and more AI-powered utilities.">
77
<meta name="keywords" content="AI tools, artificial intelligence, AI generator, social media AI, meme generator, visual notes, AI summarize, codefrydev AI">
88
<title>AI Tools - CodeFryDev | AI-Powered Utilities</title>
9-
<link rel="canonical" href="{{ .Permalink }}">
9+
1010
<link rel="stylesheet" href="/css/internal.css">
1111
</head>
1212

layouts/games/games.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="description" content="Play fun and engaging games by CodeFryDev. Enjoy Chain Reaction, Wordle, Snake, and more exciting games for free.">
77
<meta name="keywords" content="games, online games, free games, chain reaction, wordle, snake, codefrydev games">
88
<title>Games - CodeFryDev | Free Online Games</title>
9-
<link rel="canonical" href="{{ .Permalink }}">
9+
1010
<link rel="stylesheet" href="/css/internal.css">
1111
</head>
1212

layouts/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="description" content="CodeFryDev - Your ultimate destination for diverse digital content and tools. Enjoy our extensive game collection, innovative productivity apps, and comprehensive tutorials for all skill levels.">
66
<meta name="keywords" content="codefrydev, digital tools, games, productivity apps, tutorials, design resources, AI tools, creative tools, web development">
77
<title>CodeFryDev | Games, Apps, Tutorials, and Design Tools</title>
8-
<link rel="canonical" href="{{ .Permalink }}">
8+
99
{{ with resources.Get "css/home.css" }}
1010
{{ $minifiedCSS := . | resources.Minify }}
1111
<link rel="stylesheet" href="{{ $minifiedCSS.RelPermalink }}">

layouts/partials/header.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@
77
<meta name="author" content="CodeFryDev">
88
<meta name="keywords" content="Codefrydev,CFD,NET,Tutorials,Design,Games,unity,c#,godot">
99
<meta name="robots" content="index, follow">
10-
<link rel="canonical" href="https://www.codefrydev.in/">
10+
<link rel="canonical" href="{{ .Permalink }}">
1111

1212
<meta property="og:title" content="CodeFryDev | Games, Apps, Tutorials, and Design Tools">
1313
<meta property="og:description" content="Your ultimate destination for diverse digital content, including games, productivity apps, educational tutorials, and design resources.">
14-
<meta property="og:image" content="https://www.codefrydev.in/og-image.png"> <meta property="og:url" content="https://www.codefrydev.in/">
14+
<meta property="og:image" content="{{ .Site.BaseURL }}og-image.png"> <meta property="og:url" content="{{ .Permalink }}">
1515
<meta property="og:type" content="website">
1616

1717
<meta name="twitter:card" content="summary_large_image">
1818
<meta name="twitter:title" content="CodeFryDev | Games, Apps, Tutorials, and Design Tools">
1919
<meta name="twitter:description" content="Your ultimate destination for diverse digital content, including games, productivity apps, educational tutorials, and design resources.">
20-
<meta name="twitter:image" content="https://www.codefrydev.in/mstile-310x310.png">
20+
<meta name="twitter:image" content="{{ .Site.BaseURL }}mstile-310x310.png">
2121
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
2222
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
2323
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">

static/css/internal.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,4 +105,55 @@ button.neumorphic.active > .button-icon {
105105
button.neumorphic:active > span,
106106
button.neumorphic.active > span {
107107
font-size: 13cqi;
108+
}
109+
110+
/* Layout tiers: Mobile, Tablet, Desktop */
111+
@media (max-width: 480px) {
112+
body {
113+
padding: 1rem;
114+
}
115+
116+
.buttons {
117+
width: 100%;
118+
grid-template-columns: repeat(3, 1fr);
119+
gap: 1rem;
120+
}
121+
122+
button.neumorphic {
123+
border-width: 0.4rem;
124+
border-radius: 0.8rem;
125+
}
126+
127+
.button-icon {
128+
height: 33cqi;
129+
}
130+
131+
button.neumorphic > span {
132+
font-size: 16cqi;
133+
}
134+
}
135+
136+
@media (min-width: 481px) and (max-width: 768px) {
137+
body {
138+
padding: 1.25rem;
139+
}
140+
141+
.buttons {
142+
width: min(40rem, 100%);
143+
grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
144+
}
145+
}
146+
147+
@media (min-width: 769px) and (max-width: 1199px) {
148+
.buttons {
149+
width: min(68rem, 100%);
150+
grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
151+
}
152+
}
153+
154+
@media (min-width: 1200px) {
155+
.buttons {
156+
width: min(80rem, 100%);
157+
grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
158+
}
108159
}

static/images/home/cfd-picwrap.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)